Lines Matching refs:buf
59 struct pipe_buffer *buf) in watch_queue_pipe_buf_release() argument
61 struct watch_queue *wqueue = (struct watch_queue *)buf->private; in watch_queue_pipe_buf_release()
69 bit = buf->offset + buf->len; in watch_queue_pipe_buf_release()
74 page = buf->page; in watch_queue_pipe_buf_release()
78 generic_pipe_buf_release(pipe, buf); in watch_queue_pipe_buf_release()
103 struct pipe_buffer *buf; in post_one_notification() local
131 buf = &pipe->bufs[head & mask]; in post_one_notification()
132 buf->page = page; in post_one_notification()
133 buf->private = (unsigned long)wqueue; in post_one_notification()
134 buf->ops = &watch_queue_pipe_buf_ops; in post_one_notification()
135 buf->offset = offset; in post_one_notification()
136 buf->len = len; in post_one_notification()
137 buf->flags = PIPE_BUF_FLAG_WHOLE; in post_one_notification()
154 buf = &pipe->bufs[(head - 1) & mask]; in post_one_notification()
155 buf->flags |= PIPE_BUF_FLAG_LOSS; in post_one_notification()