Lines Matching full:attachment
58 struct dma_buf_attachment *attachment) in cma_heap_attach() argument
77 a->dev = attachment->dev; in cma_heap_attach()
82 attachment->priv = a; in cma_heap_attach()
92 struct dma_buf_attachment *attachment) in cma_heap_detach() argument
95 struct dma_heap_attachment *a = attachment->priv; in cma_heap_detach()
105 static struct sg_table *cma_heap_map_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_map_dma_buf() argument
108 struct dma_heap_attachment *a = attachment->priv; in cma_heap_map_dma_buf()
110 int attrs = attachment->dma_map_attrs; in cma_heap_map_dma_buf()
116 ret = dma_map_sgtable(attachment->dev, table, direction, attrs); in cma_heap_map_dma_buf()
123 static void cma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_unmap_dma_buf() argument
127 struct dma_heap_attachment *a = attachment->priv; in cma_heap_unmap_dma_buf()
128 int attrs = attachment->dma_map_attrs; in cma_heap_unmap_dma_buf()
135 dma_unmap_sgtable(attachment->dev, table, direction, attrs); in cma_heap_unmap_dma_buf()