Lines Matching refs:ri
37 static uint64_t virt_alloc_region(struct kvm_vm *vm, int ri) in virt_alloc_region() argument
41 taddr = vm_phy_pages_alloc(vm, ri < 4 ? PAGES_PER_REGION : 1, in virt_alloc_region()
46 | (((4 - ri) << 2) & REGION_ENTRY_TYPE) in virt_alloc_region()
47 | ((ri < 4 ? (PAGES_PER_REGION - 1) : 0) & REGION_ENTRY_LENGTH); in virt_alloc_region()
52 int ri, idx; in virt_arch_pg_map() local
74 for (ri = 1; ri <= 4; ri++) { in virt_arch_pg_map()
75 idx = (gva >> (64 - 11 * ri)) & 0x7ffu; in virt_arch_pg_map()
77 entry[idx] = virt_alloc_region(vm, ri); in virt_arch_pg_map()
91 int ri, idx; in addr_arch_gva2gpa() local
98 for (ri = 1; ri <= 4; ri++) { in addr_arch_gva2gpa()
99 idx = (gva >> (64 - 11 * ri)) & 0x7ffu; in addr_arch_gva2gpa()