Searched refs:amount (Results 1 - 25 of 70) sorted by relevance

123

/linux-master/arch/parisc/math-emu/
H A Dhppa.h14 /* 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...]
/linux-master/include/linux/
H A 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) argument
71 percpu_counter_add_batch(fbc, amount, percpu_counter_batch);
75 percpu_counter_limited_add(struct percpu_counter *fbc, s64 limit, s64 amount) argument
77 return __percpu_counter_limited_add(fbc, limit, amount,
92 percpu_counter_add_local(struct percpu_counter *fbc, s64 amount) argument
94 percpu_counter_add_batch(fbc, amount, PERCPU_COUNTER_LOCAL_BATC
139 percpu_counter_init_many(struct percpu_counter *fbc, s64 amount, gfp_t gfp, u32 nr_counters) argument
151 percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp) argument
166 percpu_counter_set(struct percpu_counter *fbc, s64 amount) argument
188 percpu_counter_add(struct percpu_counter *fbc, s64 amount) argument
198 percpu_counter_limited_add(struct percpu_counter *fbc, s64 limit, s64 amount) argument
220 percpu_counter_add_local(struct percpu_counter *fbc, s64 amount) argument
226 percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) argument
275 percpu_counter_sub(struct percpu_counter *fbc, s64 amount) argument
281 percpu_counter_sub_local(struct percpu_counter *fbc, s64 amount) argument
[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)
120 u64 amount)
111 misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) argument
118 misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) argument
H A Dbacking-dev.h64 enum wb_stat_item item, s64 amount)
66 percpu_counter_add_batch(&wb->stat[item], amount, WB_STAT_BATCH);
63 wb_stat_mod(struct bdi_writeback *wb, enum wb_stat_item item, s64 amount) argument
/linux-master/fs/nfsd/
H A Dstats.h45 struct svc_export *exp, s64 amount)
47 percpu_counter_add(&nn->counter[NFSD_STATS_IO_READ], amount);
49 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_READ], amount);
53 struct svc_export *exp, s64 amount)
55 percpu_counter_add(&nn->counter[NFSD_STATS_IO_WRITE], amount);
57 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_WRITE], amount);
65 static inline void nfsd_stats_drc_mem_usage_add(struct nfsd_net *nn, s64 amount) argument
67 percpu_counter_add(&nn->counter[NFSD_STATS_DRC_MEM_USAGE], amount);
70 static inline void nfsd_stats_drc_mem_usage_sub(struct nfsd_net *nn, s64 amount) argument
72 percpu_counter_sub(&nn->counter[NFSD_STATS_DRC_MEM_USAGE], amount);
44 nfsd_stats_io_read_add(struct nfsd_net *nn, struct svc_export *exp, s64 amount) argument
52 nfsd_stats_io_write_add(struct nfsd_net *nn, struct svc_export *exp, s64 amount) argument
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
H A Dnv20.c38 uint32_t amount, off; local
53 amount = nvkm_rd32(device, 0x10020c);
54 for (off = amount; off > 0x2000000; off -= 0x2000000)
57 amount = nvkm_rd32(device, 0x10020c);
58 if (amount != fbmem_peek(fb, amount - 4))
/linux-master/lib/
H A Dpercpu_counter.c60 void percpu_counter_set(struct percpu_counter *fbc, s64 amount) argument
70 fbc->count = amount;
87 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) argument
93 count = __this_cpu_read(*fbc->counters) + amount;
97 __this_cpu_sub(*fbc->counters, count - amount);
100 this_cpu_add(*fbc->counters, amount);
154 int __percpu_counter_init_many(struct percpu_counter *fbc, s64 amount, argument
177 fbc[i].count = amount;
282 * Compare counter, and add amount if total is: less than or equal to limit if
283 * amount i
293 __percpu_counter_limited_add(struct percpu_counter *fbc, s64 limit, s64 amount, s32 batch) argument
[all...]
H A Dtest_hexdump.c100 size_t amount = strlen(q); local
102 memcpy(p, q, amount);
103 p += amount;
/linux-master/kernel/cgroup/
H A Dmisc.c112 * @amount: Amount to cancel.
117 u64 amount)
119 WARN_ONCE(atomic64_add_negative(-amount, &cg->res[type].usage),
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) argument
150 if (!amount)
156 new_usage = atomic64_add_return(amount, &res->usage);
172 misc_cg_cancel_charge(type, j, amount);
173 misc_cg_cancel_charge(type, i, amount);
116 misc_cg_cancel_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) argument
186 misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) argument
[all...]
/linux-master/drivers/gpu/drm/nouveau/
H A Dnouveau_bo5039.c52 u32 amount, stride, height; local
58 amount = min(length, (u64)(4 * 1024 * 1024));
60 height = amount / stride;
128 length -= amount;
129 src_offset += amount;
130 dst_offset += amount;
/linux-master/sound/pci/ctxfi/
H A Dctresource.c23 get_resource(u8 *rscs, unsigned int amount, argument
29 for (i = 0, n = multi; i < amount; i++) {
40 if (i >= amount) {
80 err = get_resource(mgr->rscs, mgr->amount, n, ridx);
205 unsigned int amount, struct hw *hw)
211 mgr->rscs = kzalloc(DIV_ROUND_UP(amount, 8), GFP_KERNEL);
244 mgr->avail = mgr->amount = amount;
286 mgr->avail = mgr->amount = 0;
204 rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type, unsigned int amount, struct hw *hw) argument
H A Dctresource.h55 unsigned int amount; /* The total amount of a kind of resource */ member in struct:rsc_mgr
56 unsigned int avail; /* The amount of currently available resources */
64 unsigned int amount, struct hw *hw);
/linux-master/fs/btrfs/
H A Ddev-replace.h33 void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount);
/linux-master/drivers/scsi/
H A DBusLogic.h67 Define the default amount of time in seconds to wait between a Host Adapter
1223 unsigned int amount)
1225 bytecount->units += amount;
1237 unsigned int amount)
1240 if (amount < 8 * 1024) {
1241 if (amount < 2 * 1024)
1242 index = (amount < 1 * 1024 ? 0 : 1);
1244 index = (amount < 4 * 1024 ? 2 : 3);
1245 } else if (amount < 128 * 1024) {
1246 if (amount < 3
1222 blogic_addcount(struct blogic_byte_count *bytecount, unsigned int amount) argument
1236 blogic_incszbucket(unsigned int *cmdsz_buckets, unsigned int amount) argument
[all...]
/linux-master/arch/mips/mti-malta/
H A Dmalta-time.c51 static unsigned int freqround(unsigned int freq, unsigned int amount) argument
53 freq += amount;
54 freq -= freq % (amount*2);
/linux-master/drivers/pci/hotplug/
H A Dibmphp_pci.c1041 * This function adds up the amount of resources needed behind the PPB bridge
1044 * Output: amount of resources needed
1065 struct res_needed *amount; local
1067 amount = kzalloc(sizeof(*amount), GFP_KERNEL);
1068 if (amount == NULL)
1076 amount->devices[device] = 0;
1092 amount->not_correct = 1;
1093 return amount;
1099 amount
[all...]
/linux-master/include/sound/
H A Dsoundfont.h113 int snd_sf_linear_to_log(unsigned int amount, int offset, int ratio);
/linux-master/net/bluetooth/
H A Daf_bluetooth.c548 long amount; local
558 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk);
559 if (amount < 0)
560 amount = 0;
561 err = put_user(amount, (int __user *)arg);
570 amount = skb ? skb->len : 0;
573 err = put_user(amount, (int __user *)arg);
/linux-master/drivers/usb/gadget/function/
H A Df_mass_storage.c614 unsigned int amount; local
653 * Try to read the remaining amount.
657 amount = min(amount_left, FSG_BUFLEN);
658 amount = min((loff_t)amount,
671 if (amount == 0) {
684 nread = kernel_read(curlun->filp, bh->buf, amount,
686 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount,
694 } else if (nread < amount) {
696 (int)nread, amount);
745 unsigned int amount; local
960 unsigned int amount; local
1515 u32 amount; local
[all...]
/linux-master/net/atm/
H A Dioctl.c76 int amount; local
84 amount = skb ? skb->len : 0;
86 error = put_user(amount, (int __user *)argp) ? -EFAULT : 0;
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Datombios_crtc.c292 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount);
865 /* calculate ss amount and step size */
867 u32 amount = (((fb_div * 10) + frac_fb_div) * local
870 amdgpu_crtc->ss.amount = (amount / 10) & ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK;
871 amdgpu_crtc->ss.amount |= ((amount - (amount / 10)) << ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT) &
874 step_size = (4 * amount * ref_div * ((u32)amdgpu_crtc->ss.rate * 2048)) /
877 step_size = (2 * amount * ref_di
[all...]
/linux-master/fs/gfs2/
H A Ddir.c28 * searching for one in which the amount of total space minus the amount of
148 * @size: The amount of data to write
184 unsigned int amount; local
187 amount = size - copied;
188 if (amount > sdp->sd_sb.sb_bsize - o)
189 amount = sdp->sd_sb.sb_bsize - o;
202 if (amount == sdp->sd_jbsize || new)
211 memcpy(bh->b_data + o, buf, amount);
214 buf += amount;
287 unsigned int amount; local
[all...]
/linux-master/arch/powerpc/lib/
H A Ddiv64.S31 srw r10,r10,r0 # the divisor right the same amount,
/linux-master/drivers/usb/misc/
H A Dadutux.c384 size_t amount = min(bytes_to_read, data_in_secondary); local
385 if (copy_to_user(buffer, dev->read_buffer_secondary+dev->secondary_head, amount)) {
389 dev->secondary_head += amount;
390 bytes_read += amount;
391 bytes_to_read -= amount;
/linux-master/net/ax25/
H A Daf_ax25.c1770 long amount; local
1772 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk);
1773 if (amount < 0)
1774 amount = 0;
1775 res = put_user(amount, (int __user *)argp);
1781 long amount = 0L; local
1784 amount = skb->len;
1785 res = put_user(amount, (int __user *) argp);
1802 long amount; local
1807 if (get_user(amount, (lon
[all...]

Completed in 315 milliseconds

123