Lines Matching defs:refs
50 grant_ref_t *refs;
443 int count, u32 domid, u32 *refs, u32 *fd)
455 map->grants[i].ref = refs[i];
494 dmabuf_imp_grant_foreign_access(unsigned long *gfns, u32 *refs,
518 refs[i] = cur_ref;
528 static void dmabuf_imp_end_foreign_access(u32 *refs, int count)
533 if (refs[i] != GRANT_INVALID_REF)
534 gnttab_end_foreign_access(refs[i], 0, 0UL);
539 kfree(gntdev_dmabuf->u.imp.refs);
552 gntdev_dmabuf->u.imp.refs = kcalloc(count,
553 sizeof(gntdev_dmabuf->u.imp.refs[0]),
555 if (!gntdev_dmabuf->u.imp.refs)
561 gntdev_dmabuf->u.imp.refs[i] = GRANT_INVALID_REF;
650 gntdev_dmabuf->u.imp.refs,
665 dmabuf_imp_end_foreign_access(gntdev_dmabuf->u.imp.refs, count);
711 dmabuf_imp_end_foreign_access(gntdev_dmabuf->u.imp.refs,
741 u32 *refs;
756 refs = kcalloc(op.count, sizeof(*refs), GFP_KERNEL);
757 if (!refs)
760 if (copy_from_user(refs, u->refs, sizeof(*refs) * op.count) != 0) {
766 op.domid, refs, &op.fd);
774 kfree(refs);
809 if (copy_to_user(u->refs, gntdev_dmabuf->u.imp.refs,
810 sizeof(*u->refs) * op.count) != 0) {