Home
last modified time | relevance | path

Searched refs:amount (Results 1 – 25 of 484) sorted by relevance

12345678910>>...20

/linux/include/linux/
H A Dpercpu_counter.h61 s64 amount, s32 batch);
140 s64 amount, gfp_t gfp, in percpu_counter_init_many() argument
146 fbc[i].count = amount; in percpu_counter_init_many()
168 fbc->count = amount; in percpu_counter_set()
193 fbc->count += amount; in percpu_counter_add()
204 if (amount == 0) in percpu_counter_limited_add()
208 count = fbc->count + amount; in percpu_counter_limited_add()
209 if ((amount > 0 && count <= limit) || in percpu_counter_limited_add()
222 percpu_counter_add(fbc, amount); in percpu_counter_add_local()
228 percpu_counter_add(fbc, amount); in percpu_counter_add_batch()
[all …]
H A Dmisc_cgroup.h59 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
60 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
113 u64 amount) in misc_cg_try_charge() argument
120 u64 amount) in misc_cg_uncharge() argument
/linux/arch/parisc/math-emu/
H A Dhppa.h15 #define Shiftdouble(left,right,amount,dest) \ argument
17 dest = ((left) << (32-(amount))) | ((unsigned int)(right) >> (amount))
20 #define Variableshiftdouble(left,right,amount,dest) \ argument
22 if (amount == 0) dest = right; \
23 else dest = ((((unsigned) left)&0x7fffffff) << (32-(amount))) | \
24 ((unsigned) right >> (amount))
27 #define Variable_shift_double(left,right,amount,dest) \ argument
29 dest = (left << (32-(amount))) | ((unsigned) right >> (amount))
/linux/fs/nfsd/
H A Dstats.h40 struct svc_export *exp, s64 amount) in nfsd_stats_io_read_add() argument
42 percpu_counter_add(&nn->counter[NFSD_STATS_IO_READ], amount); in nfsd_stats_io_read_add()
44 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_READ], amount); in nfsd_stats_io_read_add()
48 struct svc_export *exp, s64 amount) in nfsd_stats_io_write_add() argument
50 percpu_counter_add(&nn->counter[NFSD_STATS_IO_WRITE], amount); in nfsd_stats_io_write_add()
52 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_WRITE], amount); in nfsd_stats_io_write_add()
60 static inline void nfsd_stats_drc_mem_usage_add(struct nfsd_net *nn, s64 amount) in nfsd_stats_drc_mem_usage_add() argument
62 percpu_counter_add(&nn->counter[NFSD_STATS_DRC_MEM_USAGE], amount); in nfsd_stats_drc_mem_usage_add()
65 static inline void nfsd_stats_drc_mem_usage_sub(struct nfsd_net *nn, s64 amount) in nfsd_stats_drc_mem_usage_sub() argument
67 percpu_counter_sub(&nn->counter[NFSD_STATS_DRC_MEM_USAGE], amount); in nfsd_stats_drc_mem_usage_sub()
/linux/lib/
H A Dpercpu_counter.c70 fbc->count = amount; in percpu_counter_set()
100 this_cpu_add(*fbc->counters, amount); in percpu_counter_add_batch()
177 fbc[i].count = amount; in __percpu_counter_init_many()
294 s64 limit, s64 amount, s32 batch) in __percpu_counter_limited_add() argument
301 if (amount == 0) in __percpu_counter_limited_add()
309 if (abs(count + amount) <= batch && in __percpu_counter_limited_add()
312 this_cpu_add(*fbc->counters, amount); in __percpu_counter_limited_add()
318 count = fbc->count + amount; in __percpu_counter_limited_add()
321 if (amount > 0) { in __percpu_counter_limited_add()
341 if (amount > 0) { in __percpu_counter_limited_add()
[all …]
H A Dtest_hexdump.c100 size_t amount = strlen(q); in test_hexdump_prepare_test() local
102 memcpy(p, q, amount); in test_hexdump_prepare_test()
103 p += amount; in test_hexdump_prepare_test()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
H A Dnv20.c38 uint32_t amount, off; in nv20_devinit_meminit() local
53 amount = nvkm_rd32(device, 0x10020c); in nv20_devinit_meminit()
54 for (off = amount; off > 0x2000000; off -= 0x2000000) in nv20_devinit_meminit()
57 amount = nvkm_rd32(device, 0x10020c); in nv20_devinit_meminit()
58 if (amount != fbmem_peek(fb, amount - 4)) in nv20_devinit_meminit()
/linux/kernel/cgroup/
H A Dmisc.c117 u64 amount) in misc_cg_cancel_charge() argument
119 WARN_ONCE(atomic64_add_negative(-amount, &cg->res[type].usage), in misc_cg_cancel_charge()
140 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_try_charge() argument
150 if (!amount) in misc_cg_try_charge()
156 new_usage = atomic64_add_return(amount, &res->usage); in misc_cg_try_charge()
172 misc_cg_cancel_charge(type, j, amount); in misc_cg_try_charge()
173 misc_cg_cancel_charge(type, i, amount); in misc_cg_try_charge()
186 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_uncharge() argument
190 if (!(amount && valid_type(type) && cg)) in misc_cg_uncharge()
194 misc_cg_cancel_charge(type, i, amount); in misc_cg_uncharge()
/linux/sound/pci/ctxfi/
H A Dctresource.c23 get_resource(u8 *rscs, unsigned int amount, in get_resource() argument
29 for (i = 0, n = multi; i < amount; i++) { in get_resource()
40 if (i >= amount) { in get_resource()
80 err = get_resource(mgr->rscs, mgr->amount, n, ridx); in mgr_get_resource()
205 unsigned int amount, struct hw *hw) in rsc_mgr_init() argument
211 mgr->rscs = kzalloc(DIV_ROUND_UP(amount, 8), GFP_KERNEL); in rsc_mgr_init()
244 mgr->avail = mgr->amount = amount; in rsc_mgr_init()
286 mgr->avail = mgr->amount = 0; in rsc_mgr_uninit()
H A Dctresource.h55 unsigned int amount; /* The total amount of a kind of resource */ member
64 unsigned int amount, struct hw *hw);
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_bo5039.c52 u32 amount, stride, height; in nv50_bo_move_m2mf() local
58 amount = min(length, (u64)(4 * 1024 * 1024)); in nv50_bo_move_m2mf()
60 height = amount / stride; in nv50_bo_move_m2mf()
128 length -= amount; in nv50_bo_move_m2mf()
129 src_offset += amount; in nv50_bo_move_m2mf()
130 dst_offset += amount; in nv50_bo_move_m2mf()
/linux/drivers/scsi/
H A DBusLogic.h1223 unsigned int amount) in blogic_addcount() argument
1225 bytecount->units += amount; in blogic_addcount()
1237 unsigned int amount) in blogic_incszbucket() argument
1240 if (amount < 8 * 1024) { in blogic_incszbucket()
1241 if (amount < 2 * 1024) in blogic_incszbucket()
1242 index = (amount < 1 * 1024 ? 0 : 1); in blogic_incszbucket()
1244 index = (amount < 4 * 1024 ? 2 : 3); in blogic_incszbucket()
1245 } else if (amount < 128 * 1024) { in blogic_incszbucket()
1246 if (amount < 32 * 1024) in blogic_incszbucket()
1247 index = (amount < 16 * 1024 ? 4 : 5); in blogic_incszbucket()
[all …]
/linux/drivers/pci/hotplug/
H A Dibmphp_pci.c1067 amount = kzalloc(sizeof(*amount), GFP_KERNEL); in scan_behind_bridge()
1068 if (amount == NULL) in scan_behind_bridge()
1093 return amount; in scan_behind_bridge()
1100 return amount; in scan_behind_bridge()
1104 return amount; in scan_behind_bridge()
1163 amount->not_correct = 1; in scan_behind_bridge()
1166 if ((amount->io) && (amount->io < IOBRIDGE)) in scan_behind_bridge()
1167 amount->io = IOBRIDGE; in scan_behind_bridge()
1168 if ((amount->mem) && (amount->mem < MEMBRIDGE)) in scan_behind_bridge()
1170 if ((amount->pfmem) && (amount->pfmem < MEMBRIDGE)) in scan_behind_bridge()
[all …]
/linux/drivers/usb/gadget/function/
H A Df_mass_storage.c614 unsigned int amount; in do_read() local
658 amount = min((loff_t)amount, in do_read()
671 if (amount == 0) { in do_read()
745 unsigned int amount; in do_write() local
874 amount = min(amount, bh->bulk_out_intended_length); in do_write()
877 amount = round_down(amount, curlun->blksize); in do_write()
878 if (amount == 0) in do_write()
960 unsigned int amount; in do_verify() local
1008 amount = min((loff_t)amount, in do_verify()
1010 if (amount == 0) { in do_verify()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-wakeup46 This file contains the amount of time the wakeup source has
54 This file contains the total amount of time this wakeup source
61 This file contains the maximum amount of time this wakeup
75 The file contains the total amount of time this wakeup source
H A Dsysfs-class-scsi_tape16 Shows the total amount of time spent waiting for all I/O
23 To determine the amount of time spent waiting for other I/O
64 Shows the total amount of time in nanoseconds waiting for
95 Shows the total amount of time in nanoseconds waiting for
/linux/Documentation/mm/
H A Dovercommit-accounting.rst21 system is not permitted to exceed swap + a configurable amount
22 (default is 50%) of physical RAM. Depending on the amount you
33 The overcommit amount can be set via ``vm.overcommit_ratio`` (percentage)
37 The current overcommit limit and amount committed are viewable in
/linux/arch/mips/mti-malta/
H A Dmalta-time.c51 static unsigned int freqround(unsigned int freq, unsigned int amount) in freqround() argument
53 freq += amount; in freqround()
54 freq -= freq % (amount*2); in freqround()
/linux/Documentation/virt/
H A Dguest-halt-polling.rst6 the guest vcpus to poll for a specified amount of time before
21 is configured by the user, indicating the maximum amount of
35 Maximum amount of time, in nanoseconds, that polling is
/linux/Documentation/devicetree/
H A Ddynamic-resolution-notes.rst20 2. Adjust all the local phandles of the tree to resolve by that amount.
22 by the same amount.
/linux/net/bluetooth/
H A Daf_bluetooth.c548 long amount; in bt_sock_ioctl() local
558 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in bt_sock_ioctl()
559 if (amount < 0) in bt_sock_ioctl()
560 amount = 0; in bt_sock_ioctl()
561 err = put_user(amount, (int __user *)arg); in bt_sock_ioctl()
570 amount = skb ? skb->len : 0; in bt_sock_ioctl()
573 err = put_user(amount, (int __user *)arg); in bt_sock_ioctl()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Datombios_crtc.c292 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); in amdgpu_atombios_crtc_program_ss()
867 u32 amount = (((fb_div * 10) + frac_fb_div) * in amdgpu_atombios_crtc_set_pll() local
870 amdgpu_crtc->ss.amount = (amount / 10) & ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK; in amdgpu_atombios_crtc_set_pll()
871 amdgpu_crtc->ss.amount |= ((amount - (amount / 10)) << ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT) & in amdgpu_atombios_crtc_set_pll()
874 step_size = (4 * amount * ref_div * ((u32)amdgpu_crtc->ss.rate * 2048)) / in amdgpu_atombios_crtc_set_pll()
877 step_size = (2 * amount * ref_div * ((u32)amdgpu_crtc->ss.rate * 2048)) / in amdgpu_atombios_crtc_set_pll()
/linux/Documentation/locking/
H A Dlocktorture.rst18 acquire the lock and hold it for specific amount of time, thus simulating
19 different critical region behaviors. The amount of contention on the lock
40 ownership (readers). The default is the same amount of writer
42 both readers and writers be the amount of online CPUs.
/linux/fs/gfs2/
H A Ddir.c184 unsigned int amount; in gfs2_dir_write_data() local
187 amount = size - copied; in gfs2_dir_write_data()
189 amount = sdp->sd_sb.sb_bsize - o; in gfs2_dir_write_data()
202 if (amount == sdp->sd_jbsize || new) in gfs2_dir_write_data()
214 buf += amount; in gfs2_dir_write_data()
215 copied += amount; in gfs2_dir_write_data()
287 unsigned int amount; in gfs2_dir_read_data() local
290 amount = size - copied; in gfs2_dir_read_data()
292 amount = sdp->sd_sb.sb_bsize - o; in gfs2_dir_read_data()
316 buf += (amount/sizeof(__be64)); in gfs2_dir_read_data()
[all …]
/linux/Documentation/hwmon/
H A Dfam15h_power.rst40 Specifies in watts the maximum amount of power
44 Specifies in watts the maximum amount of power
47 Specifies in watts the current amount of power being

12345678910>>...20