Lines Matching defs:chunk

9  * There are two chunk types: root and memcg-aware.
29 * Each chunk's bitmap is split into a number of full blocks.
60 int free_bytes; /* free bytes in the chunk */
62 void *base_addr; /* base address of this chunk */
68 void *data; /* chunk data */
80 int nr_pages; /* # of pages served by this chunk */
97 * @chunk: chunk of interest
99 * This conversion is from the number of physical pages that the chunk
102 static inline int pcpu_chunk_nr_blocks(struct pcpu_chunk *chunk)
104 return chunk->nr_pages * PAGE_SIZE / PCPU_BITMAP_BLOCK_SIZE;
121 * @chunk: chunk of interest
123 * This conversion is from the number of physical pages that the chunk
126 static inline int pcpu_chunk_map_bits(struct pcpu_chunk *chunk)
128 return pcpu_nr_pages_to_map_bits(chunk->nr_pages);
132 static inline enum pcpu_chunk_type pcpu_chunk_type(struct pcpu_chunk *chunk)
134 if (chunk->obj_cgroups)
145 static inline enum pcpu_chunk_type pcpu_chunk_type(struct pcpu_chunk *chunk)
193 * @chunk: the location of the area being allocated
199 static inline void pcpu_stats_area_alloc(struct pcpu_chunk *chunk, size_t size)
212 chunk->nr_alloc++;
213 chunk->max_alloc_size = max(chunk->max_alloc_size, size);
218 * @chunk: the location of the area being deallocated
223 static inline void pcpu_stats_area_dealloc(struct pcpu_chunk *chunk)
230 chunk->nr_alloc--;
234 * pcpu_stats_chunk_alloc - increment chunk stats
249 * pcpu_stats_chunk_dealloc - decrement chunk stats
267 static inline void pcpu_stats_area_alloc(struct pcpu_chunk *chunk, size_t size)
271 static inline void pcpu_stats_area_dealloc(struct pcpu_chunk *chunk)