Home
last modified time | relevance | path

Searched refs:mtk_gem (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_drm_gem.c64 struct mtk_drm_gem_obj *mtk_gem; in mtk_drm_gem_create() local
68 mtk_gem = mtk_drm_gem_init(dev, size); in mtk_drm_gem_create()
69 if (IS_ERR(mtk_gem)) in mtk_drm_gem_create()
70 return ERR_CAST(mtk_gem); in mtk_drm_gem_create()
72 obj = &mtk_gem->base; in mtk_drm_gem_create()
74 mtk_gem->dma_attrs = DMA_ATTR_WRITE_COMBINE; in mtk_drm_gem_create()
77 mtk_gem->dma_attrs |= DMA_ATTR_NO_KERNEL_MAPPING; in mtk_drm_gem_create()
79 mtk_gem->cookie = dma_alloc_attrs(priv->dma_dev, obj->size, in mtk_drm_gem_create()
80 &mtk_gem->dma_addr, GFP_KERNEL, in mtk_drm_gem_create()
81 mtk_gem->dma_attrs); in mtk_drm_gem_create()
[all …]
H A Dmtk_drm_plane.c138 struct mtk_drm_gem_obj *mtk_gem; in mtk_plane_update_new_state() local
147 mtk_gem = to_mtk_gem_obj(gem); in mtk_plane_update_new_state()
148 addr = mtk_gem->dma_addr; in mtk_plane_update_new_state()