Lines Matching refs:s_block
813 struct pcpu_block_md *s_block, *e_block, *block; in pcpu_block_update_hint_alloc() local
828 s_block = chunk->md_blocks + s_index; in pcpu_block_update_hint_alloc()
834 if (s_block->contig_hint == PCPU_BITMAP_BLOCK_BITS) in pcpu_block_update_hint_alloc()
842 if (s_off == s_block->first_free) in pcpu_block_update_hint_alloc()
843 s_block->first_free = find_next_zero_bit( in pcpu_block_update_hint_alloc()
848 if (pcpu_region_overlap(s_block->scan_hint_start, in pcpu_block_update_hint_alloc()
849 s_block->scan_hint_start + s_block->scan_hint, in pcpu_block_update_hint_alloc()
852 s_block->scan_hint = 0; in pcpu_block_update_hint_alloc()
854 if (pcpu_region_overlap(s_block->contig_hint_start, in pcpu_block_update_hint_alloc()
855 s_block->contig_hint_start + in pcpu_block_update_hint_alloc()
856 s_block->contig_hint, in pcpu_block_update_hint_alloc()
861 s_block->left_free = 0; in pcpu_block_update_hint_alloc()
865 s_block->left_free = min(s_block->left_free, s_off); in pcpu_block_update_hint_alloc()
867 s_block->right_free = min_t(int, s_block->right_free, in pcpu_block_update_hint_alloc()
870 s_block->right_free = 0; in pcpu_block_update_hint_alloc()
908 for (block = s_block + 1; block < e_block; block++) { in pcpu_block_update_hint_alloc()
967 struct pcpu_block_md *s_block, *e_block, *block; in pcpu_block_update_hint_free() local
983 s_block = chunk->md_blocks + s_index; in pcpu_block_update_hint_free()
997 if (s_off == s_block->contig_hint + s_block->contig_hint_start) { in pcpu_block_update_hint_free()
998 start = s_block->contig_hint_start; in pcpu_block_update_hint_free()
1022 pcpu_block_update(s_block, start, e_off); in pcpu_block_update_hint_free()
1033 for (block = s_block + 1; block < e_block; block++) { in pcpu_block_update_hint_free()