Lines Matching refs:bufs
286 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in pipe_read()
465 struct pipe_buffer *buf = &pipe->bufs[(head - 1) & mask]; in pipe_write()
527 buf = &pipe->bufs[head & mask]; in pipe_write()
627 count += pipe->bufs[tail & mask].len; in pipe_ioctl()
813 pipe->bufs = kcalloc(pipe_bufs, sizeof(struct pipe_buffer), in alloc_pipe_info()
816 if (pipe->bufs) { in alloc_pipe_info()
848 struct pipe_buffer *buf = pipe->bufs + i; in free_pipe_info()
858 kfree(pipe->bufs); in free_pipe_info()
1264 struct pipe_buffer *bufs; in pipe_resize_ring() local
1267 bufs = kcalloc(nr_slots, sizeof(*bufs), in pipe_resize_ring()
1269 if (unlikely(!bufs)) in pipe_resize_ring()
1280 kfree(bufs); in pipe_resize_ring()
1292 memcpy(bufs, pipe->bufs + t, in pipe_resize_ring()
1297 memcpy(bufs + tsize, pipe->bufs, in pipe_resize_ring()
1299 memcpy(bufs, pipe->bufs + t, in pipe_resize_ring()
1307 kfree(pipe->bufs); in pipe_resize_ring()
1308 pipe->bufs = bufs; in pipe_resize_ring()