Lines Matching refs:nr
195 int (*fn)(void *data, int nr, void *state), in traverse_pages_block() argument
204 int nr = (PAGE_SIZE/size); in traverse_pages_block() local
206 if (nr > nelem) in traverse_pages_block()
207 nr = nelem; in traverse_pages_block()
211 ret = (*fn)(pagedata, nr, state); in traverse_pages_block()
214 nelem -= nr; in traverse_pages_block()
340 static int mmap_batch_fn(void *data, int nr, void *state) in mmap_batch_fn() argument
352 BUG_ON(nr < 0); in mmap_batch_fn()
353 ret = xen_remap_domain_gfn_array(st->vma, st->va & PAGE_MASK, gfnp, nr, in mmap_batch_fn()
358 if (ret != nr) { in mmap_batch_fn()
367 st->va += XEN_PAGE_SIZE * nr; in mmap_batch_fn()
368 st->index += nr / XEN_PFN_PER_PAGE; in mmap_batch_fn()
405 static int mmap_return_errors(void *data, int nr, void *state) in mmap_return_errors() argument
412 for (i = 0; i < nr; i++) { in mmap_return_errors()
777 unsigned int nr = DIV_ROUND_UP(kdata.num, XEN_PFN_PER_PAGE); in privcmd_ioctl_mmap_resource() local
781 rc = alloc_empty_pages(vma, nr); in privcmd_ioctl_mmap_resource()