Lines Matching full:grants
74 "Maximum number of grants that may be mapped by one mapping request");
129 kvfree(map->grants); in gntdev_free_map()
148 add->grants = kvmalloc_objs(add->grants[0], count); in gntdev_alloc_map()
154 if (NULL == add->grants || in gntdev_alloc_map()
201 add->grants[i].domid = DOMID_INVALID; in gntdev_alloc_map()
202 add->grants[i].ref = INVALID_GRANT_REF; in gntdev_alloc_map()
276 * Unmap the grants. This may or may not be asynchronous, so it in gntdev_put_map()
317 map->grants[pgnr].ref, in find_grant_ptes()
318 map->grants[pgnr].domid); in find_grant_ptes()
337 map->grants[i].ref, in gntdev_map_grant_pages()
338 map->grants[i].domid); in gntdev_map_grant_pages()
363 map->grants[i].ref, in gntdev_map_grant_pages()
364 map->grants[i].domid); in gntdev_map_grant_pages()
432 * prevent premature reuse of the grants by gnttab_mmap(). in __unmap_grant_pages_done()
480 * already unmapped some of the grants. Only unmap valid ranges. in unmap_grant_pages()
664 if (copy_from_user(map->grants, &u->refs, in gntdev_ioctl_map_grant_ref()
665 sizeof(map->grants[0]) * op.count) != 0) { in gntdev_ioctl_map_grant_ref()