Lines Matching refs:sync_obj

119 	MPASS(bo->sync_obj == NULL);  in ttm_bo_release_list()
555 void *sync_obj = NULL; in ttm_bo_cleanup_refs_or_queue() local
564 if (!ret && !bo->sync_obj) { in ttm_bo_cleanup_refs_or_queue()
575 if (bo->sync_obj) in ttm_bo_cleanup_refs_or_queue()
576 sync_obj = driver->sync_obj_ref(bo->sync_obj); in ttm_bo_cleanup_refs_or_queue()
588 if (sync_obj) { in ttm_bo_cleanup_refs_or_queue()
589 driver->sync_obj_flush(sync_obj); in ttm_bo_cleanup_refs_or_queue()
590 driver->sync_obj_unref(&sync_obj); in ttm_bo_cleanup_refs_or_queue()
622 void *sync_obj; in ttm_bo_cleanup_refs_and_unlock() local
629 sync_obj = driver->sync_obj_ref(bo->sync_obj); in ttm_bo_cleanup_refs_and_unlock()
636 ret = driver->sync_obj_wait(sync_obj, false, interruptible); in ttm_bo_cleanup_refs_and_unlock()
637 driver->sync_obj_unref(&sync_obj); in ttm_bo_cleanup_refs_and_unlock()
1725 void *sync_obj; in ttm_bo_wait() local
1728 if (likely(bo->sync_obj == NULL)) in ttm_bo_wait()
1731 while (bo->sync_obj) { in ttm_bo_wait()
1733 if (driver->sync_obj_signaled(bo->sync_obj)) { in ttm_bo_wait()
1734 void *tmp_obj = bo->sync_obj; in ttm_bo_wait()
1735 bo->sync_obj = NULL; in ttm_bo_wait()
1746 sync_obj = driver->sync_obj_ref(bo->sync_obj); in ttm_bo_wait()
1748 ret = driver->sync_obj_wait(sync_obj, in ttm_bo_wait()
1751 driver->sync_obj_unref(&sync_obj); in ttm_bo_wait()
1756 if (likely(bo->sync_obj == sync_obj)) { in ttm_bo_wait()
1757 void *tmp_obj = bo->sync_obj; in ttm_bo_wait()
1758 bo->sync_obj = NULL; in ttm_bo_wait()
1762 driver->sync_obj_unref(&sync_obj); in ttm_bo_wait()
1767 driver->sync_obj_unref(&sync_obj); in ttm_bo_wait()