Lines Matching refs:s_block
817 struct pcpu_block_md *s_block, *e_block, *block; in pcpu_block_update_hint_alloc() local
832 s_block = chunk->md_blocks + s_index; in pcpu_block_update_hint_alloc()
841 if (s_block->contig_hint == PCPU_BITMAP_BLOCK_BITS) in pcpu_block_update_hint_alloc()
844 if (s_off == s_block->first_free) in pcpu_block_update_hint_alloc()
845 s_block->first_free = find_next_zero_bit( in pcpu_block_update_hint_alloc()
850 if (pcpu_region_overlap(s_block->scan_hint_start, in pcpu_block_update_hint_alloc()
851 s_block->scan_hint_start + s_block->scan_hint, in pcpu_block_update_hint_alloc()
854 s_block->scan_hint = 0; in pcpu_block_update_hint_alloc()
856 if (pcpu_region_overlap(s_block->contig_hint_start, in pcpu_block_update_hint_alloc()
857 s_block->contig_hint_start + in pcpu_block_update_hint_alloc()
858 s_block->contig_hint, in pcpu_block_update_hint_alloc()
863 s_block->left_free = 0; in pcpu_block_update_hint_alloc()
867 s_block->left_free = min(s_block->left_free, s_off); in pcpu_block_update_hint_alloc()
869 s_block->right_free = min_t(int, s_block->right_free, in pcpu_block_update_hint_alloc()
872 s_block->right_free = 0; in pcpu_block_update_hint_alloc()
910 for (block = s_block + 1; block < e_block; block++) { in pcpu_block_update_hint_alloc()
963 struct pcpu_block_md *s_block, *e_block, *block; in pcpu_block_update_hint_free() local
979 s_block = chunk->md_blocks + s_index; in pcpu_block_update_hint_free()
993 if (s_off == s_block->contig_hint + s_block->contig_hint_start) { in pcpu_block_update_hint_free()
994 start = s_block->contig_hint_start; in pcpu_block_update_hint_free()
1018 pcpu_block_update(s_block, start, e_off); in pcpu_block_update_hint_free()
1029 for (block = s_block + 1; block < e_block; block++) { in pcpu_block_update_hint_free()