Lines Matching defs:chunk
35 struct pcpu_chunk *chunk;
42 list_for_each_entry(chunk, &pcpu_chunk_list(type)[slot],
45 chunk->nr_alloc);
51 * Prints out chunk state. Fragmentation is considered between
52 * the beginning of the chunk to the last allocation.
56 static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk,
59 struct pcpu_block_md *chunk_md = &chunk->chunk_md;
73 last_alloc = find_last_bit(chunk->alloc_map,
74 pcpu_chunk_map_bits(chunk) -
75 chunk->end_offset / PCPU_MIN_ALLOC_SIZE - 1);
76 last_alloc = test_bit(last_alloc, chunk->alloc_map) ?
80 start = chunk->start_offset / PCPU_MIN_ALLOC_SIZE;
92 if (test_bit(start, chunk->alloc_map)) {
93 end = find_next_bit(chunk->bound_map, last_alloc,
97 end = find_next_bit(chunk->alloc_map, last_alloc,
125 P("nr_alloc", chunk->nr_alloc);
126 P("max_alloc_size", chunk->max_alloc_size);
127 P("empty_pop_pages", chunk->nr_empty_pop_pages);
129 P("free_bytes", chunk->free_bytes);
137 P("memcg_aware", pcpu_is_memcg_chunk(pcpu_chunk_type(chunk)));
144 struct pcpu_chunk *chunk;
220 list_for_each_entry(chunk, &pcpu_chunk_list(type)[slot],
222 if (chunk == pcpu_first_chunk) {
224 chunk_map_stats(m, chunk, buffer);
227 chunk_map_stats(m, chunk, buffer);