Lines Matching defs:pfdev

29 	struct panfrost_device *pfdev = ddev->dev_private;
36 param->value = pfdev->features.member; \
41 param->value = pfdev->features.member[param->param - \
250 struct panfrost_device *pfdev = dev->dev_private;
276 job->pfdev = pfdev;
279 job->flush_id = panfrost_gpu_get_latest_flush_id(pfdev);
398 struct panfrost_device *pfdev = dev->dev_private;
411 mutex_lock(&pfdev->shrinker_lock);
440 &pfdev->shrinker_list);
447 mutex_unlock(&pfdev->shrinker_lock);
465 struct panfrost_device *pfdev = dev->dev_private;
472 panfrost_priv->pfdev = pfdev;
475 panfrost_priv->mmu = panfrost_mmu_ctx_create(pfdev);
550 struct panfrost_device *pfdev;
554 pfdev = devm_kzalloc(&pdev->dev, sizeof(*pfdev), GFP_KERNEL);
555 if (!pfdev)
558 pfdev->pdev = pdev;
559 pfdev->dev = &pdev->dev;
561 platform_set_drvdata(pdev, pfdev);
563 pfdev->comp = of_device_get_match_data(&pdev->dev);
564 if (!pfdev->comp)
567 pfdev->coherent = device_get_dma_attr(&pdev->dev) == DEV_DMA_COHERENT;
574 ddev->dev_private = pfdev;
575 pfdev->ddev = ddev;
577 mutex_init(&pfdev->shrinker_lock);
578 INIT_LIST_HEAD(&pfdev->shrinker_list);
580 err = panfrost_device_init(pfdev);
587 pm_runtime_set_active(pfdev->dev);
588 pm_runtime_mark_last_busy(pfdev->dev);
589 pm_runtime_enable(pfdev->dev);
590 pm_runtime_set_autosuspend_delay(pfdev->dev, 50); /* ~3 frames */
591 pm_runtime_use_autosuspend(pfdev->dev);
606 pm_runtime_disable(pfdev->dev);
607 panfrost_device_fini(pfdev);
608 pm_runtime_set_suspended(pfdev->dev);
616 struct panfrost_device *pfdev = platform_get_drvdata(pdev);
617 struct drm_device *ddev = pfdev->ddev;
622 pm_runtime_get_sync(pfdev->dev);
623 pm_runtime_disable(pfdev->dev);
624 panfrost_device_fini(pfdev);
625 pm_runtime_set_suspended(pfdev->dev);