Lines Matching refs:attach
209 struct vb2_vmalloc_attachment *attach; in vb2_vmalloc_dmabuf_ops_attach() local
218 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
219 if (!attach) in vb2_vmalloc_dmabuf_ops_attach()
222 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_attach()
225 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach()
233 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach()
240 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach()
241 dbuf_attach->priv = attach; in vb2_vmalloc_dmabuf_ops_attach()
248 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_detach() local
251 if (!attach) in vb2_vmalloc_dmabuf_ops_detach()
254 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_detach()
257 if (attach->dma_dir != DMA_NONE) in vb2_vmalloc_dmabuf_ops_detach()
259 attach->dma_dir); in vb2_vmalloc_dmabuf_ops_detach()
261 kfree(attach); in vb2_vmalloc_dmabuf_ops_detach()
268 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_map() local
275 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_map()
277 if (attach->dma_dir == dma_dir) { in vb2_vmalloc_dmabuf_ops_map()
283 if (attach->dma_dir != DMA_NONE) { in vb2_vmalloc_dmabuf_ops_map()
285 attach->dma_dir); in vb2_vmalloc_dmabuf_ops_map()
286 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_map()
298 attach->dma_dir = dma_dir; in vb2_vmalloc_dmabuf_ops_map()
338 .attach = vb2_vmalloc_dmabuf_ops_attach,