Home
last modified time | relevance | path

Searched refs:order_per_bit (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/mm/
Dcma.c61 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()
89 bitmap_no = (pfn - cma->base_pfn) >> cma->order_per_bit; in cma_clear_bitmap()
175 unsigned int order_per_bit, in cma_init_reserved_mem() argument
191 if (!IS_ALIGNED(CMA_MIN_ALIGNMENT_PAGES, 1 << order_per_bit)) in cma_init_reserved_mem()
211 cma->order_per_bit = order_per_bit; in cma_init_reserved_mem()
241 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 …]
Dcma_debug.c43 *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()
175 &cma->order_per_bit, &cma_debugfs_fops); in cma_debugfs_add_one()
Dcma.h17 unsigned int order_per_bit; /* Order of pages represented by one bit */ member
41 return cma->count >> cma->order_per_bit; in cma_bitmap_maxno()
/linux-6.6.21/include/linux/
Dcma.h36 phys_addr_t alignment, unsigned int order_per_bit,
41 phys_addr_t alignment, unsigned int order_per_bit, in cma_declare_contiguous() argument
45 order_per_bit, fixed, name, res_cma, NUMA_NO_NODE); in cma_declare_contiguous()
48 unsigned int order_per_bit,
/linux-6.6.21/Documentation/admin-guide/mm/
Dcma_debugfs.rst17 - [RO] order_per_bit: Order of pages represented by one bit.