Lines Matching defs:vstart
54 #define SPAN_NR_ENTRIES(vstart, vend, shift) \
55 ((vend) <= (vstart) ? 1 : (((vend) - 1) >> (shift)) - ((vstart) >> (shift)) + 1)
57 #define EARLY_ENTRIES(lvl, vstart, vend) \
58 SPAN_NR_ENTRIES(vstart, vend, SWAPPER_BLOCK_SHIFT + lvl * PTDESC_TABLE_SHIFT)
60 #define EARLY_LEVEL(lvl, lvls, vstart, vend, add) \
61 ((lvls) > (lvl) ? EARLY_ENTRIES(lvl, vstart, vend) + (add) : 0)
63 #define EARLY_PAGES(lvls, vstart, vend, add) (1 /* PGDIR page */ \
64 + EARLY_LEVEL(3, (lvls), (vstart), (vend), add) /* each entry needs a next level page table */ \
65 + EARLY_LEVEL(2, (lvls), (vstart), (vend), add) /* each entry needs a next level page table */ \
66 + EARLY_LEVEL(1, (lvls), (vstart), (vend), add))/* each entry needs a next level page table */