/lib/ |
D | bsearch.c | 31 void *bsearch(const void *key, const void *base, size_t num, size_t size, in bsearch() argument 37 while (num > 0) { in bsearch() 38 pivot = base + (num >> 1) * size; in bsearch() 46 num--; in bsearch() 48 num >>= 1; in bsearch()
|
D | flex_proportions.c | 144 s64 num, den; in fprop_fraction_single() local 149 num = pl->events; in fprop_fraction_single() 157 if (den <= num) { in fprop_fraction_single() 158 if (num) in fprop_fraction_single() 159 den = num; in fprop_fraction_single() 164 *numerator = num; in fprop_fraction_single() 232 s64 num, den; in fprop_fraction_percpu() local 237 num = percpu_counter_read_positive(&pl->events); in fprop_fraction_percpu() 245 if (den <= num) { in fprop_fraction_percpu() 246 if (num) in fprop_fraction_percpu() [all …]
|
D | oid_registry.c | 109 unsigned long num; in sprint_oid() local 125 num = 0; in sprint_oid() 128 num = n; in sprint_oid() 130 num = n & 0x7f; in sprint_oid() 135 num <<= 7; in sprint_oid() 136 num |= n & 0x7f; in sprint_oid() 139 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
|
D | string_helpers.c | 164 u8 num; in unescape_octal() local 169 num = (*q++) & 7; in unescape_octal() 170 while (num < 32 && isodigit(*q) && (q - *src < 3)) { in unescape_octal() 171 num <<= 3; in unescape_octal() 172 num += (*q++) & 7; in unescape_octal() 174 *p = num; in unescape_octal() 184 u8 num; in unescape_hex() local 189 num = digit = hex_to_bin(*q++); in unescape_hex() 196 num = (num << 4) | digit; in unescape_hex() 198 *p = num; in unescape_hex()
|
D | vsprintf.c | 342 int num_to_str(char *buf, int size, unsigned long long num, unsigned int width) in num_to_str() argument 345 char tmp[sizeof(num) * 3] __aligned(2); in num_to_str() 349 if (num <= 9) { in num_to_str() 350 tmp[0] = '0' + num; in num_to_str() 353 len = put_dec(tmp, num) - tmp; in num_to_str() 416 char *number(char *buf, char *end, unsigned long long num, in number() argument 420 char tmp[3 * sizeof(num)] __aligned(2); in number() 425 bool is_zero = num == 0LL; in number() 436 if ((signed long long)num < 0) { in number() 438 num = -(signed long long)num; in number() [all …]
|
D | test_memcat_p.c | 12 int num; member 48 in0[i]->num = r; in test_memcat_p_init() 49 in1[i]->num = -r; in test_memcat_p_init() 62 total += (*p)->num; in test_memcat_p_init()
|
D | sort.c | 204 void sort_r(void *base, size_t num, size_t size, in sort_r() argument 210 size_t n = num * size, a = (num/2) * size; in sort_r() 271 void sort(void *base, size_t num, size_t size, in sort() argument 275 return sort_r(base, num, size, _CMP_WRAPPER, swap_func, cmp_func); in sort()
|
D | parser.c | 70 goto num; in match_one() 73 goto num; in match_one() 76 goto num; in match_one() 79 num: in match_one()
|
D | test_meminit.c | 304 int num, bytes; in do_kmem_cache_size_bulk() local 310 num = kmem_cache_alloc_bulk(c, GFP_KERNEL, ARRAY_SIZE(objects), in do_kmem_cache_size_bulk() 312 for (i = 0; i < num; i++) { in do_kmem_cache_size_bulk() 319 if (num) in do_kmem_cache_size_bulk() 320 kmem_cache_free_bulk(c, num, objects); in do_kmem_cache_size_bulk()
|
D | extable.c | 117 const size_t num, in search_extable() argument 120 return bsearch(&value, base, num, in search_extable()
|
D | bitmap.c | 536 static const char *bitmap_getnum(const char *str, unsigned int *num) in bitmap_getnum() argument 547 *num = n; in bitmap_getnum()
|