Lines Matching refs:pfdev

29 	struct panfrost_device *pfdev = ddev->dev_private;  in panfrost_ioctl_get_param()  local
36 param->value = pfdev->features.member; \ in panfrost_ioctl_get_param()
41 param->value = pfdev->features.member[param->param - \ in panfrost_ioctl_get_param()
235 struct panfrost_device *pfdev = dev->dev_private; in panfrost_ioctl_submit() local
262 job->pfdev = pfdev; in panfrost_ioctl_submit()
265 job->flush_id = panfrost_gpu_get_latest_flush_id(pfdev); in panfrost_ioctl_submit()
395 struct panfrost_device *pfdev = dev->dev_private; in panfrost_ioctl_madvise() local
408 mutex_lock(&pfdev->shrinker_lock); in panfrost_ioctl_madvise()
437 &pfdev->shrinker_list); in panfrost_ioctl_madvise()
444 mutex_unlock(&pfdev->shrinker_lock); in panfrost_ioctl_madvise()
462 struct panfrost_device *pfdev = dev->dev_private; in panfrost_open() local
469 panfrost_priv->pfdev = pfdev; in panfrost_open()
472 panfrost_priv->mmu = panfrost_mmu_ctx_create(pfdev); in panfrost_open()
548 struct panfrost_device *pfdev; in panfrost_probe() local
552 pfdev = devm_kzalloc(&pdev->dev, sizeof(*pfdev), GFP_KERNEL); in panfrost_probe()
553 if (!pfdev) in panfrost_probe()
556 pfdev->pdev = pdev; in panfrost_probe()
557 pfdev->dev = &pdev->dev; in panfrost_probe()
559 platform_set_drvdata(pdev, pfdev); in panfrost_probe()
561 pfdev->comp = of_device_get_match_data(&pdev->dev); in panfrost_probe()
562 if (!pfdev->comp) in panfrost_probe()
565 pfdev->coherent = device_get_dma_attr(&pdev->dev) == DEV_DMA_COHERENT; in panfrost_probe()
572 ddev->dev_private = pfdev; in panfrost_probe()
573 pfdev->ddev = ddev; in panfrost_probe()
575 mutex_init(&pfdev->shrinker_lock); in panfrost_probe()
576 INIT_LIST_HEAD(&pfdev->shrinker_list); in panfrost_probe()
578 err = panfrost_device_init(pfdev); in panfrost_probe()
585 pm_runtime_set_active(pfdev->dev); in panfrost_probe()
586 pm_runtime_mark_last_busy(pfdev->dev); in panfrost_probe()
587 pm_runtime_enable(pfdev->dev); in panfrost_probe()
588 pm_runtime_set_autosuspend_delay(pfdev->dev, 50); /* ~3 frames */ in panfrost_probe()
589 pm_runtime_use_autosuspend(pfdev->dev); in panfrost_probe()
604 pm_runtime_disable(pfdev->dev); in panfrost_probe()
605 panfrost_device_fini(pfdev); in panfrost_probe()
606 pm_runtime_set_suspended(pfdev->dev); in panfrost_probe()
614 struct panfrost_device *pfdev = platform_get_drvdata(pdev); in panfrost_remove() local
615 struct drm_device *ddev = pfdev->ddev; in panfrost_remove()
620 pm_runtime_get_sync(pfdev->dev); in panfrost_remove()
621 pm_runtime_disable(pfdev->dev); in panfrost_remove()
622 panfrost_device_fini(pfdev); in panfrost_remove()
623 pm_runtime_set_suspended(pfdev->dev); in panfrost_remove()