Lines Matching refs:sync_obj

117 	MPASS(bo->sync_obj == NULL);  in ttm_bo_release_list()
553 void *sync_obj = NULL; in ttm_bo_cleanup_refs_or_queue() local
562 if (!ret && !bo->sync_obj) { in ttm_bo_cleanup_refs_or_queue()
573 if (bo->sync_obj) in ttm_bo_cleanup_refs_or_queue()
574 sync_obj = driver->sync_obj_ref(bo->sync_obj); in ttm_bo_cleanup_refs_or_queue()
586 if (sync_obj) { in ttm_bo_cleanup_refs_or_queue()
587 driver->sync_obj_flush(sync_obj); in ttm_bo_cleanup_refs_or_queue()
588 driver->sync_obj_unref(&sync_obj); in ttm_bo_cleanup_refs_or_queue()
620 void *sync_obj; in ttm_bo_cleanup_refs_and_unlock() local
627 sync_obj = driver->sync_obj_ref(bo->sync_obj); in ttm_bo_cleanup_refs_and_unlock()
634 ret = driver->sync_obj_wait(sync_obj, false, interruptible); in ttm_bo_cleanup_refs_and_unlock()
635 driver->sync_obj_unref(&sync_obj); in ttm_bo_cleanup_refs_and_unlock()
1722 void *sync_obj; in ttm_bo_wait() local
1725 if (likely(bo->sync_obj == NULL)) in ttm_bo_wait()
1728 while (bo->sync_obj) { in ttm_bo_wait()
1730 if (driver->sync_obj_signaled(bo->sync_obj)) { in ttm_bo_wait()
1731 void *tmp_obj = bo->sync_obj; in ttm_bo_wait()
1732 bo->sync_obj = NULL; in ttm_bo_wait()
1743 sync_obj = driver->sync_obj_ref(bo->sync_obj); in ttm_bo_wait()
1745 ret = driver->sync_obj_wait(sync_obj, in ttm_bo_wait()
1748 driver->sync_obj_unref(&sync_obj); in ttm_bo_wait()
1753 if (likely(bo->sync_obj == sync_obj)) { in ttm_bo_wait()
1754 void *tmp_obj = bo->sync_obj; in ttm_bo_wait()
1755 bo->sync_obj = NULL; in ttm_bo_wait()
1759 driver->sync_obj_unref(&sync_obj); in ttm_bo_wait()
1764 driver->sync_obj_unref(&sync_obj); in ttm_bo_wait()