Home
last modified time | relevance | path

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

/tools/testing/selftests/kvm/lib/
Dkvm_util.c508 size_t amt; in kvm_memcmp_hva_gva() local
514 for (uintptr_t offset = 0; offset < len; offset += amt) { in kvm_memcmp_hva_gva()
527 amt = len - offset; in kvm_memcmp_hva_gva()
528 if ((ptr1 >> vm->page_shift) != ((ptr1 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
529 amt = vm->page_size - (ptr1 % vm->page_size); in kvm_memcmp_hva_gva()
530 if ((ptr2 >> vm->page_shift) != ((ptr2 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
531 amt = vm->page_size - (ptr2 % vm->page_size); in kvm_memcmp_hva_gva()
533 assert((ptr1 >> vm->page_shift) == ((ptr1 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
534 assert((ptr2 >> vm->page_shift) == ((ptr2 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
541 int ret = memcmp((void *)ptr1, (void *)ptr2, amt); in kvm_memcmp_hva_gva()