/linux-master/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...] |
/linux-master/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, 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 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) 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 D | backing-dev.h | 64 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 D | stats.h | 40 struct svc_export *exp, s64 amount) 42 percpu_counter_add(&nn->counter[NFSD_STATS_IO_READ], amount); 44 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_READ], amount); 48 struct svc_export *exp, s64 amount) 50 percpu_counter_add(&nn->counter[NFSD_STATS_IO_WRITE], amount); 52 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_WRITE], amount); 60 static inline void nfsd_stats_drc_mem_usage_add(struct nfsd_net *nn, s64 amount) argument 62 percpu_counter_add(&nn->counter[NFSD_STATS_DRC_MEM_USAGE], amount); 65 static inline void nfsd_stats_drc_mem_usage_sub(struct nfsd_net *nn, s64 amount) argument 67 percpu_counter_sub(&nn->counter[NFSD_STATS_DRC_MEM_USAGE], amount); 39 nfsd_stats_io_read_add(struct nfsd_net *nn, struct svc_export *exp, s64 amount) argument 47 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 D | nv20.c | 38 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 D | percpu_counter.c | 60 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 D | test_hexdump.c | 100 size_t amount = strlen(q); local 102 memcpy(p, q, amount); 103 p += amount;
|
/linux-master/kernel/cgroup/ |
H A D | misc.c | 112 * @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 D | nouveau_bo5039.c | 52 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 D | ctresource.c | 23 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 D | ctresource.h | 55 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 D | dev-replace.h | 33 void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount);
|
/linux-master/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) 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 D | malta-time.c | 51 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 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; 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 D | soundfont.h | 113 int snd_sf_linear_to_log(unsigned int amount, int offset, int ratio);
|
/linux-master/net/bluetooth/ |
H A D | af_bluetooth.c | 548 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 D | f_mass_storage.c | 614 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 D | ioctl.c | 76 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 D | atombios_crtc.c | 292 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 D | dir.c | 28 * 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 D | div64.S | 31 srw r10,r10,r0 # the divisor right the same amount,
|
/linux-master/drivers/usb/misc/ |
H A D | adutux.c | 384 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 D | af_ax25.c | 1770 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...] |