/lib/ |
D | atomic64.c | 53 long long val; in atomic64_read() local 56 val = v->counter; in atomic64_read() 58 return val; in atomic64_read() 88 long long val; in atomic64_add_return() local 91 val = v->counter += a; in atomic64_add_return() 93 return val; in atomic64_add_return() 112 long long val; in atomic64_sub_return() local 115 val = v->counter -= a; in atomic64_sub_return() 117 return val; in atomic64_sub_return() 125 long long val; in atomic64_dec_if_positive() local [all …]
|
D | bcd.c | 4 unsigned _bcd2bin(unsigned char val) in _bcd2bin() argument 6 return (val & 0x0f) + (val >> 4) * 10; in _bcd2bin() 10 unsigned char _bin2bcd(unsigned val) in _bin2bcd() argument 12 return ((val / 10) << 4) + val % 10; in _bin2bcd()
|
D | iomap.c | 103 #define pio_write16be(val,port) outw(swab16(val),port) argument 104 #define pio_write32be(val,port) outl(swab32(val),port) argument 108 #define mmio_write16be(val,port) __raw_writew(be16_to_cpu(val),port) argument 109 #define mmio_write32be(val,port) __raw_writel(be32_to_cpu(val),port) argument 112 void iowrite8(u8 val, void __iomem *addr) in iowrite8() argument 114 IO_COND(addr, outb(val,port), writeb(val, addr)); in iowrite8() 116 void iowrite16(u16 val, void __iomem *addr) in iowrite16() argument 118 IO_COND(addr, outw(val,port), writew(val, addr)); in iowrite16() 120 void iowrite16be(u16 val, void __iomem *addr) in iowrite16be() argument 122 IO_COND(addr, pio_write16be(val,port), mmio_write16be(val, addr)); in iowrite16be() [all …]
|
D | notifier-error-inject.c | 5 static int debugfs_errno_set(void *data, u64 val) in debugfs_errno_set() argument 7 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); in debugfs_errno_set() 11 static int debugfs_errno_get(void *data, u64 *val) in debugfs_errno_get() argument 13 *val = *(int *)data; in debugfs_errno_get() 27 unsigned long val, void *p) in notifier_err_inject_callback() argument 35 if (action->val == val) { in notifier_err_inject_callback()
|
D | reciprocal_div.c | 7 u64 val = (1LL << 32) + (k - 1); in reciprocal_value() local 8 do_div(val, k); in reciprocal_value() 9 return (u32)val; in reciprocal_value()
|
D | fault-inject.c | 142 static int debugfs_ul_set(void *data, u64 val) in debugfs_ul_set() argument 144 *(unsigned long *)data = val; in debugfs_ul_set() 148 static int debugfs_ul_get(void *data, u64 *val) in debugfs_ul_get() argument 150 *val = *(unsigned long *)data; in debugfs_ul_get() 164 static int debugfs_stacktrace_depth_set(void *data, u64 val) in debugfs_stacktrace_depth_set() argument 167 min_t(unsigned long, val, MAX_STACK_TRACE_DEPTH); in debugfs_stacktrace_depth_set() 185 static int debugfs_atomic_t_set(void *data, u64 val) in debugfs_atomic_t_set() argument 187 atomic_set((atomic_t *)data, val); in debugfs_atomic_t_set() 191 static int debugfs_atomic_t_get(void *data, u64 *val) in debugfs_atomic_t_get() argument 193 *val = atomic_read((atomic_t *)data); in debugfs_atomic_t_get()
|
D | average.c | 54 struct ewma *ewma_add(struct ewma *avg, unsigned long val) in ewma_add() argument 58 (val << avg->factor)) >> avg->weight : in ewma_add() 59 (val << avg->factor); in ewma_add()
|
D | genalloc.c | 42 unsigned long val, nval; in set_bits_ll() local 46 val = nval; in set_bits_ll() 47 if (val & mask_to_set) in set_bits_ll() 50 } while ((nval = cmpxchg(addr, val, val | mask_to_set)) != val); in set_bits_ll() 57 unsigned long val, nval; in clear_bits_ll() local 61 val = nval; in clear_bits_ll() 62 if ((val & mask_to_clear) != mask_to_clear) in clear_bits_ll() 65 } while ((nval = cmpxchg(addr, val, val & ~mask_to_clear)) != val); in clear_bits_ll()
|
D | rbtree_test.c | 15 u32 val; member 48 u32 max = node->val, child_augmented; in augment_recompute() 71 u32 val = node->val; in RB_DECLARE_CALLBACKS() local 77 if (parent->augmented < val) in RB_DECLARE_CALLBACKS() 78 parent->augmented = val; in RB_DECLARE_CALLBACKS() 85 node->augmented = val; in RB_DECLARE_CALLBACKS() 100 nodes[i].val = prandom_u32_state(&rnd); in init()
|
D | parser.c | 132 long val; in match_number() local 142 val = simple_strtol(buf, &endp, base); in match_number() 145 else if (val < (long)INT_MIN || val > (long)INT_MAX) in match_number() 148 *result = (int) val; in match_number()
|
D | notifier-error-inject.h | 6 unsigned long val; member 12 .name = #action, .val = (action),
|
D | kstrtox.c | 57 unsigned int val; in _parse_integer() local 60 val = *s - '0'; in _parse_integer() 62 val = _tolower(*s) - 'a' + 10; in _parse_integer() 66 if (val >= base) in _parse_integer() 73 if (res > div_u64(ULLONG_MAX - val, base)) in _parse_integer() 76 res = res * base + val; in _parse_integer()
|
D | flex_proportions.c | 205 s64 val = percpu_counter_read(&pl->events); in fprop_reflect_period_percpu() local 207 if (val < (nr_cpu_ids * PROP_BATCH)) in fprop_reflect_period_percpu() 208 val = percpu_counter_sum(&pl->events); in fprop_reflect_period_percpu() 211 -val + (val >> (period-pl->period)), PROP_BATCH); in fprop_reflect_period_percpu()
|
D | btree.c | 137 unsigned long val; in dec_key() local 141 val = key[i]; in dec_key() 142 key[i] = val - 1; in dec_key() 143 if (val) in dec_key() 165 void *val) in setval() argument 167 node[geo->no_longs + n] = (unsigned long) val; in setval() 271 unsigned long *key, void *val) in btree_update() argument 295 setval(geo, node, i, val); in btree_update() 448 unsigned long *key, void *val, int level, in btree_insert_level() argument 454 BUG_ON(!val); in btree_insert_level() [all …]
|
D | proportions.c | 239 s64 val = percpu_counter_read(&pl->events); in prop_norm_percpu() local 241 if (val < (nr_cpu_ids * PROP_BATCH)) in prop_norm_percpu() 242 val = percpu_counter_sum(&pl->events); in prop_norm_percpu() 244 __percpu_counter_add(&pl->events, -val + (val >> period), in prop_norm_percpu()
|
D | lru_cache.c | 69 unsigned long val; in lc_try_lock() local 71 val = cmpxchg(&lc->flags, 0, LC_LOCKED); in lc_try_lock() 72 } while (unlikely (val == LC_PARANOIA)); in lc_try_lock() 74 return 0 == val; in lc_try_lock() 78 unsigned long old, new, val; in lc_try_lock() 82 val = cmpxchg(&lc->flags, old, new); in lc_try_lock() 83 } while (unlikely (val == (old ^ LC_PARANOIA))); in lc_try_lock() 84 return old == val; in lc_try_lock()
|
D | dynamic_debug.c | 264 static inline int parse_lineno(const char *str, unsigned int *val) in parse_lineno() argument 269 *val = 0; in parse_lineno() 272 *val = simple_strtoul(str, &end, 10); in parse_lineno() 886 static int ddebug_dyndbg_param_cb(char *param, char *val, in ddebug_dyndbg_param_cb() argument 901 ddebug_exec_queries((val ? val : "+p"), modname); in ddebug_dyndbg_param_cb() 907 static int ddebug_dyndbg_boot_param_cb(char *param, char *val, in ddebug_dyndbg_boot_param_cb() argument 910 vpr_info("%s=\"%s\"\n", param, val); in ddebug_dyndbg_boot_param_cb() 911 return ddebug_dyndbg_param_cb(param, val, NULL, 0); in ddebug_dyndbg_boot_param_cb() 919 int ddebug_dyndbg_module_param_cb(char *param, char *val, const char *module) in ddebug_dyndbg_module_param_cb() argument 921 vpr_info("module: %s %s=\"%s\"\n", module, param, val); in ddebug_dyndbg_module_param_cb() [all …]
|
D | percpu-rwsem.c | 55 static bool update_fast_ctr(struct percpu_rw_semaphore *brw, unsigned int val) in update_fast_ctr() argument 61 __this_cpu_add(*brw->fast_read_ctr, val); in update_fast_ctr()
|
D | sha1.c | 37 #define setW(x, val) (*(volatile __u32 *)&W(x) = (val)) argument 39 #define setW(x, val) do { W(x) = (val); __asm__("":::"memory"); } while (0) argument 41 #define setW(x, val) (W(x) = (val)) argument
|
D | vsprintf.c | 2046 } val; in vsscanf() local 2191 val.s = qualifier != 'L' ? in vsscanf() 2195 val.u = qualifier != 'L' ? in vsscanf() 2204 val.s = div_s64(val.s, base); in vsscanf() 2206 val.u = div_u64(val.u, base); in vsscanf() 2214 *va_arg(args, signed char *) = val.s; in vsscanf() 2216 *va_arg(args, unsigned char *) = val.u; in vsscanf() 2220 *va_arg(args, short *) = val.s; in vsscanf() 2222 *va_arg(args, unsigned short *) = val.u; in vsscanf() 2226 *va_arg(args, long *) = val.s; in vsscanf() [all …]
|
/lib/mpi/ |
D | mpicoder.c | 38 MPI val = NULL; in mpi_read_raw_data() local 56 val = mpi_alloc(nlimbs); in mpi_read_raw_data() 57 if (!val) in mpi_read_raw_data() 59 val->nbits = nbits; in mpi_read_raw_data() 60 val->sign = 0; in mpi_read_raw_data() 61 val->nlimbs = nlimbs; in mpi_read_raw_data() 73 val->d[j - 1] = a; in mpi_read_raw_data() 76 return val; in mpi_read_raw_data() 86 MPI val = NULL; in mpi_read_from_buffer() local 101 val = mpi_alloc(nlimbs); in mpi_read_from_buffer() [all …]
|
/lib/lz4/ |
D | lz4defs.h | 111 #define LZ4_NBCOMMONBYTES(val) (__builtin_clzll(val) >> 3) argument 113 #define LZ4_NBCOMMONBYTES(val) (__builtin_ctzll(val) >> 3) argument 136 #define LZ4_NBCOMMONBYTES(val) (__builtin_clz(val) >> 3) argument 138 #define LZ4_NBCOMMONBYTES(val) (__builtin_ctz(val) >> 3) argument
|
/lib/zlib_inflate/ |
D | inftrees.c | 106 this.val = (unsigned short)0; in zlib_inflate_table() 207 this.val = work[sym]; in zlib_inflate_table() 211 this.val = base[work[sym]]; in zlib_inflate_table() 215 this.val = 0; in zlib_inflate_table() 273 (*table)[low].val = (unsigned short)(next - *table); in zlib_inflate_table() 286 this.val = (unsigned short)0; in zlib_inflate_table()
|
D | inffast.c | 153 PUP(out) = (unsigned char)(this.val); in inflate_fast() 156 len = (unsigned)(this.val); in inflate_fast() 180 dist = (unsigned)(this.val); in inflate_fast() 308 this = dcode[this.val + (hold & ((1U << op) - 1))]; in inflate_fast() 318 this = lcode[this.val + (hold & ((1U << op) - 1))]; in inflate_fast()
|
D | inftrees.h | 30 unsigned short val; /* offset in table or code value */ member
|