Home
last modified time | relevance | path

Searched refs:gntdev_dmabuf_attach (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/xen/
H A Dgntdev-dmabuf.c223 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach; in dmabuf_exp_ops_attach() local
225 gntdev_dmabuf_attach = kzalloc(sizeof(*gntdev_dmabuf_attach), in dmabuf_exp_ops_attach()
227 if (!gntdev_dmabuf_attach) in dmabuf_exp_ops_attach()
230 gntdev_dmabuf_attach->dir = DMA_NONE; in dmabuf_exp_ops_attach()
231 attach->priv = gntdev_dmabuf_attach; in dmabuf_exp_ops_attach()
238 struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; in dmabuf_exp_ops_detach() local
240 if (gntdev_dmabuf_attach) { in dmabuf_exp_ops_detach()
241 struct sg_table *sgt = gntdev_dmabuf_attach->sgt; in dmabuf_exp_ops_detach()
244 if (gntdev_dmabuf_attach->dir != DMA_NONE) in dmabuf_exp_ops_detach()
246 gntdev_dmabuf_attach->dir, in dmabuf_exp_ops_detach()
[all …]