/lib/ |
D | genalloc.c | 244 int order = pool->min_alloc_order; in gen_pool_destroy() local 251 end_bit = chunk_size(chunk) >> order; in gen_pool_destroy() 295 int order = pool->min_alloc_order; in gen_pool_alloc_algo() local 305 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_alloc_algo() 312 end_bit = chunk_size(chunk) >> order; in gen_pool_alloc_algo() 326 addr = chunk->start_addr + ((unsigned long)start_bit << order); in gen_pool_alloc_algo() 327 size = nbits << order; in gen_pool_alloc_algo() 378 int order = pool->min_alloc_order; in gen_pool_free() local 385 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_free() 390 start_bit = (addr - chunk->start_addr) >> order; in gen_pool_free() [all …]
|
D | swiotlb.c | 305 unsigned int order; in swiotlb_late_init_with_default_size() local 316 order = get_order(io_tlb_nslabs << IO_TLB_SHIFT); in swiotlb_late_init_with_default_size() 317 io_tlb_nslabs = SLABS_PER_PAGE << order; in swiotlb_late_init_with_default_size() 320 while ((SLABS_PER_PAGE << order) > IO_TLB_MIN_SLABS) { in swiotlb_late_init_with_default_size() 322 order); in swiotlb_late_init_with_default_size() 325 order--; in swiotlb_late_init_with_default_size() 332 if (order != get_order(bytes)) { in swiotlb_late_init_with_default_size() 334 (PAGE_SIZE << order) >> 20); in swiotlb_late_init_with_default_size() 335 io_tlb_nslabs = SLABS_PER_PAGE << order; in swiotlb_late_init_with_default_size() 339 free_pages((unsigned long)vstart, order); in swiotlb_late_init_with_default_size() [all …]
|
D | bitmap.c | 991 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op() argument 1006 nbits_reg = 1 << order; in __reg_op() 1057 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument 1061 for (pos = 0 ; (end = pos + (1U << order)) <= bits; pos = end) { in bitmap_find_free_region() 1062 if (!__reg_op(bitmap, pos, order, REG_OP_ISFREE)) in bitmap_find_free_region() 1064 __reg_op(bitmap, pos, order, REG_OP_ALLOC); in bitmap_find_free_region() 1082 void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order) in bitmap_release_region() argument 1084 __reg_op(bitmap, pos, order, REG_OP_RELEASE); in bitmap_release_region() 1099 int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order) in bitmap_allocate_region() argument 1101 if (!__reg_op(bitmap, pos, order, REG_OP_ISFREE)) in bitmap_allocate_region() [all …]
|
D | radix-tree.c | 558 int radix_tree_maybe_preload_order(gfp_t gfp_mask, int order) in radix_tree_maybe_preload_order() argument 573 nr_subtrees = 1 << order; in radix_tree_maybe_preload_order() 812 unsigned order, struct radix_tree_node **nodep, in __radix_tree_create() argument 819 unsigned long max = index | ((1UL << order) - 1); in __radix_tree_create() 825 if (order > 0 && max == ((1UL << order) - 1)) in __radix_tree_create() 835 while (shift > order) { in __radix_tree_create() 899 void __rcu **slot, void *item, unsigned order, bool replace) in insert_entries() argument 905 if (order > node->shift) in insert_entries() 906 n = 1 << (order - node->shift); in insert_entries() 962 void __rcu **slot, void *item, unsigned order, bool replace) in insert_entries() argument [all …]
|
D | scatterlist.c | 450 unsigned int order, bool chainable, in sgl_alloc_order() argument 458 nent = round_up(length, PAGE_SIZE << order) >> (PAGE_SHIFT + order); in sgl_alloc_order() 460 if (length > (nent << (PAGE_SHIFT + order))) in sgl_alloc_order() 477 elem_len = min_t(u64, length, PAGE_SIZE << order); in sgl_alloc_order() 478 page = alloc_pages(gfp, order); in sgl_alloc_order() 515 void sgl_free_order(struct scatterlist *sgl, int order) in sgl_free_order() argument 523 __free_pages(page, order); in sgl_free_order()
|
D | percpu_ida.c | 290 unsigned i, cpu, order; in __percpu_ida_init() local 306 order = get_order(nr_tags * sizeof(unsigned)); in __percpu_ida_init() 307 pool->freelist = (void *) __get_free_pages(GFP_KERNEL, order); in __percpu_ida_init()
|
D | Kconfig | 322 values for parameters 'm' (Galois field order) and 't' 338 Constant value for Galois field order 'm'. If 'k' is the
|
D | Kconfig.debug | 275 "page_owner=on" to boot parameter in order to enable it. Eats 336 - Enable verbose reporting from modpost in order to help resolve 536 order find ways to optimize the allocator. This should never be 566 In order to access the kmemleak file, debugfs needs to be
|
/lib/zlib_inflate/ |
D | inflate.c | 332 static const unsigned short order[19] = /* permutation of code lengths */ in zlib_inflate() local 467 state->lens[order[state->have++]] = (unsigned short)BITS(3); in zlib_inflate() 471 state->lens[order[state->have++]] = 0; in zlib_inflate()
|