Lines Matching refs:grants
62 "Maximum number of grants that may be mapped by one mapping request");
120 kvfree(map->grants);
139 add->grants = kvmalloc_array(count, sizeof(add->grants[0]),
148 if (NULL == add->grants ||
198 add->grants[i].domid = DOMID_INVALID;
199 add->grants[i].ref = INVALID_GRANT_REF;
273 * Unmap the grants. This may or may not be asynchronous, so it
313 map->grants[pgnr].ref,
314 map->grants[pgnr].domid);
333 map->grants[i].ref,
334 map->grants[i].domid);
359 map->grants[i].ref,
360 map->grants[i].domid);
428 * prevent premature reuse of the grants by gnttab_mmap().
476 * already unmapped some of the grants. Only unmap valid ranges.
649 if (copy_from_user(map->grants, &u->refs,
650 sizeof(map->grants[0]) * op.count) != 0) {