Lines Matching refs:dcb
199 struct dma_buf_poll_cb_t *dcb = (struct dma_buf_poll_cb_t *)cb; in dma_buf_poll_cb() local
200 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb()
203 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
204 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
205 dcb->active = 0; in dma_buf_poll_cb()
206 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
213 struct dma_buf_poll_cb_t *dcb) in dma_buf_poll_add_cb() argument
221 r = dma_fence_add_callback(fence, &dcb->cb, dma_buf_poll_cb); in dma_buf_poll_add_cb()
251 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_out; in dma_buf_poll() local
255 if (dcb->active) in dma_buf_poll()
258 dcb->active = EPOLLOUT; in dma_buf_poll()
265 if (!dma_buf_poll_add_cb(resv, true, dcb)) in dma_buf_poll()
267 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()
274 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_in; in dma_buf_poll() local
278 if (dcb->active) in dma_buf_poll()
281 dcb->active = EPOLLIN; in dma_buf_poll()
288 if (!dma_buf_poll_add_cb(resv, false, dcb)) in dma_buf_poll()
290 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()