Lines Matching full:chunk
11 * Each chunk's bitmap is split into a number of full blocks.
42 int free_bytes; /* free bytes in the chunk */
47 * base_addr is the base address of this chunk.
57 void *data; /* chunk data */
59 bool isolated; /* isolated from active chunk
71 int nr_pages; /* # of pages served by this chunk */
90 * @chunk: chunk of interest
92 * This conversion is from the number of physical pages that the chunk
95 static inline int pcpu_chunk_nr_blocks(struct pcpu_chunk *chunk) in pcpu_chunk_nr_blocks() argument
97 return chunk->nr_pages * PAGE_SIZE / PCPU_BITMAP_BLOCK_SIZE; in pcpu_chunk_nr_blocks()
114 * @chunk: chunk of interest
116 * This conversion is from the number of physical pages that the chunk
119 static inline int pcpu_chunk_map_bits(struct pcpu_chunk *chunk) in pcpu_chunk_map_bits() argument
121 return pcpu_nr_pages_to_map_bits(chunk->nr_pages); in pcpu_chunk_map_bits()
174 * @chunk: the location of the area being allocated
180 static inline void pcpu_stats_area_alloc(struct pcpu_chunk *chunk, size_t size) in pcpu_stats_area_alloc() argument
193 chunk->nr_alloc++; in pcpu_stats_area_alloc()
194 chunk->max_alloc_size = max(chunk->max_alloc_size, size); in pcpu_stats_area_alloc()
199 * @chunk: the location of the area being deallocated
204 static inline void pcpu_stats_area_dealloc(struct pcpu_chunk *chunk) in pcpu_stats_area_dealloc() argument
211 chunk->nr_alloc--; in pcpu_stats_area_dealloc()
215 * pcpu_stats_chunk_alloc - increment chunk stats
230 * pcpu_stats_chunk_dealloc - decrement chunk stats
248 static inline void pcpu_stats_area_alloc(struct pcpu_chunk *chunk, size_t size) in pcpu_stats_area_alloc() argument
252 static inline void pcpu_stats_area_dealloc(struct pcpu_chunk *chunk) in pcpu_stats_area_dealloc() argument