Lines Matching refs:refs
44 grant_ref_t *refs;
437 int count, u32 domid, u32 *refs, u32 *fd)
449 map->grants[i].ref = refs[i];
488 dmabuf_imp_grant_foreign_access(unsigned long *gfns, u32 *refs,
512 refs[i] = cur_ref;
522 static void dmabuf_imp_end_foreign_access(u32 *refs, int count)
527 if (refs[i] != INVALID_GRANT_REF)
528 gnttab_end_foreign_access(refs[i], NULL);
533 kfree(gntdev_dmabuf->u.imp.refs);
546 gntdev_dmabuf->u.imp.refs = kcalloc(count,
547 sizeof(gntdev_dmabuf->u.imp.refs[0]),
549 if (!gntdev_dmabuf->u.imp.refs)
555 gntdev_dmabuf->u.imp.refs[i] = INVALID_GRANT_REF;
644 gntdev_dmabuf->u.imp.refs,
659 dmabuf_imp_end_foreign_access(gntdev_dmabuf->u.imp.refs, count);
705 dmabuf_imp_end_foreign_access(gntdev_dmabuf->u.imp.refs,
735 u32 *refs;
750 refs = kcalloc(op.count, sizeof(*refs), GFP_KERNEL);
751 if (!refs)
754 if (copy_from_user(refs, u->refs, sizeof(*refs) * op.count) != 0) {
760 op.domid, refs, &op.fd);
768 kfree(refs);
803 if (copy_to_user(u->refs, gntdev_dmabuf->u.imp.refs,
804 sizeof(*u->refs) * op.count) != 0) {