• Home
  • Raw
  • Download

Lines Matching refs:refs

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