Lines Matching refs:hw_prio
141 unsigned int hw_prio; in amdgpu_ctx_get_hw_prio() local
150 hw_prio = amdgpu_ctx_prio_to_gfx_pipe_prio(ctx_prio); in amdgpu_ctx_get_hw_prio()
154 hw_prio = amdgpu_ctx_sched_prio_to_ring_prio(ctx_prio); in amdgpu_ctx_get_hw_prio()
157 hw_prio = AMDGPU_RING_PRIO_DEFAULT; in amdgpu_ctx_get_hw_prio()
162 if (adev->gpu_sched[hw_ip][hw_prio].num_scheds == 0) in amdgpu_ctx_get_hw_prio()
163 hw_prio = AMDGPU_RING_PRIO_DEFAULT; in amdgpu_ctx_get_hw_prio()
165 return hw_prio; in amdgpu_ctx_get_hw_prio()
210 unsigned int hw_prio, num_scheds; in amdgpu_ctx_init_entity() local
223 hw_prio = amdgpu_ctx_get_hw_prio(ctx, hw_ip); in amdgpu_ctx_init_entity()
229 scheds = adev->gpu_sched[hw_ip][hw_prio].sched; in amdgpu_ctx_init_entity()
230 num_scheds = adev->gpu_sched[hw_ip][hw_prio].num_scheds; in amdgpu_ctx_init_entity()
235 r = amdgpu_xcp_select_scheds(adev, hw_ip, hw_prio, fpriv, in amdgpu_ctx_init_entity()
810 unsigned int hw_prio; in amdgpu_ctx_set_entity_priority() local
820 hw_prio = amdgpu_ctx_get_hw_prio(ctx, hw_ip); in amdgpu_ctx_set_entity_priority()
821 hw_prio = array_index_nospec(hw_prio, AMDGPU_RING_PRIO_MAX); in amdgpu_ctx_set_entity_priority()
822 scheds = adev->gpu_sched[hw_ip][hw_prio].sched; in amdgpu_ctx_set_entity_priority()
823 num_scheds = adev->gpu_sched[hw_ip][hw_prio].num_scheds; in amdgpu_ctx_set_entity_priority()