Lines Matching refs: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)
97 return chunk->nr_pages * PAGE_SIZE / PCPU_BITMAP_BLOCK_SIZE;
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)
121 return pcpu_nr_pages_to_map_bits(chunk->nr_pages);
174 * @chunk: the location of the area being allocated
180 static inline void pcpu_stats_area_alloc(struct pcpu_chunk *chunk, size_t size)
193 chunk->nr_alloc++;
194 chunk->max_alloc_size = max(chunk->max_alloc_size, size);
199 * @chunk: the location of the area being deallocated
204 static inline void pcpu_stats_area_dealloc(struct pcpu_chunk *chunk)
211 chunk->nr_alloc--;
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)
252 static inline void pcpu_stats_area_dealloc(struct pcpu_chunk *chunk)