Lines Matching full:attachment
51 struct dma_buf_attachment *attachment) in cma_heap_attach() argument
70 a->dev = attachment->dev; in cma_heap_attach()
74 attachment->priv = a; in cma_heap_attach()
84 struct dma_buf_attachment *attachment) in cma_heap_detach() argument
87 struct dma_heap_attachment *a = attachment->priv; in cma_heap_detach()
97 static struct sg_table *cma_heap_map_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_map_dma_buf() argument
100 struct dma_heap_attachment *a = attachment->priv; in cma_heap_map_dma_buf()
102 int attrs = attachment->dma_map_attrs; in cma_heap_map_dma_buf()
105 ret = dma_map_sgtable(attachment->dev, table, direction, attrs); in cma_heap_map_dma_buf()
112 static void cma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_unmap_dma_buf() argument
116 struct dma_heap_attachment *a = attachment->priv; in cma_heap_unmap_dma_buf()
117 int attrs = attachment->dma_map_attrs; in cma_heap_unmap_dma_buf()
120 dma_unmap_sgtable(attachment->dev, table, direction, attrs); in cma_heap_unmap_dma_buf()