Lines Matching full:private

168 	struct mtk_drm_private *private = drm->dev_private;  in mtk_drm_kms_init()  local
177 pdev = of_find_device_by_node(private->mutex_node); in mtk_drm_kms_init()
180 private->mutex_node); in mtk_drm_kms_init()
181 of_node_put(private->mutex_node); in mtk_drm_kms_init()
184 private->mutex_dev = &pdev->dev; in mtk_drm_kms_init()
212 ret = mtk_drm_crtc_create(drm, private->data->main_path, in mtk_drm_kms_init()
213 private->data->main_len); in mtk_drm_kms_init()
217 ret = mtk_drm_crtc_create(drm, private->data->ext_path, in mtk_drm_kms_init()
218 private->data->ext_len); in mtk_drm_kms_init()
222 ret = mtk_drm_crtc_create(drm, private->data->third_path, in mtk_drm_kms_init()
223 private->data->third_len); in mtk_drm_kms_init()
228 np = private->comp_node[private->data->main_path[0]] ?: in mtk_drm_kms_init()
229 private->comp_node[private->data->ext_path[0]]; in mtk_drm_kms_init()
238 private->dma_dev = dma_dev; in mtk_drm_kms_init()
245 private->dma_parms_allocated = true; in mtk_drm_kms_init()
277 if (private->dma_parms_allocated) in mtk_drm_kms_init()
280 put_device(private->dma_dev); in mtk_drm_kms_init()
284 put_device(private->mutex_dev); in mtk_drm_kms_init()
290 struct mtk_drm_private *private = drm->dev_private; in mtk_drm_kms_deinit() local
295 if (private->dma_parms_allocated) in mtk_drm_kms_deinit()
296 private->dma_dev->dma_parms = NULL; in mtk_drm_kms_deinit()
319 struct mtk_drm_private *private = dev->dev_private; in mtk_drm_gem_prime_import() local
321 return drm_gem_prime_import_dev(dev, dma_buf, private->dma_dev); in mtk_drm_gem_prime_import()
355 struct mtk_drm_private *private = dev_get_drvdata(dev); in mtk_drm_bind() local
363 drm->dev_private = private; in mtk_drm_bind()
364 private->drm = drm; in mtk_drm_bind()
387 struct mtk_drm_private *private = dev_get_drvdata(dev); in mtk_drm_unbind() local
389 drm_dev_unregister(private->drm); in mtk_drm_unbind()
390 mtk_drm_kms_deinit(private->drm); in mtk_drm_unbind()
391 drm_dev_put(private->drm); in mtk_drm_unbind()
392 private->num_pipes = 0; in mtk_drm_unbind()
393 private->drm = NULL; in mtk_drm_unbind()
462 struct mtk_drm_private *private; in mtk_drm_probe() local
468 private = devm_kzalloc(dev, sizeof(*private), GFP_KERNEL); in mtk_drm_probe()
469 if (!private) in mtk_drm_probe()
472 private->mmsys_dev = dev->parent; in mtk_drm_probe()
473 if (!private->mmsys_dev) { in mtk_drm_probe()
482 private->data = of_id->data; in mtk_drm_probe()
503 private->mutex_node = of_node_get(node); in mtk_drm_probe()
514 private->comp_node[comp_id] = of_node_get(node); in mtk_drm_probe()
548 private->ddp_comp[comp_id] = comp; in mtk_drm_probe()
552 if (!private->mutex_node) { in mtk_drm_probe()
560 platform_set_drvdata(pdev, private); in mtk_drm_probe()
571 of_node_put(private->mutex_node); in mtk_drm_probe()
573 of_node_put(private->comp_node[i]); in mtk_drm_probe()
574 if (private->ddp_comp[i]) { in mtk_drm_probe()
575 put_device(private->ddp_comp[i]->larb_dev); in mtk_drm_probe()
576 private->ddp_comp[i] = NULL; in mtk_drm_probe()
584 struct mtk_drm_private *private = platform_get_drvdata(pdev); in mtk_drm_remove() local
589 of_node_put(private->mutex_node); in mtk_drm_remove()
591 of_node_put(private->comp_node[i]); in mtk_drm_remove()
599 struct mtk_drm_private *private = dev_get_drvdata(dev); in mtk_drm_sys_suspend() local
600 struct drm_device *drm = private->drm; in mtk_drm_sys_suspend()
610 struct mtk_drm_private *private = dev_get_drvdata(dev); in mtk_drm_sys_resume() local
611 struct drm_device *drm = private->drm; in mtk_drm_sys_resume()