Lines Matching refs:panfrost_priv
472 struct panfrost_file_priv *panfrost_priv; in panfrost_open() local
474 panfrost_priv = kzalloc(sizeof(*panfrost_priv), GFP_KERNEL); in panfrost_open()
475 if (!panfrost_priv) in panfrost_open()
478 panfrost_priv->pfdev = pfdev; in panfrost_open()
479 file->driver_priv = panfrost_priv; in panfrost_open()
481 panfrost_priv->mmu = panfrost_mmu_ctx_create(pfdev); in panfrost_open()
482 if (IS_ERR(panfrost_priv->mmu)) { in panfrost_open()
483 ret = PTR_ERR(panfrost_priv->mmu); in panfrost_open()
487 ret = panfrost_job_open(panfrost_priv); in panfrost_open()
494 panfrost_mmu_ctx_put(panfrost_priv->mmu); in panfrost_open()
496 kfree(panfrost_priv); in panfrost_open()
503 struct panfrost_file_priv *panfrost_priv = file->driver_priv; in panfrost_postclose() local
506 panfrost_job_close(panfrost_priv); in panfrost_postclose()
508 panfrost_mmu_ctx_put(panfrost_priv->mmu); in panfrost_postclose()
509 kfree(panfrost_priv); in panfrost_postclose()