Lines Matching refs:dcb
186 struct dma_buf_poll_cb_t *dcb = (struct dma_buf_poll_cb_t *)cb; in dma_buf_poll_cb() local
189 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
190 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
191 dcb->active = 0; in dma_buf_poll_cb()
192 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
232 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_excl; in dma_buf_poll() local
239 if (dcb->active) { in dma_buf_poll()
240 dcb->active |= pevents; in dma_buf_poll()
243 dcb->active = pevents; in dma_buf_poll()
250 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()
251 } else if (!dma_fence_add_callback(fence_excl, &dcb->cb, in dma_buf_poll()
261 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()
267 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_shared; in dma_buf_poll() local
272 if (dcb->active) in dma_buf_poll()
275 dcb->active = EPOLLOUT; in dma_buf_poll()
292 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()
295 if (!dma_fence_add_callback(fence, &dcb->cb, in dma_buf_poll()
306 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()