Lines Matching refs:mode_sem
64 init_rwsem(&group->mode_sem); in hw_engine_group_alloc()
159 err = down_write_killable(&group->mode_sem); in xe_hw_engine_group_add_exec_queue()
173 up_write(&group->mode_sem); in xe_hw_engine_group_add_exec_queue()
178 up_write(&group->mode_sem); in xe_hw_engine_group_add_exec_queue()
194 down_write(&group->mode_sem); in xe_hw_engine_group_del_exec_queue()
199 up_write(&group->mode_sem); in xe_hw_engine_group_del_exec_queue()
224 lockdep_assert_held_write(&group->mode_sem); in xe_hw_engine_group_suspend_faulting_lr_jobs()
249 up_write(&group->mode_sem); in xe_hw_engine_group_suspend_faulting_lr_jobs()
269 lockdep_assert_held_write(&group->mode_sem); in xe_hw_engine_group_wait_for_dma_fence_jobs()
291 lockdep_assert_held_write(&group->mode_sem); in switch_mode()
323 __acquires(&group->mode_sem) in xe_hw_engine_group_get_mode()
325 int err = down_read_interruptible(&group->mode_sem); in xe_hw_engine_group_get_mode()
333 up_read(&group->mode_sem); in xe_hw_engine_group_get_mode()
334 err = down_write_killable(&group->mode_sem); in xe_hw_engine_group_get_mode()
341 up_write(&group->mode_sem); in xe_hw_engine_group_get_mode()
345 downgrade_write(&group->mode_sem); in xe_hw_engine_group_get_mode()
356 __releases(&group->mode_sem) in xe_hw_engine_group_put()
358 up_read(&group->mode_sem); in xe_hw_engine_group_put()