Searched refs:order_per_bit (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/mm/ |
D | cma.c | 61 if (align_order <= cma->order_per_bit) in cma_bitmap_aligned_mask() 63 return (1UL << (align_order - cma->order_per_bit)) - 1; in cma_bitmap_aligned_mask() 74 >> cma->order_per_bit; in cma_bitmap_aligned_offset() 80 return ALIGN(pages, 1UL << cma->order_per_bit) >> cma->order_per_bit; in cma_bitmap_pages_to_bits() 88 bitmap_no = (pfn - cma->base_pfn) >> cma->order_per_bit; in cma_clear_bitmap() 168 unsigned int order_per_bit, in cma_init_reserved_mem() argument 189 if (!IS_ALIGNED(alignment >> PAGE_SHIFT, 1 << order_per_bit)) in cma_init_reserved_mem() 208 cma->order_per_bit = order_per_bit; in cma_init_reserved_mem() 238 phys_addr_t alignment, unsigned int order_per_bit, in cma_declare_contiguous_nid() argument 289 if (!IS_ALIGNED(size >> PAGE_SHIFT, 1 << order_per_bit)) in cma_declare_contiguous_nid() [all …]
|
D | cma.h | 11 unsigned int order_per_bit; /* Order of pages represented by one bit */ member 26 return cma->count >> cma->order_per_bit; in cma_bitmap_maxno()
|
D | cma_debug.c | 43 *val = (u64)used << cma->order_per_bit; in cma_used_get() 65 *val = (u64)maxchunk << cma->order_per_bit; in cma_maxchunk_get() 105 } else if (cma->order_per_bit == 0) { in cma_free_mem() 178 &cma->order_per_bit, &cma_debugfs_fops); in cma_debugfs_add_one()
|
/Linux-v5.10/include/linux/ |
D | cma.h | 32 phys_addr_t alignment, unsigned int order_per_bit, 37 phys_addr_t alignment, unsigned int order_per_bit, in cma_declare_contiguous() argument 41 order_per_bit, fixed, name, res_cma, NUMA_NO_NODE); in cma_declare_contiguous() 44 unsigned int order_per_bit,
|
/Linux-v5.10/Documentation/admin-guide/mm/ |
D | cma_debugfs.rst | 17 - [RO] order_per_bit: Order of pages represented by one bit.
|