Lines Matching full:chunk
11 * Each chunk's bitmap is split into a number of full blocks.
55 int free_bytes; /* free bytes in the chunk */
60 * base_addr is the base address of this chunk.
70 void *data; /* chunk data */
72 bool isolated; /* isolated from active chunk
84 int nr_pages; /* # of pages served by this chunk */
112 * @chunk: chunk of interest
114 * This conversion is from the number of physical pages that the chunk
117 static inline int pcpu_chunk_nr_blocks(struct pcpu_chunk *chunk) in pcpu_chunk_nr_blocks() argument
119 return chunk->nr_pages * PAGE_SIZE / PCPU_BITMAP_BLOCK_SIZE; in pcpu_chunk_nr_blocks()
136 * @chunk: chunk of interest
138 * This conversion is from the number of physical pages that the chunk
141 static inline int pcpu_chunk_map_bits(struct pcpu_chunk *chunk) in pcpu_chunk_map_bits() argument
143 return pcpu_nr_pages_to_map_bits(chunk->nr_pages); in pcpu_chunk_map_bits()
196 * @chunk: the location of the area being allocated
202 static inline void pcpu_stats_area_alloc(struct pcpu_chunk *chunk, size_t size) in pcpu_stats_area_alloc() argument
215 chunk->nr_alloc++; in pcpu_stats_area_alloc()
216 chunk->max_alloc_size = max(chunk->max_alloc_size, size); in pcpu_stats_area_alloc()
221 * @chunk: the location of the area being deallocated
226 static inline void pcpu_stats_area_dealloc(struct pcpu_chunk *chunk) in pcpu_stats_area_dealloc() argument
233 chunk->nr_alloc--; in pcpu_stats_area_dealloc()
237 * pcpu_stats_chunk_alloc - increment chunk stats
252 * pcpu_stats_chunk_dealloc - decrement chunk stats
270 static inline void pcpu_stats_area_alloc(struct pcpu_chunk *chunk, size_t size) in pcpu_stats_area_alloc() argument
274 static inline void pcpu_stats_area_dealloc(struct pcpu_chunk *chunk) in pcpu_stats_area_dealloc() argument