Lines Matching full:refs

44 			grant_ref_t *refs;  member
429 int count, u32 domid, u32 *refs, u32 *fd) in dmabuf_exp_from_refs() argument
441 map->grants[i].ref = refs[i]; in dmabuf_exp_from_refs()
480 dmabuf_imp_grant_foreign_access(unsigned long *gfns, u32 *refs, in dmabuf_imp_grant_foreign_access() argument
504 refs[i] = cur_ref; in dmabuf_imp_grant_foreign_access()
514 static void dmabuf_imp_end_foreign_access(u32 *refs, int count) in dmabuf_imp_end_foreign_access() argument
519 if (refs[i] != INVALID_GRANT_REF) in dmabuf_imp_end_foreign_access()
520 gnttab_end_foreign_access(refs[i], NULL); in dmabuf_imp_end_foreign_access()
525 kfree(gntdev_dmabuf->u.imp.refs); in dmabuf_imp_free_storage()
538 gntdev_dmabuf->u.imp.refs = kcalloc(count, in dmabuf_imp_alloc_storage()
539 sizeof(gntdev_dmabuf->u.imp.refs[0]), in dmabuf_imp_alloc_storage()
541 if (!gntdev_dmabuf->u.imp.refs) in dmabuf_imp_alloc_storage()
547 gntdev_dmabuf->u.imp.refs[i] = INVALID_GRANT_REF; in dmabuf_imp_alloc_storage()
636 gntdev_dmabuf->u.imp.refs, in dmabuf_imp_to_refs()
651 dmabuf_imp_end_foreign_access(gntdev_dmabuf->u.imp.refs, count); in dmabuf_imp_to_refs()
697 dmabuf_imp_end_foreign_access(gntdev_dmabuf->u.imp.refs, in dmabuf_imp_release()
727 u32 *refs; in gntdev_ioctl_dmabuf_exp_from_refs() local
741 refs = kcalloc(op.count, sizeof(*refs), GFP_KERNEL); in gntdev_ioctl_dmabuf_exp_from_refs()
742 if (!refs) in gntdev_ioctl_dmabuf_exp_from_refs()
745 if (copy_from_user(refs, u->refs, sizeof(*refs) * op.count) != 0) { in gntdev_ioctl_dmabuf_exp_from_refs()
751 op.domid, refs, &op.fd); in gntdev_ioctl_dmabuf_exp_from_refs()
759 kfree(refs); in gntdev_ioctl_dmabuf_exp_from_refs()
794 if (copy_to_user(u->refs, gntdev_dmabuf->u.imp.refs, in gntdev_ioctl_dmabuf_imp_to_refs()
795 sizeof(*u->refs) * op.count) != 0) { in gntdev_ioctl_dmabuf_imp_to_refs()