Searched refs:exynos_attach (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dexynos_drm_dmabuf.c35 struct exynos_drm_dmabuf_attachment *exynos_attach; exynos_gem_attach_dma_buf() local
37 exynos_attach = kzalloc(sizeof(*exynos_attach), GFP_KERNEL); exynos_gem_attach_dma_buf()
38 if (!exynos_attach) exynos_gem_attach_dma_buf()
41 exynos_attach->dir = DMA_NONE; exynos_gem_attach_dma_buf()
42 attach->priv = exynos_attach; exynos_gem_attach_dma_buf()
50 struct exynos_drm_dmabuf_attachment *exynos_attach = attach->priv; exynos_gem_detach_dma_buf() local
53 if (!exynos_attach) exynos_gem_detach_dma_buf()
56 sgt = &exynos_attach->sgt; exynos_gem_detach_dma_buf()
58 if (exynos_attach->dir != DMA_NONE) exynos_gem_detach_dma_buf()
60 exynos_attach->dir); exynos_gem_detach_dma_buf()
63 kfree(exynos_attach); exynos_gem_detach_dma_buf()
71 struct exynos_drm_dmabuf_attachment *exynos_attach = attach->priv; exynos_gem_map_dma_buf() local
81 if (exynos_attach->dir == dir && exynos_attach->is_mapped) exynos_gem_map_dma_buf()
82 return &exynos_attach->sgt; exynos_gem_map_dma_buf()
90 sgt = &exynos_attach->sgt; exynos_gem_map_dma_buf()
118 exynos_attach->is_mapped = true; exynos_gem_map_dma_buf()
119 exynos_attach->dir = dir; exynos_gem_map_dma_buf()
120 attach->priv = exynos_attach; exynos_gem_map_dma_buf()

Completed in 50 milliseconds