Lines Matching refs:PCPU_MIN_ALLOC_SIZE
250 if (chunk->free_bytes < PCPU_MIN_ALLOC_SIZE || in pcpu_chunk_slot()
254 return pcpu_size_to_slot(chunk_md->contig_hint * PCPU_MIN_ALLOC_SIZE); in pcpu_chunk_slot()
1075 page_start = PFN_DOWN(bit_off * PCPU_MIN_ALLOC_SIZE); in pcpu_is_populated()
1076 page_end = PFN_UP((bit_off + bits) * PCPU_MIN_ALLOC_SIZE); in pcpu_is_populated()
1083 *next_off = re * PAGE_SIZE / PCPU_MIN_ALLOC_SIZE; in pcpu_is_populated()
1245 chunk->free_bytes -= alloc_bits * PCPU_MIN_ALLOC_SIZE; in pcpu_alloc_area()
1258 return bit_off * PCPU_MIN_ALLOC_SIZE; in pcpu_alloc_area()
1282 bit_off = off / PCPU_MIN_ALLOC_SIZE; in pcpu_free_area()
1290 freed = bits * PCPU_MIN_ALLOC_SIZE; in pcpu_free_area()
1414 offset_bits = chunk->start_offset / PCPU_MIN_ALLOC_SIZE; in pcpu_alloc_first_chunk()
1426 offset_bits = chunk->end_offset / PCPU_MIN_ALLOC_SIZE; in pcpu_alloc_first_chunk()
1430 set_bit((start_offset + map_size) / PCPU_MIN_ALLOC_SIZE, in pcpu_alloc_first_chunk()
1749 if (unlikely(align < PCPU_MIN_ALLOC_SIZE)) in pcpu_alloc()
1750 align = PCPU_MIN_ALLOC_SIZE; in pcpu_alloc()
1752 size = ALIGN(size, PCPU_MIN_ALLOC_SIZE); in pcpu_alloc()
2629 PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->reserved_size, PCPU_MIN_ALLOC_SIZE)); in pcpu_setup_first_chunk()
2744 static_size = ALIGN(ai->static_size, PCPU_MIN_ALLOC_SIZE); in pcpu_setup_first_chunk()