Lines Matching +full:end +full:- +full:of +full:- +full:conversion
1 /* SPDX-License-Identifier: GPL-2.0 */
11 * Each chunk's bitmap is split into a number of full blocks.
12 * All units are in terms of bits.
23 position of the scan hint */
26 position of the contig hint */
27 int left_free; /* size of free space along
28 the left side of the block */
29 int right_free; /* size of free space along
30 the right side of the block */
31 int first_free; /* block position of first free */
50 int nr_alloc; /* # of allocations */
60 * base_addr is the base address of this chunk.
78 have the region end page
81 struct pcpuobj_ext *obj_exts; /* vector of object cgroups */
84 int nr_pages; /* # of pages served by this chunk */
85 int nr_populated; /* # of populated pages */
86 int nr_empty_pop_pages; /* # of empty populated pages */
111 * pcpu_chunk_nr_blocks - converts nr_pages to # of md_blocks
112 * @chunk: chunk of interest
114 * This conversion is from the number of physical pages that the chunk
115 * serves to the number of bitmap blocks used.
119 return chunk->nr_pages * PAGE_SIZE / PCPU_BITMAP_BLOCK_SIZE; in pcpu_chunk_nr_blocks()
123 * pcpu_nr_pages_to_map_bits - converts the pages to size of bitmap
124 * @pages: number of physical pages
126 * This conversion is from physical pages to the number of bits
135 * pcpu_chunk_map_bits - helper to convert nr_pages to size of bitmap
136 * @chunk: chunk of interest
138 * This conversion is from the number of physical pages that the chunk
139 * serves to the number of bits in the bitmap.
143 return pcpu_nr_pages_to_map_bits(chunk->nr_pages); in pcpu_chunk_map_bits()
147 * pcpu_obj_full_size - helper to calculate size of each accounted object
148 * @size: size of area to allocate in bytes
170 u64 nr_alloc; /* lifetime # of allocations */
171 u64 nr_dealloc; /* lifetime # of deallocations */
172 u64 nr_cur_alloc; /* current # of allocations */
173 u64 nr_max_alloc; /* max # of live allocations */
174 u32 nr_chunks; /* current # of live chunks */
175 u32 nr_max_chunks; /* max # of live chunks */
195 * pcpu_stats_area_alloc - increment area allocation stats
196 * @chunk: the location of the area being allocated
197 * @size: size of area to allocate in bytes
215 chunk->nr_alloc++; in pcpu_stats_area_alloc()
216 chunk->max_alloc_size = max(chunk->max_alloc_size, size); in pcpu_stats_area_alloc()
220 * pcpu_stats_area_dealloc - decrement allocation stats
221 * @chunk: the location of the area being deallocated
231 pcpu_stats.nr_cur_alloc--; in pcpu_stats_area_dealloc()
233 chunk->nr_alloc--; in pcpu_stats_area_dealloc()
237 * pcpu_stats_chunk_alloc - increment chunk stats
252 * pcpu_stats_chunk_dealloc - decrement chunk stats
259 pcpu_stats.nr_chunks--; in pcpu_stats_chunk_dealloc()