Lines Matching refs:bufs
306 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in pipe_read()
476 struct pipe_buffer *buf = &pipe->bufs[(head - 1) & mask]; in pipe_write()
529 buf = &pipe->bufs[head & mask]; in pipe_write()
629 count += pipe->bufs[tail & mask].len; in pipe_ioctl()
815 pipe->bufs = kcalloc(pipe_bufs, sizeof(struct pipe_buffer), in alloc_pipe_info()
818 if (pipe->bufs) { in alloc_pipe_info()
851 struct pipe_buffer *buf = pipe->bufs + i; in free_pipe_info()
861 kfree(pipe->bufs); in free_pipe_info()
1268 struct pipe_buffer *bufs; in pipe_resize_ring() local
1271 bufs = kcalloc(nr_slots, sizeof(*bufs), in pipe_resize_ring()
1273 if (unlikely(!bufs)) in pipe_resize_ring()
1284 kfree(bufs); in pipe_resize_ring()
1296 memcpy(bufs, pipe->bufs + t, in pipe_resize_ring()
1301 memcpy(bufs + tsize, pipe->bufs, in pipe_resize_ring()
1303 memcpy(bufs, pipe->bufs + t, in pipe_resize_ring()
1311 kfree(pipe->bufs); in pipe_resize_ring()
1312 pipe->bufs = bufs; in pipe_resize_ring()