Lines Matching refs:max_usage
215 while (!pipe_full(head, tail, pipe->max_usage)) {
255 } else if (pipe_full(head, tail, pipe->max_usage)) {
273 unsigned int max_usage = READ_ONCE(pipe->max_usage);
275 spd->nr_pages_max = max_usage;
276 if (max_usage <= PIPE_DEF_BUFFERS)
279 spd->pages = kmalloc_array(max_usage, sizeof(struct page *), GFP_KERNEL);
280 spd->partial = kmalloc_array(max_usage, sizeof(struct partial_page),
334 npages = max_t(ssize_t, pipe->max_usage - used, 0);
675 int nbufs = pipe->max_usage;
696 if (unlikely(nbufs < pipe->max_usage)) {
698 nbufs = pipe->max_usage;
975 p_space = pipe->max_usage - pipe_occupancy(pipe->head, pipe->tail);
1209 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage))
1643 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage))
1649 while (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) {
1727 pipe_full(o_head, o_tail, opipe->max_usage)) {
1848 pipe_full(o_head, o_tail, opipe->max_usage))