Lines Matching refs:resv
162 if (dmabuf->resv == (struct dma_resv *)&dmabuf[1]) in dma_buf_release()
163 dma_resv_fini(dmabuf->resv); in dma_buf_release()
293 static bool dma_buf_poll_add_cb(struct dma_resv *resv, bool write, in dma_buf_poll_add_cb() argument
300 dma_resv_for_each_fence(&cursor, resv, dma_resv_usage_rw(write), in dma_buf_poll_add_cb()
315 struct dma_resv *resv; in dma_buf_poll() local
319 if (!dmabuf || !dmabuf->resv) in dma_buf_poll()
322 resv = dmabuf->resv; in dma_buf_poll()
330 dma_resv_lock(resv, NULL); in dma_buf_poll()
347 if (!dma_buf_poll_add_cb(resv, true, dcb)) in dma_buf_poll()
370 if (!dma_buf_poll_add_cb(resv, false, dcb)) in dma_buf_poll()
378 dma_resv_unlock(resv); in dma_buf_poll()
434 ret = dma_resv_get_singleton(dmabuf->resv, usage, &fence); in dma_buf_export_sync_file()
498 dma_resv_lock(dmabuf->resv, NULL); in dma_buf_import_sync_file()
500 ret = dma_resv_reserve_fences(dmabuf->resv, num_fences); in dma_buf_import_sync_file()
503 dma_resv_add_fence(dmabuf->resv, f, usage); in dma_buf_import_sync_file()
506 dma_resv_unlock(dmabuf->resv); in dma_buf_import_sync_file()
686 struct dma_resv *resv = exp_info->resv; in dma_buf_export() local
709 if (!exp_info->resv) in dma_buf_export()
731 if (!resv) { in dma_buf_export()
732 dmabuf->resv = (struct dma_resv *)&dmabuf[1]; in dma_buf_export()
733 dma_resv_init(dmabuf->resv); in dma_buf_export()
735 dmabuf->resv = resv; in dma_buf_export()
751 if (!resv) in dma_buf_export()
752 dma_resv_fini(dmabuf->resv); in dma_buf_export()
978 dma_resv_lock(dmabuf->resv, NULL); in dma_buf_dynamic_attach()
980 dma_resv_unlock(dmabuf->resv); in dma_buf_dynamic_attach()
1019 dma_resv_lock(dmabuf->resv, NULL); in dma_buf_detach()
1021 dma_resv_unlock(dmabuf->resv); in dma_buf_detach()
1051 dma_resv_assert_held(dmabuf->resv); in dma_buf_pin()
1074 dma_resv_assert_held(dmabuf->resv); in dma_buf_unpin()
1113 dma_resv_assert_held(attach->dmabuf->resv); in dma_buf_map_attachment()
1136 ret = dma_resv_wait_timeout(attach->dmabuf->resv, in dma_buf_map_attachment()
1195 dma_resv_lock(attach->dmabuf->resv, NULL); in dma_buf_map_attachment_unlocked()
1197 dma_resv_unlock(attach->dmabuf->resv); in dma_buf_map_attachment_unlocked()
1222 dma_resv_assert_held(attach->dmabuf->resv); in dma_buf_unmap_attachment()
1251 dma_resv_lock(attach->dmabuf->resv, NULL); in dma_buf_unmap_attachment_unlocked()
1253 dma_resv_unlock(attach->dmabuf->resv); in dma_buf_unmap_attachment_unlocked()
1269 dma_resv_assert_held(dmabuf->resv); in dma_buf_move_notify()
1370 struct dma_resv *resv = dmabuf->resv; in __dma_buf_begin_cpu_access() local
1374 ret = dma_resv_wait_timeout(resv, dma_resv_usage_rw(write), in __dma_buf_begin_cpu_access()
1409 might_lock(&dmabuf->resv->lock.base); in dma_buf_begin_cpu_access()
1444 might_lock(&dmabuf->resv->lock.base); in dma_buf_end_cpu_access()
1521 dma_resv_assert_held(dmabuf->resv); in dma_buf_vmap()
1567 dma_resv_lock(dmabuf->resv, NULL); in dma_buf_vmap_unlocked()
1569 dma_resv_unlock(dmabuf->resv); in dma_buf_vmap_unlocked()
1585 dma_resv_assert_held(dmabuf->resv); in dma_buf_vunmap()
1609 dma_resv_lock(dmabuf->resv, NULL); in dma_buf_vunmap_unlocked()
1611 dma_resv_unlock(dmabuf->resv); in dma_buf_vunmap_unlocked()
1635 ret = dma_resv_lock_interruptible(buf_obj->resv, NULL); in dma_buf_debug_show()
1650 dma_resv_describe(buf_obj->resv, s); in dma_buf_debug_show()
1659 dma_resv_unlock(buf_obj->resv); in dma_buf_debug_show()