Lines Matching refs:poll
205 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb()
208 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
209 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
211 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
236 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
248 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
250 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT); in dma_buf_poll()
260 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
265 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
283 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
288 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
512 .poll = dma_buf_poll,
653 init_waitqueue_head(&dmabuf->poll); in dma_buf_export()
654 dmabuf->cb_in.poll = dmabuf->cb_out.poll = &dmabuf->poll; in dma_buf_export()