Lines Matching refs:total
21 size_t size, total; in nxt_sendbuf_mem_coalesce0() local
25 total = sb->size; in nxt_sendbuf_mem_coalesce0()
29 for (b = sb->buf; b != NULL && total < sb->limit; b = b->next) { in nxt_sendbuf_mem_coalesce0()
43 if (total + size > sb->limit) { in nxt_sendbuf_mem_coalesce0()
44 size = sb->limit - total; in nxt_sendbuf_mem_coalesce0()
67 total += size; in nxt_sendbuf_mem_coalesce0()
91 size_t size, total; in nxt_sendbuf_mem_coalesce() local
95 total = sb->size; in nxt_sendbuf_mem_coalesce()
99 for (b = sb->buf; b != NULL && total < sb->limit; b = b->next) { in nxt_sendbuf_mem_coalesce()
113 if (total + size > sb->limit) { in nxt_sendbuf_mem_coalesce()
114 size = sb->limit - total; in nxt_sendbuf_mem_coalesce()
141 total += size; in nxt_sendbuf_mem_coalesce()
156 sb->size = total; in nxt_sendbuf_mem_coalesce()
166 size_t file_start, total; in nxt_sendbuf_file_coalesce() local
174 total = sb->size; in nxt_sendbuf_file_coalesce()
182 if (total + size >= sb->limit) { in nxt_sendbuf_file_coalesce()
183 total = sb->limit; in nxt_sendbuf_file_coalesce()
187 total += size; in nxt_sendbuf_file_coalesce()
204 sb->size = total; in nxt_sendbuf_file_coalesce()
206 return total - file_start; in nxt_sendbuf_file_coalesce()