Lines Matching refs:imp
54 } imp; member
568 kfree(gntdev_dmabuf->u.imp.refs); in dmabuf_imp_free_storage()
581 gntdev_dmabuf->u.imp.refs = kcalloc(count, in dmabuf_imp_alloc_storage()
582 sizeof(gntdev_dmabuf->u.imp.refs[0]), in dmabuf_imp_alloc_storage()
584 if (!gntdev_dmabuf->u.imp.refs) in dmabuf_imp_alloc_storage()
596 gntdev_dmabuf->u.imp.refs[i] = GRANT_INVALID_REF; in dmabuf_imp_alloc_storage()
636 gntdev_dmabuf->u.imp.attach = attach; in dmabuf_imp_to_refs()
652 gntdev_dmabuf->u.imp.sgt = sgt; in dmabuf_imp_to_refs()
672 gntdev_dmabuf->u.imp.refs, in dmabuf_imp_to_refs()
686 dmabuf_imp_end_foreign_access(gntdev_dmabuf->u.imp.refs, count); in dmabuf_imp_to_refs()
732 dmabuf_imp_end_foreign_access(gntdev_dmabuf->u.imp.refs, in dmabuf_imp_release()
735 attach = gntdev_dmabuf->u.imp.attach; in dmabuf_imp_release()
737 if (gntdev_dmabuf->u.imp.sgt) in dmabuf_imp_release()
738 dma_buf_unmap_attachment(attach, gntdev_dmabuf->u.imp.sgt, in dmabuf_imp_release()
830 if (copy_to_user(u->refs, gntdev_dmabuf->u.imp.refs, in gntdev_ioctl_dmabuf_imp_to_refs()