Searched refs:rk_obj (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_gem.c | 19 static int rockchip_gem_iommu_map(struct rockchip_gem_object *rk_obj) in rockchip_gem_iommu_map() argument 21 struct drm_device *drm = rk_obj->base.dev; in rockchip_gem_iommu_map() 27 ret = drm_mm_insert_node_generic(&private->mm, &rk_obj->mm, in rockchip_gem_iommu_map() 28 rk_obj->base.size, PAGE_SIZE, in rockchip_gem_iommu_map() 37 rk_obj->dma_addr = rk_obj->mm.start; in rockchip_gem_iommu_map() 39 ret = iommu_map_sgtable(private->domain, rk_obj->dma_addr, rk_obj->sgt, in rockchip_gem_iommu_map() 41 if (ret < rk_obj->base.size) { in rockchip_gem_iommu_map() 43 ret, rk_obj->base.size); in rockchip_gem_iommu_map() 48 rk_obj->size = ret; in rockchip_gem_iommu_map() 54 drm_mm_remove_node(&rk_obj->mm); in rockchip_gem_iommu_map() [all …]
|
D | rockchip_drm_fbdev.c | 45 struct rockchip_gem_object *rk_obj; in rockchip_drm_fbdev_create() local 63 rk_obj = rockchip_gem_create_object(dev, size, true); in rockchip_drm_fbdev_create() 64 if (IS_ERR(rk_obj)) in rockchip_drm_fbdev_create() 67 private->fbdev_bo = &rk_obj->base; in rockchip_drm_fbdev_create() 94 fbi->screen_base = rk_obj->kvaddr + offset; in rockchip_drm_fbdev_create() 95 fbi->screen_size = rk_obj->base.size; in rockchip_drm_fbdev_create() 96 fbi->fix.smem_len = rk_obj->base.size; in rockchip_drm_fbdev_create() 100 rk_obj->kvaddr, in rockchip_drm_fbdev_create() 106 rockchip_gem_free_object(&rk_obj->base); in rockchip_drm_fbdev_create()
|
D | rockchip_drm_vop.c | 887 struct rockchip_gem_object *rk_obj, *rk_uv_obj; in vop_plane_atomic_update() local 912 rk_obj = to_rockchip_obj(obj); in vop_plane_atomic_update() 927 dma_addr = rk_obj->dma_addr + offset + fb->offsets[0]; in vop_plane_atomic_update()
|