Lines Matching refs:poll
281 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb()
284 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
285 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
287 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
312 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
324 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
326 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT); in dma_buf_poll()
336 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
341 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
359 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
364 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
588 .poll = dma_buf_poll,
726 init_waitqueue_head(&dmabuf->poll); in dma_buf_export()
727 dmabuf->cb_in.poll = dmabuf->cb_out.poll = &dmabuf->poll; in dma_buf_export()