/kernel/linux/linux-6.6/include/linux/ |
H A D | percpu_counter.h | 33 int __percpu_counter_init_many(struct percpu_counter *fbc, s64 amount, 55 void percpu_counter_set(struct percpu_counter *fbc, s64 amount); 56 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, 67 static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() argument 69 percpu_counter_add_batch(fbc, amount, percpu_counter_batch); in percpu_counter_add() 83 percpu_counter_add_local(struct percpu_counter *fbc, s64 amount) in percpu_counter_add_local() argument 85 percpu_counter_add_batch(fbc, amount, PERCPU_COUNTER_LOCAL_BATCH); in percpu_counter_add_local() 131 s64 amount, gfp_t gfp, in percpu_counter_init_many() 137 fbc[i].count = amount; in percpu_counter_init_many() 142 static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount, in percpu_counter_init() argument 130 percpu_counter_init_many(struct percpu_counter *fbc, s64 amount, gfp_t gfp, u32 nr_counters) percpu_counter_init_many() argument 157 percpu_counter_set(struct percpu_counter *fbc, s64 amount) percpu_counter_set() argument 179 percpu_counter_add(struct percpu_counter *fbc, s64 amount) percpu_counter_add() argument 190 percpu_counter_add_local(struct percpu_counter *fbc, s64 amount) percpu_counter_add_local() argument 196 percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) percpu_counter_add_batch() argument 245 percpu_counter_sub(struct percpu_counter *fbc, s64 amount) percpu_counter_sub() argument 251 percpu_counter_sub_local(struct percpu_counter *fbc, s64 amount) percpu_counter_sub_local() argument [all...] |
H A D | misc_cgroup.h | 59 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() 120 u64 amount) in misc_cg_uncharge() 111 misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_try_charge() argument 118 misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_uncharge() argument
|
/kernel/linux/linux-5.10/arch/parisc/math-emu/ |
H A D | hppa.h | 14 /* amount is assumed to be a constant between 0 and 32 (non-inclusive) */ 15 #define Shiftdouble(left,right,amount,dest) \ 16 /* int left, right, amount, dest; */ \ 17 dest = ((left) << (32-(amount))) | ((unsigned int)(right) >> (amount)) 19 /* amount must be less than 32 */ 20 #define Variableshiftdouble(left,right,amount,dest) \ 21 /* unsigned int left, right; int amount, dest; */ \ 22 if (amount == 0) dest = right; \ 23 else dest = ((((unsigned) left)&0x7fffffff) << (32-(amount))) | \ [all...] |
/kernel/linux/linux-6.6/arch/parisc/math-emu/ |
H A D | hppa.h | 14 /* amount is assumed to be a constant between 0 and 32 (non-inclusive) */ 15 #define Shiftdouble(left,right,amount,dest) \ 16 /* int left, right, amount, dest; */ \ 17 dest = ((left) << (32-(amount))) | ((unsigned int)(right) >> (amount)) 19 /* amount must be less than 32 */ 20 #define Variableshiftdouble(left,right,amount,dest) \ 21 /* unsigned int left, right; int amount, dest; */ \ 22 if (amount == 0) dest = right; \ 23 else dest = ((((unsigned) left)&0x7fffffff) << (32-(amount))) | \ [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | percpu_counter.h | 31 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 142 percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) percpu_counter_add_batch() argument 191 percpu_counter_sub(struct percpu_counter *fbc, s64 amount) percpu_counter_sub() argument [all...] |
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | stats.h | 68 static inline void nfsd_stats_io_read_add(struct svc_export *exp, s64 amount) in nfsd_stats_io_read_add() argument 70 percpu_counter_add(&nfsdstats.counter[NFSD_STATS_IO_READ], amount); in nfsd_stats_io_read_add() 72 percpu_counter_add(&exp->ex_stats.counter[EXP_STATS_IO_READ], amount); in nfsd_stats_io_read_add() 75 static inline void nfsd_stats_io_write_add(struct svc_export *exp, s64 amount) in nfsd_stats_io_write_add() argument 77 percpu_counter_add(&nfsdstats.counter[NFSD_STATS_IO_WRITE], amount); in nfsd_stats_io_write_add() 79 percpu_counter_add(&exp->ex_stats.counter[EXP_STATS_IO_WRITE], amount); in nfsd_stats_io_write_add() 87 static inline void nfsd_stats_drc_mem_usage_add(struct nfsd_net *nn, s64 amount) in nfsd_stats_drc_mem_usage_add() argument 89 percpu_counter_add(&nn->counter[NFSD_NET_DRC_MEM_USAGE], amount); in nfsd_stats_drc_mem_usage_add() 92 static inline void nfsd_stats_drc_mem_usage_sub(struct nfsd_net *nn, s64 amount) in nfsd_stats_drc_mem_usage_sub() argument 94 percpu_counter_sub(&nn->counter[NFSD_NET_DRC_MEM_USAGE], amount); in nfsd_stats_drc_mem_usage_sub() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv20.c | 38 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv20.c | 38 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()
|
/kernel/linux/linux-5.10/sound/pci/ctxfi/ |
H A D | ctresource.c | 23 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() 211 mgr->rscs = kzalloc(((amount + 8 - 1) / 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() 204 rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type, unsigned int amount, struct hw *hw) rsc_mgr_init() argument
|
H A D | ctresource.h | 55 unsigned int amount; /* The total amount of a kind of resource */ member 56 unsigned int avail; /* The amount of currently available resources */ 64 unsigned int amount, struct hw *hw);
|
/kernel/linux/linux-6.6/sound/pci/ctxfi/ |
H A D | ctresource.c | 23 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() 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() 204 rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type, unsigned int amount, struct hw *hw) rsc_mgr_init() argument
|
H A D | ctresource.h | 55 unsigned int amount; /* The total amount of a kind of resource */ member 56 unsigned int avail; /* The amount of currently available resources */ 64 unsigned int amount, struct hw *hw);
|
/kernel/linux/linux-5.10/lib/ |
H A D | percpu_counter.c | 60 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()
|
/kernel/linux/linux-6.6/lib/ |
H A D | percpu_counter.c | 60 void percpu_counter_set(struct percpu_counter *fbc, s64 amount) in percpu_counter_set() argument 70 fbc->count = amount; in percpu_counter_set() 87 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) in percpu_counter_add_batch() argument 93 count = __this_cpu_read(*fbc->counters) + amount; in percpu_counter_add_batch() 97 __this_cpu_sub(*fbc->counters, count - amount); in percpu_counter_add_batch() 100 this_cpu_add(*fbc->counters, amount); in percpu_counter_add_batch() 154 int __percpu_counter_init_many(struct percpu_counter *fbc, s64 amount, in __percpu_counter_init_many() argument 177 fbc[i].count = amount; in __percpu_counter_init_many()
|
/kernel/linux/linux-6.6/kernel/cgroup/ |
H A D | misc.c | 112 * @amount: Amount to cancel. 117 u64 amount) in misc_cg_cancel_charge() 119 WARN_ONCE(atomic64_add_negative(-amount, &cg->res[type].usage), in misc_cg_cancel_charge() 128 * @amount: Amount to charge. 130 * Charge @amount to the misc cgroup. Caller must use the same cgroup during 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() 116 misc_cg_cancel_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_cancel_charge() argument 186 misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_uncharge() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bo5039.c | 52 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bo5039.c | 52 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()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
H A D | f_mass_storage.c | 644 unsigned int amount; in do_read() local 680 * Try to read the remaining amount. in do_read() 684 amount = min(amount_left, FSG_BUFLEN); in do_read() 685 amount = min((loff_t)amount, in do_read() 698 if (amount == 0) { in do_read() 711 nread = kernel_read(curlun->filp, bh->buf, amount, in do_read() 713 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount, in do_read() 721 } else if (nread < amount) { in do_read() 723 (int)nread, amount); in do_read() 772 unsigned int amount; do_write() local 984 unsigned int amount; do_verify() local 1466 u32 amount; throw_away_data() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A D | f_mass_storage.c | 614 unsigned int amount; in do_read() local 653 * Try to read the remaining amount. in do_read() 657 amount = min(amount_left, FSG_BUFLEN); in do_read() 658 amount = min((loff_t)amount, in do_read() 671 if (amount == 0) { in do_read() 684 nread = kernel_read(curlun->filp, bh->buf, amount, in do_read() 686 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount, in do_read() 694 } else if (nread < amount) { in do_read() 696 (int)nread, amount); in do_read() 745 unsigned int amount; do_write() local 960 unsigned int amount; do_verify() local 1515 u32 amount; throw_away_data() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | BusLogic.h | 67 Define the default amount of time in seconds to wait between a Host Adapter 1234 unsigned int amount) in blogic_addcount() 1236 bytecount->units += amount; in blogic_addcount() 1248 unsigned int amount) in blogic_incszbucket() 1251 if (amount < 8 * 1024) { in blogic_incszbucket() 1252 if (amount < 2 * 1024) in blogic_incszbucket() 1253 index = (amount < 1 * 1024 ? 0 : 1); in blogic_incszbucket() 1255 index = (amount < 4 * 1024 ? 2 : 3); in blogic_incszbucket() 1256 } else if (amount < 128 * 1024) { in blogic_incszbucket() 1257 if (amount < 3 in blogic_incszbucket() 1233 blogic_addcount(struct blogic_byte_count *bytecount, unsigned int amount) blogic_addcount() argument 1247 blogic_incszbucket(unsigned int *cmdsz_buckets, unsigned int amount) blogic_incszbucket() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | BusLogic.h | 67 Define the default amount of time in seconds to wait between a Host Adapter 1223 unsigned int amount) in blogic_addcount() 1225 bytecount->units += amount; in blogic_addcount() 1237 unsigned int amount) in blogic_incszbucket() 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 < 3 in blogic_incszbucket() 1222 blogic_addcount(struct blogic_byte_count *bytecount, unsigned int amount) blogic_addcount() argument 1236 blogic_incszbucket(unsigned int *cmdsz_buckets, unsigned int amount) blogic_incszbucket() argument [all...] |
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
H A D | ibmphp_pci.c | 1042 * This function adds up the amount of resources needed behind the PPB bridge 1045 * Output: amount of resources needed 1066 struct res_needed *amount; in scan_behind_bridge() local 1068 amount = kzalloc(sizeof(*amount), GFP_KERNEL); in scan_behind_bridge() 1069 if (amount == NULL) in scan_behind_bridge() 1077 amount->devices[device] = 0; in scan_behind_bridge() 1093 amount->not_correct = 1; in scan_behind_bridge() 1094 return amount; in scan_behind_bridge() 1100 amount in scan_behind_bridge() [all...] |
/kernel/linux/linux-6.6/drivers/pci/hotplug/ |
H A D | ibmphp_pci.c | 1041 * This function adds up the amount of resources needed behind the PPB bridge 1044 * Output: amount of resources needed 1065 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 in scan_behind_bridge() [all...] |
/kernel/linux/linux-5.10/arch/mips/mti-malta/ |
H A D | malta-time.c | 51 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()
|
/kernel/linux/linux-6.6/arch/mips/mti-malta/ |
H A D | malta-time.c | 51 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()
|