Lines Matching refs:s_block
789 struct pcpu_block_md *s_block, *e_block, *block; in pcpu_block_update_hint_alloc() local
804 s_block = chunk->md_blocks + s_index; in pcpu_block_update_hint_alloc()
813 if (s_block->contig_hint == PCPU_BITMAP_BLOCK_BITS) in pcpu_block_update_hint_alloc()
816 if (s_off == s_block->first_free) in pcpu_block_update_hint_alloc()
817 s_block->first_free = find_next_zero_bit( in pcpu_block_update_hint_alloc()
822 if (pcpu_region_overlap(s_block->scan_hint_start, in pcpu_block_update_hint_alloc()
823 s_block->scan_hint_start + s_block->scan_hint, in pcpu_block_update_hint_alloc()
826 s_block->scan_hint = 0; in pcpu_block_update_hint_alloc()
828 if (pcpu_region_overlap(s_block->contig_hint_start, in pcpu_block_update_hint_alloc()
829 s_block->contig_hint_start + in pcpu_block_update_hint_alloc()
830 s_block->contig_hint, in pcpu_block_update_hint_alloc()
835 s_block->left_free = 0; in pcpu_block_update_hint_alloc()
839 s_block->left_free = min(s_block->left_free, s_off); in pcpu_block_update_hint_alloc()
841 s_block->right_free = min_t(int, s_block->right_free, in pcpu_block_update_hint_alloc()
844 s_block->right_free = 0; in pcpu_block_update_hint_alloc()
882 for (block = s_block + 1; block < e_block; block++) { in pcpu_block_update_hint_alloc()
935 struct pcpu_block_md *s_block, *e_block, *block; in pcpu_block_update_hint_free() local
951 s_block = chunk->md_blocks + s_index; in pcpu_block_update_hint_free()
965 if (s_off == s_block->contig_hint + s_block->contig_hint_start) { in pcpu_block_update_hint_free()
966 start = s_block->contig_hint_start; in pcpu_block_update_hint_free()
990 pcpu_block_update(s_block, start, e_off); in pcpu_block_update_hint_free()
1001 for (block = s_block + 1; block < e_block; block++) { in pcpu_block_update_hint_free()