Lines Matching refs:poll
127 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
128 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
130 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
133 static unsigned int dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
148 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
150 events = poll_requested_events(poll) & (POLLIN | POLLOUT); in dma_buf_poll()
176 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
182 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
209 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
214 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
256 .poll = dma_buf_poll,
313 init_waitqueue_head(&dmabuf->poll); in dma_buf_export()
314 dmabuf->cb_excl.poll = dmabuf->cb_shared.poll = &dmabuf->poll; in dma_buf_export()