Lines Matching refs:poll
129 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
130 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
132 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
135 static unsigned int dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
150 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
152 events = poll_requested_events(poll) & (POLLIN | POLLOUT); in dma_buf_poll()
178 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
184 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
211 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
216 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
258 .poll = dma_buf_poll,
322 init_waitqueue_head(&dmabuf->poll); in dma_buf_export()
323 dmabuf->cb_excl.poll = dmabuf->cb_shared.poll = &dmabuf->poll; in dma_buf_export()