Lines Matching refs:dcb
274 struct dma_buf_poll_cb_t *dcb = (struct dma_buf_poll_cb_t *)cb; in dma_buf_poll_cb() local
277 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
278 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
279 dcb->active = 0; in dma_buf_poll_cb()
280 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
320 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_excl; in dma_buf_poll() local
327 if (dcb->active) { in dma_buf_poll()
328 dcb->active |= pevents; in dma_buf_poll()
331 dcb->active = pevents; in dma_buf_poll()
338 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()
339 } else if (!dma_fence_add_callback(fence_excl, &dcb->cb, in dma_buf_poll()
349 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()
355 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_shared; in dma_buf_poll() local
360 if (dcb->active) in dma_buf_poll()
363 dcb->active = EPOLLOUT; in dma_buf_poll()
380 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()
383 if (!dma_fence_add_callback(fence, &dcb->cb, in dma_buf_poll()
394 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()