db_attach 42 drivers/media/common/videobuf2/videobuf2-dma-contig.c struct dma_buf_attachment *db_attach; db_attach 80 drivers/media/common/videobuf2/videobuf2-dma-contig.c if (!buf->vaddr && buf->db_attach) db_attach 81 drivers/media/common/videobuf2/videobuf2-dma-contig.c buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); db_attach 99 drivers/media/common/videobuf2/videobuf2-dma-contig.c if (!sgt || buf->db_attach) db_attach 112 drivers/media/common/videobuf2/videobuf2-dma-contig.c if (!sgt || buf->db_attach) db_attach 258 drivers/media/common/videobuf2/videobuf2-dma-contig.c struct dma_buf_attachment *db_attach) db_attach 260 drivers/media/common/videobuf2/videobuf2-dma-contig.c struct vb2_dc_attachment *attach = db_attach->priv; db_attach 276 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_unmap_sg_attrs(db_attach->dev, sgt->sgl, sgt->orig_nents, db_attach 280 drivers/media/common/videobuf2/videobuf2-dma-contig.c db_attach->priv = NULL; db_attach 284 drivers/media/common/videobuf2/videobuf2-dma-contig.c struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) db_attach 286 drivers/media/common/videobuf2/videobuf2-dma-contig.c struct vb2_dc_attachment *attach = db_attach->priv; db_attach 288 drivers/media/common/videobuf2/videobuf2-dma-contig.c struct mutex *lock = &db_attach->dmabuf->lock; db_attach 302 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_unmap_sg_attrs(db_attach->dev, sgt->sgl, sgt->orig_nents, db_attach 311 drivers/media/common/videobuf2/videobuf2-dma-contig.c sgt->nents = dma_map_sg_attrs(db_attach->dev, sgt->sgl, sgt->orig_nents, db_attach 326 drivers/media/common/videobuf2/videobuf2-dma-contig.c static void vb2_dc_dmabuf_ops_unmap(struct dma_buf_attachment *db_attach, db_attach 584 drivers/media/common/videobuf2/videobuf2-dma-contig.c if (WARN_ON(!buf->db_attach)) { db_attach 595 drivers/media/common/videobuf2/videobuf2-dma-contig.c sgt = dma_buf_map_attachment(buf->db_attach, buf->dma_dir); db_attach 606 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_buf_unmap_attachment(buf->db_attach, sgt, buf->dma_dir); db_attach 622 drivers/media/common/videobuf2/videobuf2-dma-contig.c if (WARN_ON(!buf->db_attach)) { db_attach 633 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_buf_vunmap(buf->db_attach->dmabuf, buf->vaddr); db_attach 636 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_buf_unmap_attachment(buf->db_attach, sgt, buf->dma_dir); db_attach 651 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_buf_detach(buf->db_attach->dmabuf, buf->db_attach); db_attach 682 drivers/media/common/videobuf2/videobuf2-dma-contig.c buf->db_attach = dba; db_attach 53 drivers/media/common/videobuf2/videobuf2-dma-sg.c struct dma_buf_attachment *db_attach; db_attach 202 drivers/media/common/videobuf2/videobuf2-dma-sg.c if (buf->db_attach) db_attach 215 drivers/media/common/videobuf2/videobuf2-dma-sg.c if (buf->db_attach) db_attach 309 drivers/media/common/videobuf2/videobuf2-dma-sg.c if (buf->db_attach) db_attach 310 drivers/media/common/videobuf2/videobuf2-dma-sg.c buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); db_attach 402 drivers/media/common/videobuf2/videobuf2-dma-sg.c struct dma_buf_attachment *db_attach) db_attach 404 drivers/media/common/videobuf2/videobuf2-dma-sg.c struct vb2_dma_sg_attachment *attach = db_attach->priv; db_attach 414 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, db_attach 418 drivers/media/common/videobuf2/videobuf2-dma-sg.c db_attach->priv = NULL; db_attach 422 drivers/media/common/videobuf2/videobuf2-dma-sg.c struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) db_attach 424 drivers/media/common/videobuf2/videobuf2-dma-sg.c struct vb2_dma_sg_attachment *attach = db_attach->priv; db_attach 426 drivers/media/common/videobuf2/videobuf2-dma-sg.c struct mutex *lock = &db_attach->dmabuf->lock; db_attach 440 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, db_attach 446 drivers/media/common/videobuf2/videobuf2-dma-sg.c sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, db_attach 461 drivers/media/common/videobuf2/videobuf2-dma-sg.c static void vb2_dma_sg_dmabuf_ops_unmap(struct dma_buf_attachment *db_attach, db_attach 537 drivers/media/common/videobuf2/videobuf2-dma-sg.c if (WARN_ON(!buf->db_attach)) { db_attach 548 drivers/media/common/videobuf2/videobuf2-dma-sg.c sgt = dma_buf_map_attachment(buf->db_attach, buf->dma_dir); db_attach 565 drivers/media/common/videobuf2/videobuf2-dma-sg.c if (WARN_ON(!buf->db_attach)) { db_attach 576 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_buf_vunmap(buf->db_attach->dmabuf, buf->vaddr); db_attach 579 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_buf_unmap_attachment(buf->db_attach, sgt, buf->dma_dir); db_attach 593 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_buf_detach(buf->db_attach->dmabuf, buf->db_attach); db_attach 624 drivers/media/common/videobuf2/videobuf2-dma-sg.c buf->db_attach = dba; db_attach 251 drivers/media/common/videobuf2/videobuf2-vmalloc.c struct dma_buf_attachment *db_attach) db_attach 253 drivers/media/common/videobuf2/videobuf2-vmalloc.c struct vb2_vmalloc_attachment *attach = db_attach->priv; db_attach 263 drivers/media/common/videobuf2/videobuf2-vmalloc.c dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, db_attach 267 drivers/media/common/videobuf2/videobuf2-vmalloc.c db_attach->priv = NULL; db_attach 271 drivers/media/common/videobuf2/videobuf2-vmalloc.c struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) db_attach 273 drivers/media/common/videobuf2/videobuf2-vmalloc.c struct vb2_vmalloc_attachment *attach = db_attach->priv; db_attach 275 drivers/media/common/videobuf2/videobuf2-vmalloc.c struct mutex *lock = &db_attach->dmabuf->lock; db_attach 289 drivers/media/common/videobuf2/videobuf2-vmalloc.c dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, db_attach 295 drivers/media/common/videobuf2/videobuf2-vmalloc.c sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, db_attach 310 drivers/media/common/videobuf2/videobuf2-vmalloc.c static void vb2_vmalloc_dmabuf_ops_unmap(struct dma_buf_attachment *db_attach,