/openbmc/linux/include/linux/ |
H A D | percpu_counter.h | 69 percpu_counter_add_batch(fbc, amount, percpu_counter_batch); in percpu_counter_add() 131 s64 amount, gfp_t gfp, in percpu_counter_init_many() argument 137 fbc[i].count = amount; in percpu_counter_init_many() 145 return percpu_counter_init_many(fbc, amount, gfp, 1); in percpu_counter_init() 159 fbc->count = amount; in percpu_counter_set() 179 percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() argument 184 fbc->count += amount; in percpu_counter_add() 192 percpu_counter_add(fbc, amount); in percpu_counter_add_local() 198 percpu_counter_add(fbc, amount); in percpu_counter_add_batch() 247 percpu_counter_add(fbc, -amount); in percpu_counter_sub() [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() argument 120 u64 amount) in misc_cg_uncharge() argument
|
/openbmc/linux/arch/parisc/math-emu/ |
H A D | hppa.h | 15 #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))
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/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() 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 D | ctresource.h | 55 unsigned int amount; /* The total amount of a kind of resource */ member 64 unsigned int amount, struct hw *hw);
|
/openbmc/linux/kernel/cgroup/ |
H A D | misc.c | 117 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()
|
/openbmc/linux/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()
|
H A D | test_hexdump.c | 100 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()
|
/openbmc/linux/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()
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | f_mass_storage.c | 691 unsigned int amount; in do_read() local 734 amount = min(amount, (unsigned int) PAGE_CACHE_SIZE - in do_read() 747 if (amount == 0) { in do_read() 818 unsigned int amount; in do_write() local 873 amount = min(amount, in do_write() 876 if (amount == 0) { in do_write() 883 amount -= (amount & 511); in do_write() 884 if (amount == 0) { in do_write() 960 amount); in do_write() 1039 if (amount == 0) { in do_verify() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | BusLogic.h | 1223 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 …]
|
/openbmc/qemu/scripts/qapi/ |
H A D | common.py | 142 def increase(self, amount: int = 4) -> None: 144 self._level += amount 146 def decrease(self, amount: int = 4) -> None: 148 assert amount <= self._level 149 self._level -= amount
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | ibmphp_pci.c | 1067 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 …]
|
/openbmc/phosphor-health-monitor/ |
H A D | bmc_health_config_json.md | 22 - This indicates the amount of un-used memory. 24 - This indicates the amount of memory being shared between processes within 27 - This indicates the amount of memory being used for caching and temporary 30 - This indicates the amount of available storage space 32 - This indicates the amount of available space for type depicted by `<xxx>`
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | f_mass_storage.c | 614 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 …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-wakeup | 46 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 D | sysfs-class-scsi_tape | 16 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
|
/openbmc/openbmc/poky/meta/recipes-multimedia/libtiff/tiff/ |
H A D | CVE-2023-6277-At-image-reading-compare-data-size-of-some-tags-data.patch | 25 + /* Before allocating a huge amount of memory for corrupted files, check if 47 + /* Before allocating a huge amount of memory for corrupted files, check if 68 + /* Before allocating a huge amount of memory for corrupted files, check 89 + /* Before allocating a huge amount of memory for corrupted files, check 119 + /* Before allocating a huge amount of memory for corrupted files, check 140 + /* Before allocating a huge amount of memory for corrupted files, check if
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/tftp-hpa/files/ |
H A D | tftp-hpa-0.49-stats.patch | 19 printf("%s %lu bytes in %.1f seconds", direction, amount, delta); 20 printf(" [%.0f bit/s]", (amount * 8.) / delta);
|
/openbmc/linux/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()
|
/openbmc/linux/Documentation/mm/ |
H A D | overcommit-accounting.rst | 22 system is not permitted to exceed swap + a configurable amount 23 (default is 50%) of physical RAM. Depending on the amount you 34 The overcommit amount can be set via ``vm.overcommit_ratio`` (percentage) 38 The current overcommit limit and amount committed are viewable in
|
/openbmc/linux/Documentation/virt/ |
H A D | guest-halt-polling.rst | 6 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
|
/openbmc/linux/Documentation/devicetree/ |
H A D | dynamic-resolution-notes.rst | 20 2. Adjust all the local phandles of the tree to resolve by that amount. 22 by the same amount.
|