Lines Matching refs:page_shift
206 0, (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_vaddr_populate_bitmap()
208 (~((1ULL << (vm->va_bits - 1)) - 1)) >> vm->page_shift, in vm_vaddr_populate_bitmap()
209 (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_vaddr_populate_bitmap()
230 vm->page_shift = vm_guest_mode_params[mode].page_shift; in ____vm_create()
801 if ((ptr1 >> vm->page_shift) != ((ptr1 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
803 if ((ptr2 >> vm->page_shift) != ((ptr2 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
806 assert((ptr1 >> vm->page_shift) == ((ptr1 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
807 assert((ptr2 >> vm->page_shift) == ((ptr2 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
941 TEST_ASSERT((((guest_paddr >> vm->page_shift) + npages) - 1) in vm_userspace_mem_region_add()
1040 guest_paddr >> vm->page_shift, npages); in vm_userspace_mem_region_add()
1269 uint64_t pages = (sz + vm->page_size - 1) >> vm->page_shift; in vm_vaddr_unused_gap()
1272 uint64_t pgidx_start = (vaddr_min + vm->page_size - 1) >> vm->page_shift; in vm_vaddr_unused_gap()
1335 uint64_t pages = (sz >> vm->page_shift) + ((sz % vm->page_size) != 0); in __vm_vaddr_alloc()
1354 sparsebit_set(vm->vpages_mapped, vaddr >> vm->page_shift); in __vm_vaddr_alloc()
1454 sparsebit_set(vm->vpages_mapped, vaddr >> vm->page_shift); in virt_map()
1954 base = pg = paddr_min >> vm->page_shift; in vm_phy_pages_alloc()
2011 return ((1ULL << vm->pa_bits) >> vm->page_shift) - 1; in vm_compute_max_gfn()
2015 unsigned int page_shift, in vm_calc_num_pages() argument
2019 unsigned int n = 1 << (new_page_shift - page_shift); in vm_calc_num_pages()
2021 if (page_shift >= new_page_shift) in vm_calc_num_pages()
2022 return num_pages * (1 << (page_shift - new_page_shift)); in vm_calc_num_pages()
2036 vm_guest_mode_params[mode].page_shift, in vm_num_host_pages()
2044 vm_guest_mode_params[mode].page_shift, false); in vm_num_guest_pages()