Lines Matching defs:pages
158 #define __TLBI_RANGE_NUM(pages, scale) \
159 ((((pages) >> (5 * (scale) + 1)) & TLBI_RANGE_MASK) - 1)
198 * unmapping pages from vmalloc/io space.
288 unsigned long asid, addr, pages;
292 pages = (end - start) >> PAGE_SHIFT;
296 * (MAX_TLBI_OPS - 1) pages;
298 * (MAX_TLBI_RANGE_PAGES - 1) pages.
302 pages >= MAX_TLBI_RANGE_PAGES) {
315 * 1. If 'pages' is odd, flush the first page through non-range
318 * 2. For remaining pages: the minimum range granularity is decided
320 * Start from scale = 0, flush the corresponding number of pages
322 * until no pages left.
328 while (pages > 0) {
330 pages % 2 == 1) {
340 pages -= stride >> PAGE_SHIFT;
344 num = __TLBI_RANGE_NUM(pages, scale);
356 pages -= __TLBI_RANGE_PAGES(num, scale);