Searched refs:gntdev_dmabuf_attach (Results 1 – 1 of 1) sorted by relevance
228 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach; in dmabuf_exp_ops_attach() local230 gntdev_dmabuf_attach = kzalloc(sizeof(*gntdev_dmabuf_attach), in dmabuf_exp_ops_attach()232 if (!gntdev_dmabuf_attach) in dmabuf_exp_ops_attach()235 gntdev_dmabuf_attach->dir = DMA_NONE; in dmabuf_exp_ops_attach()236 attach->priv = gntdev_dmabuf_attach; in dmabuf_exp_ops_attach()243 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; in dmabuf_exp_ops_detach() local245 if (gntdev_dmabuf_attach) { in dmabuf_exp_ops_detach()246 struct sg_table *sgt = gntdev_dmabuf_attach->sgt; in dmabuf_exp_ops_detach()249 if (gntdev_dmabuf_attach->dir != DMA_NONE) in dmabuf_exp_ops_detach()251 gntdev_dmabuf_attach->dir, in dmabuf_exp_ops_detach()[all …]