Lines Matching refs:chunk_md

244 	const struct pcpu_block_md *chunk_md = &chunk->chunk_md;  in pcpu_chunk_slot()  local
247 chunk_md->contig_hint == 0) in pcpu_chunk_slot()
250 return pcpu_size_to_slot(chunk_md->contig_hint * PCPU_MIN_ALLOC_SIZE); in pcpu_chunk_slot()
747 struct pcpu_block_md *chunk_md = &chunk->chunk_md; in pcpu_chunk_refresh_hint() local
751 if (!full_scan && chunk_md->scan_hint) { in pcpu_chunk_refresh_hint()
752 bit_off = chunk_md->scan_hint_start + chunk_md->scan_hint; in pcpu_chunk_refresh_hint()
753 chunk_md->contig_hint_start = chunk_md->scan_hint_start; in pcpu_chunk_refresh_hint()
754 chunk_md->contig_hint = chunk_md->scan_hint; in pcpu_chunk_refresh_hint()
755 chunk_md->scan_hint = 0; in pcpu_chunk_refresh_hint()
757 bit_off = chunk_md->first_free; in pcpu_chunk_refresh_hint()
758 chunk_md->contig_hint = 0; in pcpu_chunk_refresh_hint()
763 pcpu_block_update(chunk_md, bit_off, bit_off + bits); in pcpu_chunk_refresh_hint()
811 struct pcpu_block_md *chunk_md = &chunk->chunk_md; in pcpu_block_update_hint_alloc() local
925 if (pcpu_region_overlap(chunk_md->scan_hint_start, in pcpu_block_update_hint_alloc()
926 chunk_md->scan_hint_start + in pcpu_block_update_hint_alloc()
927 chunk_md->scan_hint, in pcpu_block_update_hint_alloc()
930 chunk_md->scan_hint = 0; in pcpu_block_update_hint_alloc()
937 if (pcpu_region_overlap(chunk_md->contig_hint_start, in pcpu_block_update_hint_alloc()
938 chunk_md->contig_hint_start + in pcpu_block_update_hint_alloc()
939 chunk_md->contig_hint, in pcpu_block_update_hint_alloc()
1055 pcpu_block_update(&chunk->chunk_md, in pcpu_block_update_hint_free()
1113 struct pcpu_block_md *chunk_md = &chunk->chunk_md; in pcpu_find_block_fit() local
1121 if (!pcpu_check_block_hint(chunk_md, alloc_bits, align)) in pcpu_find_block_fit()
1124 bit_off = pcpu_next_hint(chunk_md, alloc_bits); in pcpu_find_block_fit()
1219 struct pcpu_block_md *chunk_md = &chunk->chunk_md; in pcpu_alloc_area() local
1252 if (bit_off == chunk_md->first_free) in pcpu_alloc_area()
1253 chunk_md->first_free = find_next_zero_bit( in pcpu_alloc_area()
1278 struct pcpu_block_md *chunk_md = &chunk->chunk_md; in pcpu_free_area() local
1300 chunk_md->first_free = min(chunk_md->first_free, bit_off); in pcpu_free_area()
1324 pcpu_init_md_block(&chunk->chunk_md, pcpu_chunk_map_bits(chunk)); in pcpu_init_md_blocks()
1416 chunk->chunk_md.first_free = offset_bits; in pcpu_alloc_first_chunk()