Lines Matching refs:poll
225 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb()
228 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
229 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
231 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
278 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
290 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
292 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT); in dma_buf_poll()
302 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
307 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
327 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
332 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
481 .poll = dma_buf_poll,
623 init_waitqueue_head(&dmabuf->poll); in dma_buf_export()
624 dmabuf->cb_in.poll = dmabuf->cb_out.poll = &dmabuf->poll; in dma_buf_export()