/lib/ |
D | strncpy_from_user.c | 28 unsigned long count, unsigned long max) in do_strncpy_from_user() argument 36 while (max >= sizeof(unsigned long)) { in do_strncpy_from_user() 49 max -= sizeof(unsigned long); in do_strncpy_from_user() 53 while (max) { in do_strncpy_from_user() 61 max--; in do_strncpy_from_user() 107 unsigned long max = max_addr - src_addr; in strncpy_from_user() local 114 if (max > count) in strncpy_from_user() 115 max = count; in strncpy_from_user() 119 if (user_access_begin(src, max)) { in strncpy_from_user() 120 retval = do_strncpy_from_user(dst, src, count, max); in strncpy_from_user()
|
D | strnlen_user.c | 23 static inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max) in do_strnlen_user() argument 35 max += align; in do_strnlen_user() 49 if (unlikely(max <= sizeof(unsigned long))) in do_strnlen_user() 51 max -= sizeof(unsigned long); in do_strnlen_user() 102 unsigned long max = max_addr - src_addr; in strnlen_user() local 109 if (max > count) in strnlen_user() 110 max = count; in strnlen_user() 112 if (user_access_begin(str, max)) { in strnlen_user() 113 retval = do_strnlen_user(str, count, max); in strnlen_user()
|
D | xarray.c | 411 unsigned long max = xas->xa_index; in xas_max() local 416 max |= mask; in xas_max() 417 if (mask == max) in xas_max() 418 max++; in xas_max() 422 return max; in xas_max() 560 unsigned long max = xas_max(xas); in xas_expand() local 563 if (max == 0) in xas_expand() 565 while ((max >> shift) >= XA_CHUNK_SIZE) in xas_expand() 574 while (max > max_index(head)) { in xas_expand() 773 unsigned int offset, max; in xas_store() local [all …]
|
D | idr.c | 34 unsigned long max, gfp_t gfp) in idr_alloc_u32() argument 46 slot = idr_get_free(&idr->idr_rt, &iter, gfp, max - base); in idr_alloc_u32() 120 int err, max = end > 0 ? end - 1 : INT_MAX; in idr_alloc_cyclic() local 125 err = idr_alloc_u32(idr, ptr, &id, max, gfp); in idr_alloc_cyclic() 128 err = idr_alloc_u32(idr, ptr, &id, max, gfp); in idr_alloc_cyclic() 379 int ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max, in ida_alloc_range() argument 390 if ((int)max < 0) in ida_alloc_range() 391 max = INT_MAX; in ida_alloc_range() 396 bitmap = xas_find_marked(&xas, max / IDA_BITMAP_BITS, XA_FREE_MARK); in ida_alloc_range() 399 if (xas.xa_index * IDA_BITMAP_BITS + bit > max) in ida_alloc_range() [all …]
|
D | rbtree_test.c | 225 u32 subtree, max = node->val; in check_augmented() local 229 if (max < subtree) in check_augmented() 230 max = subtree; in check_augmented() 235 if (max < subtree) in check_augmented() 236 max = subtree; in check_augmented() 238 WARN_ON_ONCE(node->augmented != max); in check_augmented()
|
D | string.c | 183 size_t max = count; in strscpy() local 196 if (limit < max) in strscpy() 197 max = limit; in strscpy() 202 max = 0; in strscpy() 205 while (max >= sizeof(unsigned long)) { in strscpy() 218 max -= sizeof(unsigned long); in strscpy()
|
D | radix-tree.c | 615 unsigned long max = index; in __radix_tree_create() local 621 if (max > maxindex) { in __radix_tree_create() 622 int error = radix_tree_extend(root, gfp, max, shift); in __radix_tree_create() 1487 unsigned long max) in idr_get_free() argument 1497 start = max(start, maxindex + 1); in idr_get_free() 1498 if (start > max) in idr_get_free() 1532 if (start > max || start == 0) in idr_get_free() 1548 iter->next_index = 1 + min(max, (start | node_maxindex(node))); in idr_get_free()
|
D | test_xarray.c | 329 unsigned long max = (1UL << order) - 1; in check_xa_shrink() local 331 XA_BUG_ON(xa, xa_load(xa, max) != xa_mk_value(0)); in check_xa_shrink() 332 XA_BUG_ON(xa, xa_load(xa, max + 1) != NULL); in check_xa_shrink() 341 XA_BUG_ON(xa, xa_load(xa, max + 1) != NULL); in check_xa_shrink() 508 unsigned long max = min + (1UL << order); in check_multi_store_1() local 512 XA_BUG_ON(xa, xa_load(xa, max - 1) != xa_mk_index(index)); in check_multi_store_1() 513 XA_BUG_ON(xa, xa_load(xa, max) != NULL); in check_multi_store_1() 520 XA_BUG_ON(xa, xa_load(xa, max - 1) != xa_mk_index(min)); in check_multi_store_1() 521 XA_BUG_ON(xa, xa_load(xa, max) != NULL); in check_multi_store_1() 875 unsigned int max = (2 << i) - 1; in check_store_iter() local [all …]
|
D | dynamic_queue_limits.c | 87 slack = max(slack, slack_last_objs); in dql_completed()
|
D | kfifo.c | 384 unsigned int max = (1 << (recsize << 3)) - 1; in __kfifo_max_r() local 386 if (len > max) in __kfifo_max_r() 387 return max; in __kfifo_max_r()
|
D | objagg.c | 225 unsigned int min, max; in objagg_obj_root_id_alloc() local 236 max = hnode->root_id; in objagg_obj_root_id_alloc() 242 max = ~0; in objagg_obj_root_id_alloc() 245 root_id = ida_alloc_range(&objagg->root_ida, min, max, GFP_KERNEL); in objagg_obj_root_id_alloc()
|
D | percpu_counter.c | 172 percpu_counter_batch = max(32, nr*2); in compute_batch_value()
|
D | nlattr.c | 136 (validate_max && nla_get_u64(nla) > pt->max)) { in nla_validate_int_range() 148 (validate_max && value > pt->max)) { in nla_validate_int_range()
|
D | test_kmod.c | 915 unsigned int max) in test_dev_config_update_uint_range() argument 924 if (new < min || new > max) in test_dev_config_update_uint_range()
|
D | rhashtable.c | 952 retsize = max(roundup_pow_of_two(params->nelem_hint * 4 / 3), in rounded_hashtable_size() 955 retsize = max(HASH_DEFAULT_SIZE, in rounded_hashtable_size()
|
D | vsprintf.c | 1021 char sym[max(2*RSRC_BUF_SIZE + DECODED_BUF_SIZE, in resource_string()
|
/lib/zlib_inflate/ |
D | inftrees.c | 28 unsigned min, max; /* minimum and maximum code lengths */ in zlib_inflate_table() local 100 for (max = MAXBITS; max >= 1; max--) in zlib_inflate_table() 101 if (count[max] != 0) break; in zlib_inflate_table() 102 if (root > max) root = max; in zlib_inflate_table() 103 if (max == 0) { /* no symbols to code at all */ in zlib_inflate_table() 123 if (left > 0 && (type == CODES || max != 1)) in zlib_inflate_table() 241 if (len == max) break; in zlib_inflate_table() 257 while (curr + drop < max) { in zlib_inflate_table()
|
/lib/zstd/ |
D | fse_compress.c | 263 int const max = (2 * threshold - 1) - remaining; in FSE_writeNCount_generic() local 267 count += max; /* [0..max[ [max..threshold[ (...) [threshold+max 2*threshold[ */ in FSE_writeNCount_generic() 270 bitCount -= (count < max); in FSE_writeNCount_generic() 329 unsigned max = 0; in FSE_count_simple() local 347 if (count[s] > max) in FSE_count_simple() 348 max = count[s]; in FSE_count_simple() 351 return (size_t)max; in FSE_count_simple() 363 unsigned max = 0; in FSE_count_parallel_wksp() local 434 if (count[s] > max) in FSE_count_parallel_wksp() 435 max = count[s]; in FSE_count_parallel_wksp() [all …]
|
D | entropy_common.c | 118 int const max = (2 * threshold - 1) - remaining; in FSE_readNCount() local 121 if ((bitStream & (threshold - 1)) < (U32)max) { in FSE_readNCount() 127 count -= max; in FSE_readNCount()
|
D | compress.c | 150 #define CLAMPCHECK(val, min, max) \ in ZSTD_checkCParams() argument 152 if ((val < min) | (val > max)) \ in ZSTD_checkCParams() 652 U32 max = MaxLL; in ZSTD_compressSequences_internal() local 653 size_t const mostFrequent = FSE_countFast_wksp(count, &max, llCodeTable, nbSeq, workspace); in ZSTD_compressSequences_internal() 656 FSE_buildCTable_rle(CTable_LitLength, (BYTE)max); in ZSTD_compressSequences_internal() 665 const U32 tableLog = FSE_optimalTableLog(LLFSELog, nbSeq, max); in ZSTD_compressSequences_internal() 670 FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max); in ZSTD_compressSequences_internal() 672 …size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protect… in ZSTD_compressSequences_internal() 677 FSE_buildCTable_wksp(CTable_LitLength, norm, max, tableLog, workspace, workspaceSize); in ZSTD_compressSequences_internal() 684 U32 max = MaxOff; in ZSTD_compressSequences_internal() local [all …]
|
D | decompress.c | 752 …*DTableSpace, const FSE_DTable **DTablePtr, symbolEncodingType_e type, U32 max, U32 maxLog, const … in ZSTD_buildSeqTable() argument 760 if ((*(const BYTE *)src) > max) in ZSTD_buildSeqTable() 781 size_t const headerSize = FSE_readNCount(norm, &max, &tableLog, src, srcSize); in ZSTD_buildSeqTable() 786 FSE_buildDTable_wksp(DTableSpace, norm, max, tableLog, workspace, workspaceSize); in ZSTD_buildSeqTable()
|
/lib/math/ |
D | prime_numbers.c | 264 static int selftest(unsigned long max) in selftest() argument 268 if (!max) in selftest() 271 for (last = 0, x = 2; x < max; x++) { in selftest()
|
D | reciprocal_div.c | 25 R.sh2 = max(l - 1, 0); in reciprocal_value()
|
/lib/zlib_deflate/ |
D | deftree.c | 597 s->depth[node] = (uch) (max(s->depth[n], s->depth[m]) + 1); in build_tree()
|