| /lib/ |
| D | vsprintf.c | 457 char *number(char *buf, char *end, unsigned long long num, in number() argument 521 if (buf < end) in number() 528 if (buf < end) in number() 535 if (buf < end) in number() 540 if (buf < end) in number() 550 if (buf < end) in number() 557 if (buf < end) in number() 563 if (buf < end) in number() 569 if (buf < end) in number() 578 char *special_hex_number(char *buf, char *end, unsigned long long num, int size) in special_hex_number() argument [all …]
|
| D | bitmap-str.c | 216 unsigned int end; member 224 for (start = r->start; start <= r->end; start += r->group_len) in bitmap_set_region() 225 bitmap_set(bitmap, start, min(r->end - start + 1, r->off)); in bitmap_set_region() 230 if (r->start > r->end || r->group_len == 0 || r->off > r->group_len) in bitmap_check_region() 233 if (r->end >= r->nbits) in bitmap_check_region() 287 static const char *bitmap_find_region_reverse(const char *start, const char *end) in bitmap_find_region_reverse() argument 289 while (start <= end && __end_of_region(*end)) in bitmap_find_region_reverse() 290 end--; in bitmap_find_region_reverse() 292 return end; in bitmap_find_region_reverse() 301 r->end = lastbit; in bitmap_parse_region() [all …]
|
| D | siphash.c | 48 const u8 *end = data + len - (len % sizeof(u64)); in __siphash_aligned() local 52 for (; data != end; data += sizeof(u64)) { in __siphash_aligned() 65 case 7: b |= ((u64)end[6]) << 48; fallthrough; in __siphash_aligned() 66 case 6: b |= ((u64)end[5]) << 40; fallthrough; in __siphash_aligned() 67 case 5: b |= ((u64)end[4]) << 32; fallthrough; in __siphash_aligned() 69 case 3: b |= ((u64)end[2]) << 16; fallthrough; in __siphash_aligned() 71 case 1: b |= end[0]; in __siphash_aligned() 81 const u8 *end = data + len - (len % sizeof(u64)); in __siphash_unaligned() local 85 for (; data != end; data += sizeof(u64)) { in __siphash_unaligned() 98 case 7: b |= ((u64)end[6]) << 48; fallthrough; in __siphash_unaligned() [all …]
|
| D | string_helpers.c | 358 static bool escape_passthrough(unsigned char c, char **dst, char *end) in escape_passthrough() argument 362 if (out < end) in escape_passthrough() 368 static bool escape_space(unsigned char c, char **dst, char *end) in escape_space() argument 393 if (out < end) in escape_space() 396 if (out < end) in escape_space() 404 static bool escape_special(unsigned char c, char **dst, char *end) in escape_special() argument 426 if (out < end) in escape_special() 429 if (out < end) in escape_special() 437 static bool escape_null(unsigned char c, char **dst, char *end) in escape_null() argument 444 if (out < end) in escape_null() [all …]
|
| D | test_hmm.c | 213 pfn < (range->end >> PAGE_SHIFT); in dmirror_do_fault() 242 unsigned long end) in dmirror_do_update() argument 253 end >> PAGE_SHIFT) in dmirror_do_update() 277 dmirror_do_update(dmirror, range->start, range->end); in dmirror_interval_invalidate() 328 unsigned long end, bool write) in dmirror_fault() argument 347 for (addr = start; addr < end; addr = range.end) { in dmirror_fault() 349 range.end = min(addr + (ARRAY_SIZE(pfns) << PAGE_SHIFT), end); in dmirror_fault() 361 unsigned long end, struct dmirror_bounce *bounce) in dmirror_do_read() argument 368 for (pfn = start >> PAGE_SHIFT; pfn < (end >> PAGE_SHIFT); pfn++) { in dmirror_do_read() 389 unsigned long start, end; in dmirror_read() local [all …]
|
| D | iomap_copy.c | 24 const u32 *end = src + count; in __iowrite32_copy() local 26 while (src < end) in __iowrite32_copy() 46 const u32 __iomem *end = src + count; in __ioread32_copy() local 48 while (src < end) in __ioread32_copy() 69 const u64 *end = src + count; in __iowrite64_copy() local 71 while (src < end) in __iowrite64_copy()
|
| D | dynamic_queue_limits.c | 28 unsigned long hist_head, t, start, end; in dql_check_stall() local 49 end = hist_head * BITS_PER_LONG + (BITS_PER_LONG - 1); in dql_check_stall() 54 if (time_before(now, end + stall_thrs / 2)) in dql_check_stall() 55 end = now - stall_thrs / 2; in dql_check_stall() 58 for (t = start; time_before_eq(t, end); t++) in dql_check_stall() 64 if (!time_before_eq(t, end)) in dql_check_stall()
|
| D | oid_registry.c | 132 const unsigned char *v = data, *end = v + datasize; in sprint_oid() local 138 if (v >= end) in sprint_oid() 148 while (v < end) { in sprint_oid() 155 if (v >= end) in sprint_oid()
|
| D | maple_tree.c | 871 unsigned char offset, unsigned char end) in ma_set_meta() argument 876 meta->end = end; in ma_set_meta() 913 meta->end = 0; in mt_clear_meta() 926 return meta->end; in ma_meta_end() 1753 unsigned char end; in mas_find_child() local 1763 end = ma_data_end(node, mt, pivots, mas->max); in mas_find_child() 1764 for (offset = mas->offset; offset <= end; offset++) { in mas_find_child() 1963 enum maple_type mt, unsigned char end) in mas_leaf_set_meta() argument 1965 if (end < mt_slots[mt] - 1) in mas_leaf_set_meta() 1966 ma_set_meta(node, mt, 0, end); in mas_leaf_set_meta() [all …]
|
| D | usercopy_kunit.c | 49 size_t start, end, i, zero_start, zero_end; in usercopy_test_check_nonzero_user() local 93 for (end = start; end <= size; end++) { in usercopy_test_check_nonzero_user() 94 size_t len = end - start; in usercopy_test_check_nonzero_user() 100 retval, expected, start, end); in usercopy_test_check_nonzero_user()
|
| D | bitmap.c | 420 unsigned long index, end, i; in bitmap_find_next_zero_area_off() local 427 end = index + nr; in bitmap_find_next_zero_area_off() 428 if (end > size) in bitmap_find_next_zero_area_off() 429 return end; in bitmap_find_next_zero_area_off() 430 i = find_next_bit(map, end, index); in bitmap_find_next_zero_area_off() 431 if (i < end) { in bitmap_find_next_zero_area_off() 868 const unsigned long *end = bitmap + BITS_TO_LONGS(nbits); in bitmap_to_arr64() local 870 while (bitmap < end) { in bitmap_to_arr64() 872 if (bitmap < end) in bitmap_to_arr64()
|
| D | fortify_kunit.c | 403 int i, end = sizeof(pad.buf) - 1; in fortify_test_strlen() local 409 KUNIT_EXPECT_EQ(test, pad.buf[end], '\0'); in fortify_test_strlen() 413 KUNIT_EXPECT_EQ(test, strlen(pad.buf), end); in fortify_test_strlen() 417 pad.buf[end] = 'A'; in fortify_test_strlen() 418 end = sizeof(pad.buf); in fortify_test_strlen() 419 KUNIT_EXPECT_EQ(test, strlen(pad.buf), end); in fortify_test_strlen() 426 int i, end = sizeof(pad.buf) - 1; in fortify_test_strnlen() local 432 KUNIT_EXPECT_EQ(test, pad.buf[end], '\0'); in fortify_test_strnlen() 436 KUNIT_EXPECT_EQ(test, strnlen(pad.buf, sizeof(pad.buf)), end); in fortify_test_strnlen() 444 pad.buf[end] = 'A'; in fortify_test_strnlen() [all …]
|
| D | idr.c | 79 int idr_alloc(struct idr *idr, void *ptr, int start, int end, gfp_t gfp) in idr_alloc() argument 87 ret = idr_alloc_u32(idr, ptr, &id, end > 0 ? end - 1 : INT_MAX, gfp); in idr_alloc() 117 int idr_alloc_cyclic(struct idr *idr, void *ptr, int start, int end, gfp_t gfp) in idr_alloc_cyclic() argument 120 int err, max = end > 0 ? end - 1 : INT_MAX; in idr_alloc_cyclic()
|
| D | decompress_unlzo.c | 45 u8 *end = input + in_len; in parse_header() local 79 if (end - parse < 8 + 1 + 4) in parse_header() 89 if (end - parse < l + 4) in parse_header()
|
| D | fw_table.c | 116 unsigned long end) in call_handler() argument 119 return proc->handler(hdr, end); in call_handler() 121 return proc->handler_arg(hdr, proc->arg, end); in call_handler()
|
| D | dynamic_debug.c | 284 char *end; in ddebug_tokenize() local 296 for (end = buf; *end && *end != quote; end++) in ddebug_tokenize() 298 if (!*end) { in ddebug_tokenize() 303 for (end = buf; *end && !isspace(*end); end++) in ddebug_tokenize() 305 if (end == buf) { in ddebug_tokenize() 317 if (*end) in ddebug_tokenize() 318 *end++ = '\0'; /* terminate the word */ in ddebug_tokenize() 320 buf = end; in ddebug_tokenize()
|
| D | checksum.c | 70 const unsigned char *end = buff + ((unsigned)len & ~3); in do_csum() local 78 } while (buff < end); in do_csum()
|
| /lib/kunit/ |
| D | executor_test.c | 47 .start = subsuite, .end = &subsuite[2], in filter_suites_test() 66 KUNIT_ASSERT_EQ(test, got.end - got.start, 1); in filter_suites_test() 73 .start = subsuite, .end = &subsuite[2], in filter_suites_test_glob_test() 90 KUNIT_ASSERT_EQ(test, got.end - got.start, 1); in filter_suites_test_glob_test() 102 .start = subsuite, .end = &subsuite[2], in filter_suites_to_empty_test() 114 KUNIT_EXPECT_PTR_EQ_MSG(test, got.start, got.end, in filter_suites_to_empty_test() 154 .start = subsuite, .end = &subsuite[2], in filter_attr_test() 180 KUNIT_ASSERT_EQ(test, got.end - got.start, 1); in filter_attr_test() 192 .start = subsuite, .end = &subsuite[2], in filter_attr_empty_test() 205 KUNIT_EXPECT_PTR_EQ_MSG(test, got.start, got.end, in filter_attr_empty_test() [all …]
|
| D | executor.c | 136 for (suites = suite_set.start; suites < suite_set.end; suites++) { in kunit_free_suite_set() 162 const size_t max = suite_set->end - suite_set->start; in kunit_filter_suites() 190 for (i = 0; &suite_set->start[i] != suite_set->end; i++) { in kunit_filter_suites() 233 filtered.end = copy; in kunit_filter_suites() 262 size_t num_suites = suite_set->end - suite_set->start; in kunit_exec_run_tests() 280 for (suites = suite_set->start; suites < suite_set->end; suites++) { in kunit_exec_list_tests() 303 init_num_suites = init_suite_set.end - init_suite_set.start; in kunit_merge_suite_sets() 304 num_suites = suite_set.end - suite_set.start; in kunit_merge_suite_sets() 321 total_suite_set.end = total_suite_start + (init_num_suites + num_suites); in kunit_merge_suite_sets() 355 size_t init_num_suites = init_suite_set.end - init_suite_set.start; in kunit_run_all_tests()
|
| /lib/dim/ |
| D | dim.c | 57 bool dim_calc_stats(struct dim_sample *start, struct dim_sample *end, in dim_calc_stats() argument 61 u32 delta_us = ktime_us_delta(end->time, start->time); in dim_calc_stats() 62 u32 npkts = BIT_GAP(BITS_PER_TYPE(u32), end->pkt_ctr, start->pkt_ctr); in dim_calc_stats() 63 u32 nbytes = BIT_GAP(BITS_PER_TYPE(u32), end->byte_ctr, in dim_calc_stats() 65 u32 ncomps = BIT_GAP(BITS_PER_TYPE(u32), end->comp_ctr, in dim_calc_stats()
|
| /lib/zlib_inflate/ |
| D | inftrees.c | 43 int end; /* use base and extra for symbol > end */ in zlib_inflate_table() local 171 end = 19; in zlib_inflate_table() 178 end = 256; in zlib_inflate_table() 183 end = -1; in zlib_inflate_table() 205 if ((int)(work[sym]) < end) { in zlib_inflate_table() 209 else if ((int)(work[sym]) > end) { in zlib_inflate_table()
|
| D | inffast.c | 74 unsigned char *end; /* while out < end, enough space available */ in inflate_fast() local 101 end = out + (strm->avail_out - 257); in inflate_fast() 308 } while (in < last && out < end); in inflate_fast() 320 strm->avail_out = (unsigned)(out < end ? in inflate_fast() 321 257 + (end - out) : 257 - (out - end)); in inflate_fast()
|
| /lib/lz4/ |
| D | lz4hc_compress.c | 67 hc4->end = start; in LZ4HC_init() 373 ctx->end += inputSize; in LZ4HC_compress_generic() 639 ctxPtr->end = (const BYTE *)dictionary + dictSize; in LZ4_loadDictHC() 650 if (ctxPtr->end >= ctxPtr->base + 4) { in LZ4HC_setExternalDict() 652 LZ4HC_Insert(ctxPtr, ctxPtr->end - 3); in LZ4HC_setExternalDict() 660 ctxPtr->dictLimit = (U32)(ctxPtr->end - ctxPtr->base); in LZ4HC_setExternalDict() 663 ctxPtr->end = newBlock; in LZ4HC_setExternalDict() 683 if ((size_t)(ctxPtr->end - ctxPtr->base) > 2 * GB) { in LZ4_compressHC_continue_generic() 684 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) in LZ4_compressHC_continue_generic() 689 (const char *)(ctxPtr->end) - dictSize, (int)dictSize); in LZ4_compressHC_continue_generic() [all …]
|
| /lib/zstd/compress/ |
| D | zstd_cwksp.h | 366 void* end; in ZSTD_cwksp_reserve_table() local 373 end = (BYTE *)alloc + bytes; in ZSTD_cwksp_reserve_table() 380 assert(end <= top); in ZSTD_cwksp_reserve_table() 381 if (end > top) { in ZSTD_cwksp_reserve_table() 386 ws->tableEnd = end; in ZSTD_cwksp_reserve_table() 402 void* end = (BYTE*)alloc + roundedBytes; in ZSTD_cwksp_reserve_object() local 412 if (ws->phase != ZSTD_cwksp_alloc_objects || end > ws->workspaceEnd) { in ZSTD_cwksp_reserve_object() 417 ws->objectEnd = end; in ZSTD_cwksp_reserve_object() 418 ws->tableEnd = end; in ZSTD_cwksp_reserve_object() 419 ws->tableValidEnd = end; in ZSTD_cwksp_reserve_object()
|
| /lib/xz/ |
| D | xz_dec_lzma2.c | 67 size_t end; member 293 dict->end = b->out_size - b->out_pos; in dict_reset() 305 if (dict->end - dict->pos <= out_max) in dict_limit() 306 dict->limit = dict->end; in dict_limit() 328 offset += dict->end; in dict_get() 362 back += dict->end; in dict_repeat() 366 if (back == dict->end) in dict_repeat() 386 if (copy_size > dict->end - dict->pos) in dict_uncompressed() 387 copy_size = dict->end - dict->pos; in dict_uncompressed() 407 if (dict->pos == dict->end) in dict_uncompressed() [all …]
|