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()
1724 void *sync_obj; in ttm_bo_wait() local
1727 if (likely(bo->sync_obj == NULL)) in ttm_bo_wait()
1730 while (bo->sync_obj) { in ttm_bo_wait()
1732 if (driver->sync_obj_signaled(bo->sync_obj)) { in ttm_bo_wait()
1733 void *tmp_obj = bo->sync_obj; in ttm_bo_wait()
1734 bo->sync_obj = NULL; in ttm_bo_wait()
1745 sync_obj = driver->sync_obj_ref(bo->sync_obj); in ttm_bo_wait()
1747 ret = driver->sync_obj_wait(sync_obj, in ttm_bo_wait()
1750 driver->sync_obj_unref(&sync_obj); in ttm_bo_wait()
1755 if (likely(bo->sync_obj == sync_obj)) { in ttm_bo_wait()
1756 void *tmp_obj = bo->sync_obj; in ttm_bo_wait()
1757 bo->sync_obj = NULL; in ttm_bo_wait()
1761 driver->sync_obj_unref(&sync_obj); in ttm_bo_wait()
1766 driver->sync_obj_unref(&sync_obj); in ttm_bo_wait()