Lines Matching refs:buf
58 struct pipe_buffer *buf) in watch_queue_pipe_buf_release() argument
60 struct watch_queue *wqueue = (struct watch_queue *)buf->private; in watch_queue_pipe_buf_release()
68 bit = buf->offset + buf->len; in watch_queue_pipe_buf_release()
73 page = buf->page; in watch_queue_pipe_buf_release()
77 generic_pipe_buf_release(pipe, buf); in watch_queue_pipe_buf_release()
102 struct pipe_buffer *buf; in post_one_notification() local
126 buf = pipe_buf(pipe, head); in post_one_notification()
127 buf->page = page; in post_one_notification()
128 buf->private = (unsigned long)wqueue; in post_one_notification()
129 buf->ops = &watch_queue_pipe_buf_ops; in post_one_notification()
130 buf->offset = offset; in post_one_notification()
131 buf->len = len; in post_one_notification()
132 buf->flags = PIPE_BUF_FLAG_WHOLE; in post_one_notification()
149 buf = pipe_buf(pipe, head - 1); in post_one_notification()
150 buf->flags |= PIPE_BUF_FLAG_LOSS; in post_one_notification()