/lib/ |
H A D | bcd.c | 4 unsigned _bcd2bin(unsigned char val) argument 6 return (val & 0x0f) + (val >> 4) * 10; 10 unsigned char _bin2bcd(unsigned val) argument 12 return ((val / 10) << 4) + val % 10;
|
H A D | clz_ctz.c | 19 int __weak __ctzsi2(int val); 20 int __weak __ctzsi2(int val) argument 22 return __ffs(val); 26 int __weak __clzsi2(int val); 27 int __weak __clzsi2(int val) argument 29 return 32 - fls(val); 33 int __weak __clzdi2(long val); 34 int __weak __ctzdi2(long val); 37 int __weak __clzdi2(long val) argument 39 return 32 - fls((int)val); 43 __ctzdi2(long val) argument 51 __clzdi2(long val) argument 57 __ctzdi2(long val) argument [all...] |
H A D | average.c | 50 * @val: Current value 54 struct ewma *ewma_add(struct ewma *avg, unsigned long val) argument 60 (val << avg->factor)) >> avg->weight : 61 (val << avg->factor);
|
H A D | notifier-error-inject.h | 6 unsigned long val; member in struct:notifier_err_inject_action 12 .name = #action, .val = (action),
|
H A D | atomic64.c | 53 long long val; local 56 val = v->counter; 58 return val; 90 long long val; \ 93 val = (v->counter c_op a); \ 95 return val; \ 114 long long val; local 117 val = v->counter - 1; 118 if (val >= 0) 119 v->counter = val; 129 long long val; local 144 long long val; local [all...] |
H A D | kstrtox.c | 57 unsigned int val; local 60 val = *s - '0'; 62 val = _tolower(*s) - 'a' + 10; 66 if (val >= base) 73 if (res > div_u64(ULLONG_MAX - val, base)) 76 res = res * base + val;
|
H A D | notifier-error-inject.c | 5 static int debugfs_errno_set(void *data, u64 val) argument 7 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); 11 static int debugfs_errno_get(void *data, u64 *val) argument 13 *val = *(int *)data; 27 unsigned long val, void *p) 35 if (action->val == val) { 77 * notifier call chain is called with action->val, it will 26 notifier_err_inject_callback(struct notifier_block *nb, unsigned long val, void *p) argument
|
H A D | fault-inject.c | 142 static int debugfs_ul_set(void *data, u64 val) argument 144 *(unsigned long *)data = val; 148 static int debugfs_ul_get(void *data, u64 *val) argument 150 *val = *(unsigned long *)data; 164 static int debugfs_stacktrace_depth_set(void *data, u64 val) argument 167 min_t(unsigned long, val, MAX_STACK_TRACE_DEPTH);
|
H A D | flex_proportions.c | 205 s64 val = percpu_counter_read(&pl->events); local 207 if (val < (nr_cpu_ids * PROP_BATCH)) 208 val = percpu_counter_sum(&pl->events); 211 -val + (val >> (period-pl->period)), PROP_BATCH);
|
H A D | parser.c | 133 long val; local 143 val = simple_strtol(buf, &endp, base); 146 else if (val < (long)INT_MIN || val > (long)INT_MAX) 149 *result = (int) val;
|
H A D | proportions.c | 239 s64 val = percpu_counter_read(&pl->events); local 241 if (val < (nr_cpu_ids * PROP_BATCH)) 242 val = percpu_counter_sum(&pl->events); 244 __percpu_counter_add(&pl->events, -val + (val >> period),
|
H A D | iomap.c | 103 #define pio_write16be(val,port) outw(swab16(val),port) 104 #define pio_write32be(val,port) outl(swab32(val),port) 108 #define mmio_write16be(val,port) __raw_writew(be16_to_cpu(val),port) 109 #define mmio_write32be(val,port) __raw_writel(be32_to_cpu(val),port) 112 void iowrite8(u8 val, void __iomem *addr) argument 114 IO_COND(addr, outb(val,por 116 iowrite16(u16 val, void __iomem *addr) argument 120 iowrite16be(u16 val, void __iomem *addr) argument 124 iowrite32(u32 val, void __iomem *addr) argument 128 iowrite32be(u32 val, void __iomem *addr) argument [all...] |
H A D | lru_cache.c | 69 unsigned long val; local 71 val = cmpxchg(&lc->flags, 0, LC_LOCKED); 72 } while (unlikely (val == LC_PARANOIA)); 74 return 0 == val; 78 unsigned long old, new, val; 82 val = cmpxchg(&lc->flags, old, new); 83 } while (unlikely (val == (old ^ LC_PARANOIA))); 84 return old == val;
|
H A D | random32.c | 152 unsigned int val = 0; local 154 (void)(arch_get_random_seed_int(&val) || 155 arch_get_random_int(&val)); 157 return val;
|
H A D | rbtree_test.c | 15 u32 val; member in struct:test_node 48 u32 max = node->val, child_augmented; 71 u32 val = node->val; local 77 if (parent->augmented < val) 78 parent->augmented = val; 85 node->augmented = val; 100 nodes[i].val = prandom_u32_state(&rnd);
|
H A D | genalloc.c | 47 unsigned long val, nval; local 51 val = nval; 52 if (val & mask_to_set) 55 } while ((nval = cmpxchg(addr, val, val | mask_to_set)) != val); 62 unsigned long val, nval; local 66 val = nval; 67 if ((val & mask_to_clear) != mask_to_clear) 70 } while ((nval = cmpxchg(addr, val, va [all...] |
H A D | btree.c | 137 unsigned long val; local 141 val = key[i]; 142 key[i] = val - 1; 143 if (val) 165 void *val) 167 node[geo->no_longs + n] = (unsigned long) val; 272 unsigned long *key, void *val) 296 setval(geo, node, i, val); 449 unsigned long *key, void *val, int level, 455 BUG_ON(!val); 164 setval(struct btree_geo *geo, unsigned long *node, int n, void *val) argument 271 btree_update(struct btree_head *head, struct btree_geo *geo, unsigned long *key, void *val) argument 448 btree_insert_level(struct btree_head *head, struct btree_geo *geo, unsigned long *key, void *val, int level, gfp_t gfp) argument 510 btree_insert(struct btree_head *head, struct btree_geo *geo, unsigned long *key, void *val, gfp_t gfp) argument 644 void *val; local [all...] |
H A D | bitmap.c | 372 #define nbits_to_hold_value(val) fls(val) 390 unsigned long val; local 404 val = (maskp[word] >> bit) & chunkmask; 406 (chunksz+3)/4, val);
|
H A D | dynamic_debug.c | 269 static inline int parse_lineno(const char *str, unsigned int *val) argument 273 *val = 0; 276 if (kstrtouint(str, 10, val) < 0) { 289 pr_err("match-spec:%s val:%s overridden by %s\n", 446 /* check flags 1st (last arg) so query is pairs of spec,val */ 868 static int ddebug_dyndbg_param_cb(char *param, char *val, argument 883 ddebug_exec_queries((val ? val : "+p"), modname); 889 static int ddebug_dyndbg_boot_param_cb(char *param, char *val, argument 892 vpr_info("%s=\"%s\"\n", param, val); 901 ddebug_dyndbg_module_param_cb(char *param, char *val, const char *module) argument [all...] |
H A D | vsprintf.c | 2345 } val; local 2490 val.s = qualifier != 'L' ? 2494 val.u = qualifier != 'L' ? 2503 val.s = div_s64(val.s, base); 2505 val.u = div_u64(val.u, base); 2513 *va_arg(args, signed char *) = val.s; 2515 *va_arg(args, unsigned char *) = val.u; 2519 *va_arg(args, short *) = val [all...] |
/lib/zlib_inflate/ |
H A D | inftrees.h | 24 of the bit buffer. val is the actual byte to output in the case 30 unsigned short val; /* offset in table or code value */ member in struct:__anon31
|
/lib/mpi/ |
H A D | mpicoder.c | 38 MPI val = NULL; local 56 val = mpi_alloc(nlimbs); 57 if (!val) 59 val->nbits = nbits; 60 val->sign = 0; 61 val->nlimbs = nlimbs; 73 val->d[j - 1] = a; 76 return val; 86 MPI val = NULL; local 101 val [all...] |