Lines Matching refs:end
256 int *rs, int *re, int end) in pcpu_next_unpop() argument
258 *rs = find_next_zero_bit(chunk->populated, end, *rs); in pcpu_next_unpop()
259 *re = find_next_bit(chunk->populated, end, *rs + 1); in pcpu_next_unpop()
263 int *rs, int *re, int end) in pcpu_next_pop() argument
265 *rs = find_next_bit(chunk->populated, end, *rs); in pcpu_next_pop()
266 *re = find_next_zero_bit(chunk->populated, end, *rs + 1); in pcpu_next_pop()
275 #define pcpu_for_each_unpop_region(chunk, rs, re, start, end) \ argument
276 for ((rs) = (start), pcpu_next_unpop((chunk), &(rs), &(re), (end)); \
278 (rs) = (re) + 1, pcpu_next_unpop((chunk), &(rs), &(re), (end)))
280 #define pcpu_for_each_pop_region(chunk, rs, re, start, end) \ argument
281 for ((rs) = (start), pcpu_next_pop((chunk), &(rs), &(re), (end)); \
283 (rs) = (re) + 1, pcpu_next_pop((chunk), &(rs), &(re), (end)))
333 int end = chunk->map[i + 1] & ~1; in pcpu_count_occupied_pages() local
342 if (!PAGE_ALIGNED(end) && i + 1 < chunk->map_used) { in pcpu_count_occupied_pages()
346 if (!(next & 1) && nend >= round_up(end, PAGE_SIZE)) in pcpu_count_occupied_pages()
347 end = round_up(end, PAGE_SIZE); in pcpu_count_occupied_pages()
350 return max_t(int, PFN_DOWN(end) - PFN_UP(off), 0); in pcpu_count_occupied_pages()