Lines Matching refs:attach
214 struct vb2_vmalloc_attachment *attach; in vb2_vmalloc_dmabuf_ops_attach() local
223 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
224 if (!attach) in vb2_vmalloc_dmabuf_ops_attach()
227 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_attach()
230 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach()
238 kfree(attach); in vb2_vmalloc_dmabuf_ops_attach()
245 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach()
246 dbuf_attach->priv = attach; in vb2_vmalloc_dmabuf_ops_attach()
253 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_detach() local
256 if (!attach) in vb2_vmalloc_dmabuf_ops_detach()
259 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_detach()
262 if (attach->dma_dir != DMA_NONE) in vb2_vmalloc_dmabuf_ops_detach()
264 attach->dma_dir); in vb2_vmalloc_dmabuf_ops_detach()
266 kfree(attach); in vb2_vmalloc_dmabuf_ops_detach()
273 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_map() local
280 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_map()
282 if (attach->dma_dir == dma_dir) { in vb2_vmalloc_dmabuf_ops_map()
288 if (attach->dma_dir != DMA_NONE) { in vb2_vmalloc_dmabuf_ops_map()
290 attach->dma_dir); in vb2_vmalloc_dmabuf_ops_map()
291 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_map()
303 attach->dma_dir = dma_dir; in vb2_vmalloc_dmabuf_ops_map()
343 .attach = vb2_vmalloc_dmabuf_ops_attach,