Lines Matching refs:hw_prio
80 unsigned int hw_prio; in amdgpu_ctx_prio_sched_to_hw() local
82 hw_prio = (hw_ip == AMDGPU_HW_IP_COMPUTE) ? in amdgpu_ctx_prio_sched_to_hw()
86 if (adev->gpu_sched[hw_ip][hw_prio].num_scheds == 0) in amdgpu_ctx_prio_sched_to_hw()
87 hw_prio = AMDGPU_RING_PRIO_DEFAULT; in amdgpu_ctx_prio_sched_to_hw()
89 return hw_prio; in amdgpu_ctx_prio_sched_to_hw()
99 unsigned int hw_prio; in amdgpu_ctx_init_entity() local
111 hw_prio = amdgpu_ctx_prio_sched_to_hw(adev, priority, hw_ip); in amdgpu_ctx_init_entity()
114 scheds = adev->gpu_sched[hw_ip][hw_prio].sched; in amdgpu_ctx_init_entity()
115 num_scheds = adev->gpu_sched[hw_ip][hw_prio].num_scheds; in amdgpu_ctx_init_entity()
512 unsigned int hw_prio; in amdgpu_ctx_set_entity_priority() local
521 hw_prio = amdgpu_ctx_prio_sched_to_hw(adev, priority, in amdgpu_ctx_set_entity_priority()
523 hw_prio = array_index_nospec(hw_prio, AMDGPU_RING_PRIO_MAX); in amdgpu_ctx_set_entity_priority()
524 scheds = adev->gpu_sched[hw_ip][hw_prio].sched; in amdgpu_ctx_set_entity_priority()
525 num_scheds = adev->gpu_sched[hw_ip][hw_prio].num_scheds; in amdgpu_ctx_set_entity_priority()