Lines Matching refs:PCPU_MIN_ALLOC_SIZE
246 if (chunk->free_bytes < PCPU_MIN_ALLOC_SIZE || in pcpu_chunk_slot()
250 return pcpu_size_to_slot(chunk_md->contig_hint * PCPU_MIN_ALLOC_SIZE); in pcpu_chunk_slot()
1078 start = PFN_DOWN(bit_off * PCPU_MIN_ALLOC_SIZE); in pcpu_is_populated()
1079 end = PFN_UP((bit_off + bits) * PCPU_MIN_ALLOC_SIZE); in pcpu_is_populated()
1087 *next_off = end * PAGE_SIZE / PCPU_MIN_ALLOC_SIZE; in pcpu_is_populated()
1249 chunk->free_bytes -= alloc_bits * PCPU_MIN_ALLOC_SIZE; in pcpu_alloc_area()
1262 return bit_off * PCPU_MIN_ALLOC_SIZE; in pcpu_alloc_area()
1286 bit_off = off / PCPU_MIN_ALLOC_SIZE; in pcpu_free_area()
1294 freed = bits * PCPU_MIN_ALLOC_SIZE; in pcpu_free_area()
1411 offset_bits = chunk->start_offset / PCPU_MIN_ALLOC_SIZE; in pcpu_alloc_first_chunk()
1423 offset_bits = chunk->end_offset / PCPU_MIN_ALLOC_SIZE; in pcpu_alloc_first_chunk()
1427 set_bit((start_offset + map_size) / PCPU_MIN_ALLOC_SIZE, in pcpu_alloc_first_chunk()
1746 if (unlikely(align < PCPU_MIN_ALLOC_SIZE)) in pcpu_alloc()
1747 align = PCPU_MIN_ALLOC_SIZE; in pcpu_alloc()
1749 size = ALIGN(size, PCPU_MIN_ALLOC_SIZE); in pcpu_alloc()
2618 PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->reserved_size, PCPU_MIN_ALLOC_SIZE)); in pcpu_setup_first_chunk()
2733 static_size = ALIGN(ai->static_size, PCPU_MIN_ALLOC_SIZE); in pcpu_setup_first_chunk()