Lines Matching refs:rbuf
1076 static void relay_consume_bytes(struct rchan_buf *rbuf, int bytes_consumed) in relay_consume_bytes() argument
1078 rbuf->bytes_consumed += bytes_consumed; in relay_consume_bytes()
1080 if (rbuf->bytes_consumed >= rbuf->chan->subbuf_size) { in relay_consume_bytes()
1081 relay_subbufs_consumed(rbuf->chan, rbuf->cpu, 1); in relay_consume_bytes()
1082 rbuf->bytes_consumed %= rbuf->chan->subbuf_size; in relay_consume_bytes()
1089 struct rchan_buf *rbuf; in relay_pipe_buf_release() local
1091 rbuf = (struct rchan_buf *)page_private(buf->page); in relay_pipe_buf_release()
1092 relay_consume_bytes(rbuf, buf->private); in relay_pipe_buf_release()
1116 struct rchan_buf *rbuf = in->private_data; in subbuf_splice_actor() local
1117 unsigned int subbuf_size = rbuf->chan->subbuf_size; in subbuf_splice_actor()
1119 uint32_t alloc_size = (uint32_t) rbuf->chan->alloc_size; in subbuf_splice_actor()
1122 size_t padding = rbuf->padding[read_subbuf]; in subbuf_splice_actor()
1136 if (rbuf->subbufs_produced == rbuf->subbufs_consumed) in subbuf_splice_actor()
1147 subbuf_pages = rbuf->chan->alloc_size >> PAGE_SHIFT; in subbuf_splice_actor()
1162 spd.pages[spd.nr_pages] = rbuf->page_array[pidx]; in subbuf_splice_actor()