Lines Matching refs:s_block
770 struct pcpu_block_md *s_block, *e_block, *block; in pcpu_block_update_hint_alloc() local
785 s_block = chunk->md_blocks + s_index; in pcpu_block_update_hint_alloc()
794 if (s_block->contig_hint == PCPU_BITMAP_BLOCK_BITS) in pcpu_block_update_hint_alloc()
797 if (s_off == s_block->first_free) in pcpu_block_update_hint_alloc()
798 s_block->first_free = find_next_zero_bit( in pcpu_block_update_hint_alloc()
803 if (pcpu_region_overlap(s_block->scan_hint_start, in pcpu_block_update_hint_alloc()
804 s_block->scan_hint_start + s_block->scan_hint, in pcpu_block_update_hint_alloc()
807 s_block->scan_hint = 0; in pcpu_block_update_hint_alloc()
809 if (pcpu_region_overlap(s_block->contig_hint_start, in pcpu_block_update_hint_alloc()
810 s_block->contig_hint_start + in pcpu_block_update_hint_alloc()
811 s_block->contig_hint, in pcpu_block_update_hint_alloc()
816 s_block->left_free = 0; in pcpu_block_update_hint_alloc()
820 s_block->left_free = min(s_block->left_free, s_off); in pcpu_block_update_hint_alloc()
822 s_block->right_free = min_t(int, s_block->right_free, in pcpu_block_update_hint_alloc()
825 s_block->right_free = 0; in pcpu_block_update_hint_alloc()
863 for (block = s_block + 1; block < e_block; block++) { in pcpu_block_update_hint_alloc()
916 struct pcpu_block_md *s_block, *e_block, *block; in pcpu_block_update_hint_free() local
932 s_block = chunk->md_blocks + s_index; in pcpu_block_update_hint_free()
946 if (s_off == s_block->contig_hint + s_block->contig_hint_start) { in pcpu_block_update_hint_free()
947 start = s_block->contig_hint_start; in pcpu_block_update_hint_free()
971 pcpu_block_update(s_block, start, e_off); in pcpu_block_update_hint_free()
982 for (block = s_block + 1; block < e_block; block++) { in pcpu_block_update_hint_free()