Lines Matching defs:pfdev

30 	struct panfrost_device *pfdev = ddev->dev_private;
37 param->value = pfdev->features.member; \
42 param->value = pfdev->features.member[param->param - \
238 struct panfrost_device *pfdev = dev->dev_private;
265 job->pfdev = pfdev;
268 job->flush_id = panfrost_gpu_get_latest_flush_id(pfdev);
398 struct panfrost_device *pfdev = dev->dev_private;
415 mutex_lock(&pfdev->shrinker_lock);
444 &pfdev->shrinker_list);
451 mutex_unlock(&pfdev->shrinker_lock);
470 struct panfrost_device *pfdev = dev->dev_private;
477 panfrost_priv->pfdev = pfdev;
480 panfrost_priv->mmu = panfrost_mmu_ctx_create(pfdev);
553 struct panfrost_device *pfdev;
557 pfdev = devm_kzalloc(&pdev->dev, sizeof(*pfdev), GFP_KERNEL);
558 if (!pfdev)
561 pfdev->pdev = pdev;
562 pfdev->dev = &pdev->dev;
564 platform_set_drvdata(pdev, pfdev);
566 pfdev->comp = of_device_get_match_data(&pdev->dev);
567 if (!pfdev->comp)
570 pfdev->coherent = device_get_dma_attr(&pdev->dev) == DEV_DMA_COHERENT;
577 ddev->dev_private = pfdev;
578 pfdev->ddev = ddev;
580 mutex_init(&pfdev->shrinker_lock);
581 INIT_LIST_HEAD(&pfdev->shrinker_list);
583 err = panfrost_device_init(pfdev);
590 pm_runtime_set_active(pfdev->dev);
591 pm_runtime_mark_last_busy(pfdev->dev);
592 pm_runtime_enable(pfdev->dev);
593 pm_runtime_set_autosuspend_delay(pfdev->dev, 50); /* ~3 frames */
594 pm_runtime_use_autosuspend(pfdev->dev);
609 pm_runtime_disable(pfdev->dev);
610 panfrost_device_fini(pfdev);
611 pm_runtime_set_suspended(pfdev->dev);
619 struct panfrost_device *pfdev = platform_get_drvdata(pdev);
620 struct drm_device *ddev = pfdev->ddev;
625 pm_runtime_get_sync(pfdev->dev);
626 pm_runtime_disable(pfdev->dev);
627 panfrost_device_fini(pfdev);
628 pm_runtime_set_suspended(pfdev->dev);