Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 27) sorted by relevance

12

/lib/zlib_inflate/
Dinftrees.c28 unsigned min, max; /* minimum and maximum code lengths */ in zlib_inflate_table() local
112 for (min = 1; min < MAXBITS; min++) in zlib_inflate_table()
113 if (count[min] != 0) break; in zlib_inflate_table()
114 if (root < min) root = min; in zlib_inflate_table()
189 len = min; /* starting code length */ in zlib_inflate_table()
221 min = fill; /* save offset to next table */ in zlib_inflate_table()
252 next += min; /* here min is 1 << curr */ in zlib_inflate_table()
/lib/
Didr.c379 int ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max, in ida_alloc_range() argument
382 XA_STATE(xas, &ida->xa, min / IDA_BITMAP_BITS); in ida_alloc_range()
383 unsigned bit = min % IDA_BITMAP_BITS; in ida_alloc_range()
387 if ((int)min < 0) in ida_alloc_range()
397 if (xas.xa_index > min / IDA_BITMAP_BITS) in ida_alloc_range()
454 xas.xa_index = min / IDA_BITMAP_BITS; in ida_alloc_range()
455 bit = min % IDA_BITMAP_BITS; in ida_alloc_range()
468 xas_set(&xas, min / IDA_BITMAP_BITS); in ida_alloc_range()
469 bit = min % IDA_BITMAP_BITS; in ida_alloc_range()
Dfind_bit.c59 return min(start + __ffs(tmp), nbits); in _find_next_bit()
104 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit()
122 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit()
194 return min(start + __ffs(ext2_swab(tmp)), nbits); in _find_next_bit_le()
Dtest_xarray.c507 unsigned long min = index & ~((1UL << order) - 1); in check_multi_store_1() local
508 unsigned long max = min + (1UL << order); in check_multi_store_1()
511 XA_BUG_ON(xa, xa_load(xa, min) != xa_mk_index(index)); in check_multi_store_1()
514 XA_BUG_ON(xa, xa_load(xa, min - 1) != NULL); in check_multi_store_1()
517 XA_BUG_ON(xa, xas_store(&xas, xa_mk_index(min)) != xa_mk_index(index)); in check_multi_store_1()
519 XA_BUG_ON(xa, xa_load(xa, min) != xa_mk_index(min)); in check_multi_store_1()
520 XA_BUG_ON(xa, xa_load(xa, max - 1) != xa_mk_index(min)); in check_multi_store_1()
522 XA_BUG_ON(xa, xa_load(xa, min - 1) != NULL); in check_multi_store_1()
524 xa_erase_index(xa, min); in check_multi_store_1()
874 unsigned int min = 1 << i; in check_store_iter() local
[all …]
Dsbitmap.c81 sb->map[i].depth = min(depth, bits_per_word); in sbitmap_init_node()
101 sb->map[i].depth = min(depth, bits_per_word); in sbitmap_resize()
203 min(sb->map[index].depth, shallow_depth), in sbitmap_get_shallow()
315 unsigned int bits = min(8 - byte_bits, word_bits); in sbitmap_bitmap_show()
360 shallow_depth = min(1U << sbq->sb.shift, sbq->min_shallow_depth); in sbq_calc_wake_batch()
362 min(depth & ((1U << sbq->sb.shift) - 1), shallow_depth)); in sbq_calc_wake_batch()
Dkfifo.c102 l = min(len, size - off); in kfifo_copy_in()
141 l = min(len, size - off); in kfifo_copy_out()
190 l = min(len, size - off); in kfifo_copy_from_user()
250 l = min(len, size - off); in kfifo_copy_to_user()
348 l = min(len, size - off); in setup_sgl()
Diov_iter.c18 __v.iov_len = min(n, __p->iov_len - skip); \
30 __v.iov_len = min(n, __p->iov_len); \
45 __v.iov_len = min(n, __p->iov_len - skip); \
54 __v.iov_len = min(n, __p->iov_len); \
175 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec()
191 copy = min(bytes, iov->iov_len); in copy_page_to_iter_iovec()
205 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec()
219 copy = min(bytes, iov->iov_len); in copy_page_to_iter_iovec()
259 copy = min(bytes, iov->iov_len - skip); in copy_page_from_iter_iovec()
275 copy = min(bytes, iov->iov_len); in copy_page_from_iter_iovec()
[all …]
Dkstrtox.c379 count = min(count, sizeof(buf) - 1); in kstrtobool_from_user()
393 count = min(count, sizeof(buf) - 1); \
Dxarray.c1624 xas.xa_index = limit.min; in __xa_alloc()
1662 u32 min = limit.min; in __xa_alloc_cyclic() local
1665 limit.min = max(min, *next); in __xa_alloc_cyclic()
1672 if (ret < 0 && limit.min > min) { in __xa_alloc_cyclic()
1673 limit.min = min; in __xa_alloc_cyclic()
Dobjagg.c225 unsigned int min, max; in objagg_obj_root_id_alloc() local
235 min = hnode->root_id; in objagg_obj_root_id_alloc()
241 min = objagg->hints->root_count; 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()
Dhexdump.c251 linelen = min(remaining, rowsize); in print_hex_dump()
Dseq_buf.c232 start_len = min(len, HEX_CHARS - 1);
Dnlattr.c135 if ((validate_min && nla_get_u64(nla) < pt->min) || in nla_validate_int_range()
147 if ((validate_min && value < pt->min) || in nla_validate_int_range()
Dscatterlist.c860 len = min(miter.length, buflen - offset); in sg_copy_buffer()
970 len = min(miter.length, buflen - offset); in sg_zero_buffer()
Dbitmap.c523 bitmap_set(bitmap, start, min(r->end - start + 1, r->off)); in bitmap_set_region()
1051 nbitsinlong = min(nbits_reg, BITS_PER_LONG); in __reg_op()
Dtest_printf.c70 written = min(bufsize-1, elen); in do_test()
Dtest_kmod.c914 unsigned int min, in test_dev_config_update_uint_range() argument
924 if (new < min || new > max) in test_dev_config_update_uint_range()
Dtest_rhashtable.c707 entries = min(parm_entries, MAX_ENTRIES); in test_rht_init()
Dradix-tree.c1548 iter->next_index = 1 + min(max, (start | node_maxindex(node))); in idr_get_free()
/lib/zstd/
Dhuf_compress.c264 U16 min = 0; in HUF_readCTable_wksp() local
267 valPerRank[n] = min; /* get starting value within each rank */ in HUF_readCTable_wksp()
268 min += nbPerRank[n]; in HUF_readCTable_wksp()
269 min >>= 1; in HUF_readCTable_wksp()
485 U16 min = 0; in HUF_buildCTable_wksp() local
487 valPerRank[n] = min; /* get starting value within each rank */ in HUF_buildCTable_wksp()
488 min += nbPerRank[n]; in HUF_buildCTable_wksp()
489 min >>= 1; in HUF_buildCTable_wksp()
/lib/math/
Dreciprocal_div.c24 R.sh1 = min(l, 1); in reciprocal_value()
/lib/lz4/
Dlz4_decompress.c331 length = min(length, (size_t)(oend - op)); in LZ4_decompress_generic()
377 size_t const mlen = min(length, (size_t)(oend - op)); in LZ4_decompress_generic()
461 dstCapacity = min(targetOutputSize, dstCapacity); in LZ4_decompress_safe_partial()
/lib/xz/
Dxz_dec_test.c124 buffers.in_size = min(remaining, sizeof(buffer_in)); in xz_dec_test_write()
Dxz_dec_lzma2.c381 copy_size = min(b->in_size - b->in_pos, in dict_uncompressed()
/lib/reed_solomon/
Ddecode_rs.c272 for (i = min(deg_lambda, nroots - 1) & ~1; i >= 0; i -= 2) {

12