Lines Matching refs:re

269 static void pcpu_next_unpop(unsigned long *bitmap, int *rs, int *re, int end)  in pcpu_next_unpop()  argument
272 *re = find_next_bit(bitmap, end, *rs + 1); in pcpu_next_unpop()
275 static void pcpu_next_pop(unsigned long *bitmap, int *rs, int *re, int end) in pcpu_next_pop() argument
278 *re = find_next_zero_bit(bitmap, end, *rs + 1); in pcpu_next_pop()
286 #define pcpu_for_each_unpop_region(bitmap, rs, re, start, end) \ argument
287 for ((rs) = (start), pcpu_next_unpop((bitmap), &(rs), &(re), (end)); \
288 (rs) < (re); \
289 (rs) = (re) + 1, pcpu_next_unpop((bitmap), &(rs), &(re), (end)))
291 #define pcpu_for_each_pop_region(bitmap, rs, re, start, end) \ argument
292 for ((rs) = (start), pcpu_next_pop((bitmap), &(rs), &(re), (end)); \
293 (rs) < (re); \
294 (rs) = (re) + 1, pcpu_next_pop((bitmap), &(rs), &(re), (end)))
657 int rs, re; /* region start, region end */ in pcpu_block_refresh_hint() local
664 pcpu_for_each_unpop_region(alloc_map, rs, re, block->first_free, in pcpu_block_refresh_hint()
666 pcpu_block_update(block, rs, re); in pcpu_block_refresh_hint()
893 int page_start, page_end, rs, re; in pcpu_is_populated() local
899 pcpu_next_unpop(chunk->populated, &rs, &re, page_end); in pcpu_is_populated()
903 *next_off = re * PAGE_SIZE / PCPU_MIN_ALLOC_SIZE; in pcpu_is_populated()
1468 int page_start, page_end, rs, re; in pcpu_alloc() local
1473 pcpu_for_each_unpop_region(chunk->populated, rs, re, in pcpu_alloc()
1477 ret = pcpu_populate_chunk(chunk, rs, re, pcpu_gfp); in pcpu_alloc()
1485 pcpu_chunk_populated(chunk, rs, re, true); in pcpu_alloc()
1624 int rs, re; in pcpu_balance_workfn() local
1626 pcpu_for_each_pop_region(chunk->populated, rs, re, 0, in pcpu_balance_workfn()
1628 pcpu_depopulate_chunk(chunk, rs, re); in pcpu_balance_workfn()
1630 pcpu_chunk_depopulated(chunk, rs, re); in pcpu_balance_workfn()
1659 int nr_unpop = 0, rs, re; in pcpu_balance_workfn() local
1676 pcpu_for_each_unpop_region(chunk->populated, rs, re, 0, in pcpu_balance_workfn()
1678 int nr = min(re - rs, nr_to_pop); in pcpu_balance_workfn()