Lines Matching refs:dcb
151 struct dma_buf_poll_cb_t *dcb = (struct dma_buf_poll_cb_t *)cb; in dma_buf_poll_cb() local
154 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
155 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
156 dcb->active = 0; in dma_buf_poll_cb()
157 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
197 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_excl; in dma_buf_poll() local
204 if (dcb->active) { in dma_buf_poll()
205 dcb->active |= pevents; in dma_buf_poll()
208 dcb->active = pevents; in dma_buf_poll()
215 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()
216 } else if (!dma_fence_add_callback(fence_excl, &dcb->cb, in dma_buf_poll()
226 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()
232 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_shared; in dma_buf_poll() local
237 if (dcb->active) in dma_buf_poll()
240 dcb->active = EPOLLOUT; in dma_buf_poll()
257 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()
260 if (!dma_fence_add_callback(fence, &dcb->cb, in dma_buf_poll()
271 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll()