Lines Matching refs:submission_state

231 	xa_destroy(&guc->submission_state.exec_queue_lookup);  in guc_submit_fini()
240 mutex_lock(&guc->submission_state.lock); in guc_submit_wedged_fini()
241 xa_for_each(&guc->submission_state.exec_queue_lookup, index, q) { in guc_submit_wedged_fini()
243 mutex_unlock(&guc->submission_state.lock); in guc_submit_wedged_fini()
245 mutex_lock(&guc->submission_state.lock); in guc_submit_wedged_fini()
248 mutex_unlock(&guc->submission_state.lock); in guc_submit_wedged_fini()
260 mutex_lock(&guc->submission_state.lock); in primelockdep()
261 mutex_unlock(&guc->submission_state.lock); in primelockdep()
285 err = drmm_mutex_init(&xe->drm, &guc->submission_state.lock); in xe_guc_submit_init()
289 err = xe_guc_id_mgr_init(&guc->submission_state.idm, num_ids); in xe_guc_submit_init()
295 xa_init(&guc->submission_state.exec_queue_lookup); in xe_guc_submit_init()
297 init_waitqueue_head(&guc->submission_state.fini_wq); in xe_guc_submit_init()
308 lockdep_assert_held(&guc->submission_state.lock); in __release_guc_id()
311 xa_erase(&guc->submission_state.exec_queue_lookup, q->guc->id + i); in __release_guc_id()
313 xe_guc_id_mgr_release_locked(&guc->submission_state.idm, in __release_guc_id()
316 if (xa_empty(&guc->submission_state.exec_queue_lookup)) in __release_guc_id()
317 wake_up(&guc->submission_state.fini_wq); in __release_guc_id()
332 lockdep_assert_held(&guc->submission_state.lock); in alloc_guc_id()
334 ret = xe_guc_id_mgr_reserve_locked(&guc->submission_state.idm, in alloc_guc_id()
342 ret = xa_err(xa_store(&guc->submission_state.exec_queue_lookup, in alloc_guc_id()
358 mutex_lock(&guc->submission_state.lock); in release_guc_id()
360 mutex_unlock(&guc->submission_state.lock); in release_guc_id()
754 return atomic_read(&guc->submission_state.stopped); in guc_read_stopped()
836 mutex_lock(&guc->submission_state.lock); in xe_guc_submit_wedge()
837 xa_for_each(&guc->submission_state.exec_queue_lookup, index, q) in xe_guc_submit_wedge()
840 mutex_unlock(&guc->submission_state.lock); in xe_guc_submit_wedge()
1430 mutex_lock(&guc->submission_state.lock); in guc_exec_queue_init()
1441 mutex_unlock(&guc->submission_state.lock); in guc_exec_queue_init()
1450 mutex_unlock(&guc->submission_state.lock); in guc_exec_queue_init()
1710 ret = atomic_fetch_or(1, &guc->submission_state.stopped); in xe_guc_submit_reset_prepare()
1731 mutex_lock(&guc->submission_state.lock); in xe_guc_submit_stop()
1733 xa_for_each(&guc->submission_state.exec_queue_lookup, index, q) { in xe_guc_submit_stop()
1741 mutex_unlock(&guc->submission_state.lock); in xe_guc_submit_stop()
1775 mutex_lock(&guc->submission_state.lock); in xe_guc_submit_start()
1776 atomic_dec(&guc->submission_state.stopped); in xe_guc_submit_start()
1777 xa_for_each(&guc->submission_state.exec_queue_lookup, index, q) { in xe_guc_submit_start()
1784 mutex_unlock(&guc->submission_state.lock); in xe_guc_submit_start()
1802 q = xa_load(&guc->submission_state.exec_queue_lookup, guc_id); in g2h_exec_queue_lookup()
2260 mutex_lock(&guc->submission_state.lock); in xe_guc_submit_print()
2261 xa_for_each(&guc->submission_state.exec_queue_lookup, index, q) in xe_guc_submit_print()
2263 mutex_unlock(&guc->submission_state.lock); in xe_guc_submit_print()