Lines Matching refs:bufs
285 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in pipe_read()
456 struct pipe_buffer *buf = &pipe->bufs[(head - 1) & mask]; in pipe_write()
488 struct pipe_buffer *buf = &pipe->bufs[head & mask]; in pipe_write()
518 buf = &pipe->bufs[head & mask]; in pipe_write()
618 count += pipe->bufs[tail & mask].len; in pipe_ioctl()
804 pipe->bufs = kcalloc(pipe_bufs, sizeof(struct pipe_buffer), in alloc_pipe_info()
807 if (pipe->bufs) { in alloc_pipe_info()
839 struct pipe_buffer *buf = pipe->bufs + i; in free_pipe_info()
849 kfree(pipe->bufs); in free_pipe_info()
1252 struct pipe_buffer *bufs; in pipe_resize_ring() local
1255 bufs = kcalloc(nr_slots, sizeof(*bufs), in pipe_resize_ring()
1257 if (unlikely(!bufs)) in pipe_resize_ring()
1268 kfree(bufs); in pipe_resize_ring()
1280 memcpy(bufs, pipe->bufs + t, in pipe_resize_ring()
1285 memcpy(bufs + tsize, pipe->bufs, in pipe_resize_ring()
1287 memcpy(bufs, pipe->bufs + t, in pipe_resize_ring()
1295 kfree(pipe->bufs); in pipe_resize_ring()
1296 pipe->bufs = bufs; in pipe_resize_ring()