Lines Matching refs:gpu
10 int msm_context_set_sysprof(struct msm_context *ctx, struct msm_gpu *gpu, int sysprof) in msm_context_set_sysprof() argument
20 return UERR(EINVAL, gpu->dev, "Invalid sysprof: %d", sysprof); in msm_context_set_sysprof()
22 pm_runtime_get_sync(&gpu->pdev->dev); in msm_context_set_sysprof()
25 refcount_inc(&gpu->sysprof_active); in msm_context_set_sysprof()
34 pm_runtime_put_autosuspend(&gpu->pdev->dev); in msm_context_set_sysprof()
37 refcount_dec(&gpu->sysprof_active); in msm_context_set_sysprof()
44 if (gpu->funcs->sysprof_setup) in msm_context_set_sysprof()
45 gpu->funcs->sysprof_setup(gpu); in msm_context_set_sysprof()
183 if (!priv->gpu) in msm_submitqueue_create()
201 priv->gpu->nr_rings == 1 && enable_preemption != 0; in msm_submitqueue_create()
206 ret = msm_gpu_convert_priority(priv->gpu, prio, &ring_nr, &sched_prio); in msm_submitqueue_create()
229 queue->entity = get_sched_entity(ctx, priv->gpu->rb[ring_nr], in msm_submitqueue_create()
267 if (!priv->gpu) in msm_submitqueue_init()
270 max_priority = (priv->gpu->nr_rings * NR_SCHED_PRIORITIES) - 1; in msm_submitqueue_init()