Home
last modified time | relevance | path

Searched full:amount (Results 1 – 25 of 1960) sorted by relevance

12345678910>>...79

/linux-6.12.1/include/linux/
Dpercpu_counter.h33 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,
61 s64 amount, s32 batch);
69 static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() argument
71 percpu_counter_add_batch(fbc, amount, percpu_counter_batch); in percpu_counter_add()
75 percpu_counter_limited_add(struct percpu_counter *fbc, s64 limit, s64 amount) in percpu_counter_limited_add() argument
77 return __percpu_counter_limited_add(fbc, limit, amount, in percpu_counter_limited_add()
92 percpu_counter_add_local(struct percpu_counter *fbc, s64 amount) in percpu_counter_add_local() argument
94 percpu_counter_add_batch(fbc, amount, PERCPU_COUNTER_LOCAL_BATCH); in percpu_counter_add_local()
[all …]
Diov_iter.h267 * @len: The amount to iterate over.
282 * @priv2 and the amount of data so far iterated over (which can, for example,
284 * functions should return the amount of the segment they didn't process (ie. 0
287 * This function returns the amount of data processed (ie. 0 means nothing was
317 * @len: The amount to iterate over.
334 * @len: The amount to iterate over.
351 * @priv2 and the amount of data so far iterated over (which can, for example,
353 * functions should return the amount of the segment they didn't process (ie. 0
356 * This function returns the amount of data processed (ie. 0 means nothing was
Dmisc_cgroup.h65 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
66 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
119 u64 amount) in misc_cg_try_charge() argument
126 u64 amount) in misc_cg_uncharge() argument
/linux-6.12.1/arch/parisc/math-emu/
Dhppa.h14 /* amount is assumed to be a constant between 0 and 32 (non-inclusive) */
15 #define Shiftdouble(left,right,amount,dest) \ argument
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) \ argument
21 /* unsigned int left, right; int amount, dest; */ \
22 if (amount == 0) dest = right; \
23 else dest = ((((unsigned) left)&0x7fffffff) << (32-(amount))) | \
24 ((unsigned) right >> (amount))
[all …]
/linux-6.12.1/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()
93 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) in percpu_counter_add_batch() argument
100 if (unlikely(abs(count + amount) >= batch)) { in percpu_counter_add_batch()
107 fbc->count += count + amount; in percpu_counter_add_batch()
112 } while (!this_cpu_try_cmpxchg(*fbc->counters, &count, count + amount)); in percpu_counter_add_batch()
120 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) in percpu_counter_add_batch() argument
126 count = __this_cpu_read(*fbc->counters) + amount; in percpu_counter_add_batch()
130 __this_cpu_sub(*fbc->counters, count - amount); in percpu_counter_add_batch()
133 this_cpu_add(*fbc->counters, amount); in percpu_counter_add_batch()
[all …]
Dlinear_ranges.c18 * linear_range_values_in_range - return the amount of values in a range
21 * Compute the amount of values in range pointed by @r. Note, values can
25 * Return: the amount of values in range pointed by @r
36 * linear_range_values_in_range_array - return the amount of values in ranges
38 * @ranges: amount of ranges we include in computation.
40 * Compute the amount of values in ranges pointed by @r. Note, values can
44 * Return: the amount of values in first @ranges ranges pointed by @r
102 * @ranges: amount of ranges in an array
166 * @ranges: amount of ranges to scan from array
/linux-6.12.1/fs/nfsd/
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-6.12.1/kernel/cgroup/
Dmisc.c112 * @amount: Amount to cancel.
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()
152 * @amount: Amount to charge.
154 * Charge @amount to the misc cgroup. Caller must use the same cgroup during
164 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_try_charge() argument
174 if (!amount) in misc_cg_try_charge()
180 new_usage = atomic64_add_return(amount, &res->usage); in misc_cg_try_charge()
194 misc_cg_cancel_charge(type, j, amount); in misc_cg_try_charge()
195 misc_cg_cancel_charge(type, i, amount); in misc_cg_try_charge()
[all …]
/linux-6.12.1/include/uapi/linux/
Dvirtio_balloon.h64 #define VIRTIO_BALLOON_S_SWAP_IN 0 /* Amount of memory swapped in */
65 #define VIRTIO_BALLOON_S_SWAP_OUT 1 /* Amount of memory swapped out */
68 #define VIRTIO_BALLOON_S_MEMFREE 4 /* Total amount of free memory */
69 #define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */
76 #define VIRTIO_BALLOON_S_ASYNC_SCAN 12 /* Amount of memory scanned asynchronously */
77 #define VIRTIO_BALLOON_S_DIRECT_SCAN 13 /* Amount of memory scanned directly */
78 #define VIRTIO_BALLOON_S_ASYNC_RECLAIM 14 /* Amount of memory reclaimed asynchronously */
79 #define VIRTIO_BALLOON_S_DIRECT_RECLAIM 15 /* Amount of memory reclaimed directly */
/linux-6.12.1/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-6.12.1/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()
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()
Dctresource.h55 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);
/linux-6.12.1/drivers/comedi/
Dcomedi_buf.c334 * data buffer associated with the subdevice. The amount reserved is limited
337 * Return: The amount of space reserved in bytes.
420 * COMEDI acquisition data buffer associated with the subdevice. The amount of
421 * space freed is limited to the amount that was reserved. The freed space is
427 * Return: The amount of space freed in bytes.
449 * comedi_buf_read_n_available() - Determine amount of readable buffer space
452 * Determine the amount of readable buffer space in the COMEDI acquisition data
457 * Return: The amount of readable buffer space.
486 * subdevice. The amount reserved is limited to the space available. The
489 * the amount of readable data available, but the space needs to be marked as
[all …]
/linux-6.12.1/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-6.12.1/net/batman-adv/
Dmulticast_forw.c42 * batadv_mcast_forw_skb_push() - skb_push and memorize amount of pushed bytes
44 * @size: the amount of bytes to push
45 * @len: stores the total amount of bytes pushed
47 * Performs an skb_push() onto the given skb and adds the amount of pushed bytes
62 * @tvlv_len: stores the amount of currently pushed TVLV bytes
89 * @tvlv_len: stores the amount of currently pushed TVLV bytes
139 * @tvlv_len: stores the amount of currently pushed TVLV bytes
183 * @tvlv_len: stores the amount of currently pushed TVLV bytes
222 * @tvlv_len: stores the amount of currently pushed TVLV bytes
269 * @tvlv_len: stores the amount of currently pushed TVLV bytes
[all …]
/linux-6.12.1/fs/ubifs/
Dbudget.c17 * impossible to accurately predict the amount of space needed. Consequently
34 * The below constant defines amount of dirty pages which should be written
44 * This function shrinks UBIFS liability by means of writing back some amount
87 * amount of bytes UBIFS has "promised" to write to the media.
157 * ubifs_calc_min_idx_lebs - calculate amount of LEBs for the index.
192 * This function calculates and returns amount of FS space available for use.
275 * be able to commit dirty index. So this function basically adds amount of
277 * and makes sure this does not exceed the amount of free LEBs.
369 * calc_data_growth - calculate approximate amount of new data from budgeting
389 * calc_dd_growth - calculate approximate amount of data which makes other data
[all …]
/linux-6.12.1/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-6.12.1/Documentation/mm/
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-6.12.1/drivers/net/wireless/ti/wl12xx/
Dacx.h141 /* the amount of enters into power save mode (both PD & ELP) */
144 /* the amount of enters into ELP mode */
147 /* the amount of missing beacon interrupts to the host */
150 /* the amount of wake on host-access times */
153 /* the amount of wake on timer-expire */
/linux-6.12.1/drivers/net/ethernet/mscc/
Docelot_devlink.c39 /* Amount of packet buffer
50 /* Amount of packet buffer
61 /* Amount of packet buffer
72 /* Amount of packet buffer
83 /* Amount of frame references
94 /* Amount of frame references
105 /* Amount of frame references
116 /* Amount of frame references
133 /* Amount of buffer
144 /* Amount of buffer
[all …]
/linux-6.12.1/security/
Dmin_addr.c7 /* amount of vm to protect from userspace access by both DAC and the LSM*/
9 /* amount of vm to protect from userspace using CAP_SYS_RAWIO (DAC) */
11 /* amount of vm to protect from userspace using the LSM = CONFIG_LSM_MMAP_MIN_ADDR */
/linux-6.12.1/drivers/staging/media/atomisp/pci/css_2401_system/hrt/
Dibuf_cntrl_defs.h26 /* the actual amount of configuration registers per proc: */
28 /* the actual amount of shared configuration registers: */
31 /* the actual amount of status registers per proc */
33 /* the actual amount shared status registers */
/linux-6.12.1/fs/jffs2/
Dcompr.c64 * @datalen: On entry, holds the amount of data available for compression.
65 * On exit, expected to hold the amount of data actually compressed.
66 * @cdatalen: On entry, holds the amount of space available for compressed
133 * @datalen: On entry, holds the amount of data available for compression.
134 * On exit, expected to hold the amount of data actually compressed.
135 * @cdatalen: On entry, holds the amount of space available for compressed
146 * *datalen accordingly to show the amount of data which were compressed.
/linux-6.12.1/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

12345678910>>...79