Home
last modified time | relevance | path

Searched refs:amt (Results 1 – 1 of 1) sorted by relevance

/tools/testing/selftests/kvm/lib/
Dkvm_util.c691 size_t amt; in kvm_memcmp_hva_gva() local
697 for (uintptr_t offset = 0; offset < len; offset += amt) { in kvm_memcmp_hva_gva()
710 amt = len - offset; in kvm_memcmp_hva_gva()
711 if ((ptr1 >> vm->page_shift) != ((ptr1 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
712 amt = vm->page_size - (ptr1 % vm->page_size); in kvm_memcmp_hva_gva()
713 if ((ptr2 >> vm->page_shift) != ((ptr2 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
714 amt = vm->page_size - (ptr2 % vm->page_size); in kvm_memcmp_hva_gva()
716 assert((ptr1 >> vm->page_shift) == ((ptr1 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
717 assert((ptr2 >> vm->page_shift) == ((ptr2 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
724 int ret = memcmp((void *)ptr1, (void *)ptr2, amt); in kvm_memcmp_hva_gva()