Home
last modified time | relevance | path

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

12345678910>>...17

/Linux-v5.15/arch/parisc/math-emu/
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-v5.15/include/linux/
Dpercpu_counter.h31 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp,
42 void percpu_counter_set(struct percpu_counter *fbc, s64 amount);
43 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount,
54 static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() argument
56 percpu_counter_add_batch(fbc, amount, percpu_counter_batch); in percpu_counter_add()
101 static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount, in percpu_counter_init() argument
104 fbc->count = amount; in percpu_counter_init()
112 static inline void percpu_counter_set(struct percpu_counter *fbc, s64 amount) in percpu_counter_set() argument
114 fbc->count = amount; in percpu_counter_set()
134 percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() argument
[all …]
Dmisc_cgroup.h55 unsigned long amount);
57 unsigned long amount);
111 unsigned long amount) in misc_cg_try_charge() argument
118 unsigned long amount) in misc_cg_uncharge() argument
/Linux-v5.15/fs/nfsd/
Dstats.h69 static inline void nfsd_stats_io_read_add(struct svc_export *exp, s64 amount) in nfsd_stats_io_read_add() argument
71 percpu_counter_add(&nfsdstats.counter[NFSD_STATS_IO_READ], amount); in nfsd_stats_io_read_add()
73 percpu_counter_add(&exp->ex_stats.counter[EXP_STATS_IO_READ], amount); in nfsd_stats_io_read_add()
76 static inline void nfsd_stats_io_write_add(struct svc_export *exp, s64 amount) in nfsd_stats_io_write_add() argument
78 percpu_counter_add(&nfsdstats.counter[NFSD_STATS_IO_WRITE], amount); in nfsd_stats_io_write_add()
80 percpu_counter_add(&exp->ex_stats.counter[EXP_STATS_IO_WRITE], amount); in nfsd_stats_io_write_add()
88 static inline void nfsd_stats_drc_mem_usage_add(struct nfsd_net *nn, s64 amount) in nfsd_stats_drc_mem_usage_add() argument
90 percpu_counter_add(&nn->counter[NFSD_NET_DRC_MEM_USAGE], amount); in nfsd_stats_drc_mem_usage_add()
93 static inline void nfsd_stats_drc_mem_usage_sub(struct nfsd_net *nn, s64 amount) in nfsd_stats_drc_mem_usage_sub() argument
95 percpu_counter_sub(&nn->counter[NFSD_NET_DRC_MEM_USAGE], amount); in nfsd_stats_drc_mem_usage_sub()
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
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-v5.15/kernel/cgroup/
Dmisc.c117 unsigned long amount) in misc_cg_cancel_charge() argument
119 WARN_ONCE(atomic_long_add_negative(-amount, &cg->res[type].usage), in misc_cg_cancel_charge()
141 unsigned long amount) in misc_cg_try_charge() argument
151 if (!amount) in misc_cg_try_charge()
157 new_usage = atomic_long_add_return(amount, &res->usage); in misc_cg_try_charge()
175 misc_cg_cancel_charge(type, j, amount); in misc_cg_try_charge()
176 misc_cg_cancel_charge(type, i, amount); in misc_cg_try_charge()
190 unsigned long amount) in misc_cg_uncharge() argument
194 if (!(amount && valid_type(type) && cg)) in misc_cg_uncharge()
198 misc_cg_cancel_charge(type, i, amount); in misc_cg_uncharge()
/Linux-v5.15/sound/pci/ctxfi/
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()
206 unsigned int amount, struct hw *hw) in rsc_mgr_init() argument
212 mgr->rscs = kzalloc(DIV_ROUND_UP(amount, 8), GFP_KERNEL); in rsc_mgr_init()
245 mgr->avail = mgr->amount = amount; in rsc_mgr_init()
287 mgr->avail = mgr->amount = 0; in rsc_mgr_uninit()
Dctresource.h55 unsigned int amount; /* The total amount of a kind of resource */ member
64 unsigned int amount, struct hw *hw);
/Linux-v5.15/lib/
Dpercpu_counter.c60 void percpu_counter_set(struct percpu_counter *fbc, s64 amount) in percpu_counter_set() argument
70 fbc->count = amount; in percpu_counter_set()
82 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) in percpu_counter_add_batch() argument
87 count = __this_cpu_read(*fbc->counters) + amount; in percpu_counter_add_batch()
92 __this_cpu_sub(*fbc->counters, count - amount); in percpu_counter_add_batch()
95 this_cpu_add(*fbc->counters, amount); in percpu_counter_add_batch()
141 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp, in __percpu_counter_init() argument
148 fbc->count = amount; in __percpu_counter_init()
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-v5.15/drivers/gpu/drm/nouveau/
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-v5.15/drivers/scsi/
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-v5.15/drivers/pci/hotplug/
Dibmphp_pci.c1065 struct res_needed *amount; in scan_behind_bridge() local
1067 amount = kzalloc(sizeof(*amount), GFP_KERNEL); in scan_behind_bridge()
1068 if (amount == NULL) in scan_behind_bridge()
1076 amount->devices[device] = 0; in scan_behind_bridge()
1092 amount->not_correct = 1; in scan_behind_bridge()
1093 return amount; in scan_behind_bridge()
1099 amount->not_correct = 1; in scan_behind_bridge()
1100 return amount; in scan_behind_bridge()
1103 amount->not_correct = 1; in scan_behind_bridge()
1104 return amount; in scan_behind_bridge()
[all …]
/Linux-v5.15/drivers/usb/gadget/function/
Df_mass_storage.c596 unsigned int amount; in do_read() local
636 amount = min(amount_left, FSG_BUFLEN); in do_read()
637 amount = min((loff_t)amount, in do_read()
650 if (amount == 0) { in do_read()
663 nread = kernel_read(curlun->filp, bh->buf, amount, in do_read()
665 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount, in do_read()
673 } else if (nread < amount) { in do_read()
675 (int)nread, amount); in do_read()
691 if (nread < amount) { in do_read()
724 unsigned int amount; in do_write() local
[all …]
/Linux-v5.15/Documentation/ABI/testing/
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
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-v5.15/Documentation/vm/
Dovercommit-accounting.rst24 system is not permitted to exceed swap + a configurable amount
25 (default is 50%) of physical RAM. Depending on the amount you
36 The overcommit amount can be set via ``vm.overcommit_ratio`` (percentage)
39 The current overcommit limit and amount committed are viewable in
/Linux-v5.15/arch/mips/mti-malta/
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-v5.15/Documentation/virt/
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-v5.15/net/bluetooth/
Daf_bluetooth.c498 long amount; in bt_sock_ioctl() local
508 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in bt_sock_ioctl()
509 if (amount < 0) in bt_sock_ioctl()
510 amount = 0; in bt_sock_ioctl()
511 err = put_user(amount, (int __user *)arg); in bt_sock_ioctl()
520 amount = skb ? skb->len : 0; in bt_sock_ioctl()
522 err = put_user(amount, (int __user *)arg); in bt_sock_ioctl()
/Linux-v5.15/Documentation/devicetree/
Ddynamic-resolution-notes.rst20 2. Adjust all the local phandles of the tree to resolve by that amount.
22 by the same amount.
/Linux-v5.15/drivers/gpu/drm/vmwgfx/
Dttm_memory.c508 uint64_t amount) in ttm_mem_global_free_zone() argument
518 zone->used_mem -= amount; in ttm_mem_global_free_zone()
524 uint64_t amount) in ttm_mem_global_free() argument
526 return ttm_mem_global_free_zone(glob, glob->zone_kernel, amount); in ttm_mem_global_free()
561 uint64_t amount, bool reserve) in ttm_mem_global_reserve() argument
586 zone->used_mem += amount; in ttm_mem_global_reserve()
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Datombios_crtc.c293 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); in amdgpu_atombios_crtc_program_ss()
868 u32 amount = (((fb_div * 10) + frac_fb_div) * in amdgpu_atombios_crtc_set_pll() local
871 amdgpu_crtc->ss.amount = (amount / 10) & ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK; in amdgpu_atombios_crtc_set_pll()
872 amdgpu_crtc->ss.amount |= ((amount - (amount / 10)) << ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT) & in amdgpu_atombios_crtc_set_pll()
875 step_size = (4 * amount * ref_div * ((u32)amdgpu_crtc->ss.rate * 2048)) / in amdgpu_atombios_crtc_set_pll()
878 step_size = (2 * amount * ref_div * ((u32)amdgpu_crtc->ss.rate * 2048)) / in amdgpu_atombios_crtc_set_pll()
/Linux-v5.15/Documentation/scheduler/
Dsched-bwc.rst22 is transferred to cpu-local "silos" on a demand basis. The amount transferred
65 on large systems. The amount transferred each time such an update is required
126 allows applications to briefly burst past their quota limits by the amount of
130 in previous periods. This burst amount will not be transferred between cores.
140 full slice's amount of cpu time.
147 cpu-bound application from fully using its quota by that same amount. In these
/Linux-v5.15/net/ax25/
Daf_ax25.c1706 long amount; in ax25_ioctl() local
1708 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in ax25_ioctl()
1709 if (amount < 0) in ax25_ioctl()
1710 amount = 0; in ax25_ioctl()
1711 res = put_user(amount, (int __user *)argp); in ax25_ioctl()
1717 long amount = 0L; in ax25_ioctl() local
1720 amount = skb->len; in ax25_ioctl()
1721 res = put_user(amount, (int __user *) argp); in ax25_ioctl()
1738 long amount; in ax25_ioctl() local
1743 if (get_user(amount, (long __user *)argp)) { in ax25_ioctl()
[all …]

12345678910>>...17