Lines Matching refs:poll
206 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb()
209 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
210 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
212 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
237 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
249 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
251 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT); in dma_buf_poll()
261 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
266 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
284 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
289 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
513 .poll = dma_buf_poll,
655 init_waitqueue_head(&dmabuf->poll); in dma_buf_export()
656 dmabuf->cb_in.poll = dmabuf->cb_out.poll = &dmabuf->poll; in dma_buf_export()