• Home
  • Raw
  • Download

Lines Matching refs:end

273 static void pcpu_next_unpop(unsigned long *bitmap, int *rs, int *re, int end)  in pcpu_next_unpop()  argument
275 *rs = find_next_zero_bit(bitmap, end, *rs); in pcpu_next_unpop()
276 *re = find_next_bit(bitmap, end, *rs + 1); in pcpu_next_unpop()
279 static void pcpu_next_pop(unsigned long *bitmap, int *rs, int *re, int end) in pcpu_next_pop() argument
281 *rs = find_next_bit(bitmap, end, *rs); in pcpu_next_pop()
282 *re = find_next_zero_bit(bitmap, end, *rs + 1); in pcpu_next_pop()
290 #define pcpu_for_each_unpop_region(bitmap, rs, re, start, end) \ argument
291 for ((rs) = (start), pcpu_next_unpop((bitmap), &(rs), &(re), (end)); \
293 (rs) = (re) + 1, pcpu_next_unpop((bitmap), &(rs), &(re), (end)))
295 #define pcpu_for_each_pop_region(bitmap, rs, re, start, end) \ argument
296 for ((rs) = (start), pcpu_next_pop((bitmap), &(rs), &(re), (end)); \
298 (rs) = (re) + 1, pcpu_next_pop((bitmap), &(rs), &(re), (end)))
603 static void pcpu_block_update(struct pcpu_block_md *block, int start, int end) in pcpu_block_update() argument
605 int contig = end - start; in pcpu_block_update()
611 if (end == block->nr_bits) in pcpu_block_update()
938 int start, end; /* start and end of the whole free area */ in pcpu_block_update_hint_free() local
979 end = e_off; in pcpu_block_update_hint_free()
981 end = e_block->contig_hint_start + e_block->contig_hint; in pcpu_block_update_hint_free()
983 end = find_next_bit(pcpu_index_alloc_map(chunk, e_index), in pcpu_block_update_hint_free()
984 PCPU_BITMAP_BLOCK_BITS, end); in pcpu_block_update_hint_free()
987 e_off = (s_index == e_index) ? end : PCPU_BITMAP_BLOCK_BITS; in pcpu_block_update_hint_free()
995 if (end == PCPU_BITMAP_BLOCK_BITS) in pcpu_block_update_hint_free()
997 pcpu_block_update(e_block, 0, end); in pcpu_block_update_hint_free()
1020 if (((end - start) >= PCPU_BITMAP_BLOCK_BITS) || s_index != e_index) in pcpu_block_update_hint_free()
1025 end); in pcpu_block_update_hint_free()
1139 unsigned long index, end, i, area_off, area_bits; in pcpu_find_zero_area() local
1147 end = index + nr; in pcpu_find_zero_area()
1148 if (end > size) in pcpu_find_zero_area()
1149 return end; in pcpu_find_zero_area()
1150 i = find_next_bit(map, end, index); in pcpu_find_zero_area()
1151 if (i < end) { in pcpu_find_zero_area()
1192 int bit_off, end, oslot; in pcpu_alloc_area() local
1201 end = min_t(int, start + alloc_bits + PCPU_BITMAP_BLOCK_BITS, in pcpu_alloc_area()
1203 bit_off = pcpu_find_zero_area(chunk->alloc_map, end, start, alloc_bits, in pcpu_alloc_area()
1205 if (bit_off >= end) in pcpu_alloc_area()
1246 int bit_off, bits, end, oslot; in pcpu_free_area() local
1256 end = find_next_bit(chunk->bound_map, pcpu_chunk_map_bits(chunk), in pcpu_free_area()
1258 bits = end - bit_off; in pcpu_free_area()