Lines Matching refs:poll
200 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb()
203 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
204 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
206 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
230 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
242 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
244 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT); in dma_buf_poll()
254 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
259 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
277 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
282 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
405 .poll = dma_buf_poll,
538 init_waitqueue_head(&dmabuf->poll); in dma_buf_export()
539 dmabuf->cb_in.poll = dmabuf->cb_out.poll = &dmabuf->poll; in dma_buf_export()