Lines Matching defs:dcb
305 struct dma_buf_poll_cb_t *dcb = (struct dma_buf_poll_cb_t *)cb;
306 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll);
309 spin_lock_irqsave(&dcb->poll->lock, flags);
310 wake_up_locked_poll(dcb->poll, dcb->active);
311 dcb->active = 0;
312 spin_unlock_irqrestore(&dcb->poll->lock, flags);
319 struct dma_buf_poll_cb_t *dcb)
328 r = dma_fence_add_callback(fence, &dcb->cb, dma_buf_poll_cb);
358 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_out;
362 if (dcb->active)
365 dcb->active = EPOLLOUT;
372 if (!dma_buf_poll_add_cb(resv, true, dcb))
374 dma_buf_poll_cb(NULL, &dcb->cb);
381 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_in;
385 if (dcb->active)
388 dcb->active = EPOLLIN;
395 if (!dma_buf_poll_add_cb(resv, false, dcb))
397 dma_buf_poll_cb(NULL, &dcb->cb);