Lines Matching refs:PCPU_MIN_ALLOC_SIZE
54 * Each bit represents a fragment of size PCPU_MIN_ALLOC_SIZE. The chunk
246 if (chunk->free_bytes < PCPU_MIN_ALLOC_SIZE ||
250 return pcpu_size_to_slot(chunk_md->contig_hint * PCPU_MIN_ALLOC_SIZE);
1078 start = PFN_DOWN(bit_off * PCPU_MIN_ALLOC_SIZE);
1079 end = PFN_UP((bit_off + bits) * PCPU_MIN_ALLOC_SIZE);
1087 *next_off = end * PAGE_SIZE / PCPU_MIN_ALLOC_SIZE;
1249 chunk->free_bytes -= alloc_bits * PCPU_MIN_ALLOC_SIZE;
1262 return bit_off * PCPU_MIN_ALLOC_SIZE;
1286 bit_off = off / PCPU_MIN_ALLOC_SIZE;
1294 freed = bits * PCPU_MIN_ALLOC_SIZE;
1411 offset_bits = chunk->start_offset / PCPU_MIN_ALLOC_SIZE;
1423 offset_bits = chunk->end_offset / PCPU_MIN_ALLOC_SIZE;
1427 set_bit((start_offset + map_size) / PCPU_MIN_ALLOC_SIZE,
1765 * There is now a minimum allocation size of PCPU_MIN_ALLOC_SIZE,
1768 * of up to PCPU_MIN_ALLOC_SIZE - 1 bytes.
1770 if (unlikely(align < PCPU_MIN_ALLOC_SIZE))
1771 align = PCPU_MIN_ALLOC_SIZE;
1773 size = ALIGN(size, PCPU_MIN_ALLOC_SIZE);
2591 PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->reserved_size, PCPU_MIN_ALLOC_SIZE));
2706 static_size = ALIGN(ai->static_size, PCPU_MIN_ALLOC_SIZE);