Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/base/arm/protected_memory_allocator/
H A Dprotected_memory_allocator.c36 #define PAGES_PER_BITFIELD_ELEM (BITFIELD_ELEM_SIZE * BITS_PER_BYTE) macro
72 ((PAGES_PER_BITFIELD_ELEM * (0 != (num_pages % PAGES_PER_BITFIELD_ELEM)) + \
73 num_pages) / PAGES_PER_BITFIELD_ELEM)
113 WARN((start_bit + (1 << order)) > PAGES_PER_BITFIELD_ELEM, in small_granularity_alloc()
115 __func__, start_bit, order, PAGES_PER_BITFIELD_ELEM); in small_granularity_alloc()
130 page_idx = (alloc_bitfield_idx * PAGES_PER_BITFIELD_ELEM) + start_bit; in small_granularity_alloc()
161 size_t num_bitfield_elements_needed = num_pages_to_alloc / PAGES_PER_BITFIELD_ELEM; in large_granularity_alloc()
162 size_t start_page_idx = start_alloc_bitfield_idx * PAGES_PER_BITFIELD_ELEM; in large_granularity_alloc()
262 for (bit = 0; bit < PAGES_PER_BITFIELD_ELEM; bit++) { in simple_pma_alloc_page()
301 size_t num_bitfield_elements_needed = num_pages_to_alloc / PAGES_PER_BITFIELD_ELEM; in simple_pma_alloc_page()
[all …]