Lines Matching refs:chunk
35 struct pcpu_chunk *chunk; in find_max_nr_alloc() local
42 list_for_each_entry(chunk, &pcpu_chunk_list(type)[slot], in find_max_nr_alloc()
45 chunk->nr_alloc); in find_max_nr_alloc()
56 static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk, in chunk_map_stats() argument
59 struct pcpu_block_md *chunk_md = &chunk->chunk_md; in chunk_map_stats()
73 last_alloc = find_last_bit(chunk->alloc_map, in chunk_map_stats()
74 pcpu_chunk_map_bits(chunk) - in chunk_map_stats()
75 chunk->end_offset / PCPU_MIN_ALLOC_SIZE - 1); in chunk_map_stats()
76 last_alloc = test_bit(last_alloc, chunk->alloc_map) ? in chunk_map_stats()
80 start = chunk->start_offset / PCPU_MIN_ALLOC_SIZE; in chunk_map_stats()
92 if (test_bit(start, chunk->alloc_map)) { in chunk_map_stats()
93 end = find_next_bit(chunk->bound_map, last_alloc, in chunk_map_stats()
97 end = find_next_bit(chunk->alloc_map, last_alloc, in chunk_map_stats()
125 P("nr_alloc", chunk->nr_alloc); in chunk_map_stats()
126 P("max_alloc_size", chunk->max_alloc_size); in chunk_map_stats()
127 P("empty_pop_pages", chunk->nr_empty_pop_pages); in chunk_map_stats()
129 P("free_bytes", chunk->free_bytes); in chunk_map_stats()
137 P("memcg_aware", pcpu_is_memcg_chunk(pcpu_chunk_type(chunk))); in chunk_map_stats()
144 struct pcpu_chunk *chunk; in percpu_stats_show() local
215 list_for_each_entry(chunk, &pcpu_chunk_list(type)[slot], in percpu_stats_show()
217 if (chunk == pcpu_first_chunk) { in percpu_stats_show()
219 chunk_map_stats(m, chunk, buffer); in percpu_stats_show()
222 chunk_map_stats(m, chunk, buffer); in percpu_stats_show()