• Home
  • Raw
  • Download

Lines Matching refs:resv

104 	if (dmabuf->resv == (struct dma_resv *)&dmabuf[1])  in dma_buf_release()
105 dma_resv_fini(dmabuf->resv); in dma_buf_release()
237 static bool dma_buf_poll_shared(struct dma_resv *resv, in dma_buf_poll_shared() argument
240 struct dma_resv_list *fobj = dma_resv_shared_list(resv); in dma_buf_poll_shared()
249 dma_resv_held(resv)); in dma_buf_poll_shared()
260 static bool dma_buf_poll_excl(struct dma_resv *resv, in dma_buf_poll_excl() argument
263 struct dma_fence *fence = dma_resv_excl_fence(resv); in dma_buf_poll_excl()
281 struct dma_resv *resv; in dma_buf_poll() local
285 if (!dmabuf || !dmabuf->resv) in dma_buf_poll()
288 resv = dmabuf->resv; in dma_buf_poll()
296 dma_resv_lock(resv, NULL); in dma_buf_poll()
313 if (!dma_buf_poll_shared(resv, dcb) && in dma_buf_poll()
314 !dma_buf_poll_excl(resv, dcb)) in dma_buf_poll()
338 if (!dma_buf_poll_excl(resv, dcb)) in dma_buf_poll()
346 dma_resv_unlock(resv); in dma_buf_poll()
571 struct dma_resv *resv = exp_info->resv; in dma_buf_export() local
576 if (!exp_info->resv) in dma_buf_export()
616 if (!resv) { in dma_buf_export()
617 resv = (struct dma_resv *)&dmabuf[1]; in dma_buf_export()
618 dma_resv_init(resv); in dma_buf_export()
620 dmabuf->resv = resv; in dma_buf_export()
809 dma_resv_lock(dmabuf->resv, NULL); in dma_buf_dynamic_attach()
811 dma_resv_unlock(dmabuf->resv); in dma_buf_dynamic_attach()
822 dma_resv_lock(attach->dmabuf->resv, NULL); in dma_buf_dynamic_attach()
836 dma_resv_unlock(attach->dmabuf->resv); in dma_buf_dynamic_attach()
853 dma_resv_unlock(attach->dmabuf->resv); in dma_buf_dynamic_attach()
901 dma_resv_lock(attach->dmabuf->resv, NULL); in dma_buf_detach()
907 dma_resv_unlock(attach->dmabuf->resv); in dma_buf_detach()
911 dma_resv_lock(dmabuf->resv, NULL); in dma_buf_detach()
913 dma_resv_unlock(dmabuf->resv); in dma_buf_detach()
942 dma_resv_assert_held(dmabuf->resv); in dma_buf_pin()
965 dma_resv_assert_held(dmabuf->resv); in dma_buf_unpin()
1005 dma_resv_assert_held(attach->dmabuf->resv); in dma_buf_map_attachment()
1020 dma_resv_assert_held(attach->dmabuf->resv); in dma_buf_map_attachment()
1082 dma_resv_assert_held(attach->dmabuf->resv); in dma_buf_unmap_attachment()
1088 dma_resv_assert_held(attach->dmabuf->resv); in dma_buf_unmap_attachment()
1110 dma_resv_assert_held(dmabuf->resv); in dma_buf_move_notify()
1208 struct dma_resv *resv = dmabuf->resv; in __dma_buf_begin_cpu_access() local
1212 ret = dma_resv_wait_timeout(resv, write, true, MAX_SCHEDULE_TIMEOUT); in __dma_buf_begin_cpu_access()
1246 might_lock(&dmabuf->resv->lock.base); in dma_buf_begin_cpu_access()
1305 might_lock(&dmabuf->resv->lock.base); in dma_buf_end_cpu_access()
1486 ret = dma_resv_lock_interruptible(buf_obj->resv, NULL); in dma_buf_debug_show()
1500 robj = buf_obj->resv; in dma_buf_debug_show()
1527 dma_resv_unlock(buf_obj->resv); in dma_buf_debug_show()