Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_drm_gem.c36 struct mtk_drm_gem_obj *mtk_gem_obj; in mtk_drm_gem_init() local
44 mtk_gem_obj = kzalloc(sizeof(*mtk_gem_obj), GFP_KERNEL); in mtk_drm_gem_init()
45 if (!mtk_gem_obj) in mtk_drm_gem_init()
48 mtk_gem_obj->base.funcs = &mtk_drm_gem_object_funcs; in mtk_drm_gem_init()
50 ret = drm_gem_object_init(dev, &mtk_gem_obj->base, size); in mtk_drm_gem_init()
53 kfree(mtk_gem_obj); in mtk_drm_gem_init()
57 return mtk_gem_obj; in mtk_drm_gem_init()