Lines Matching refs:total
202 static void wait_for_ack(int fd, int timeout, size_t total) in wait_for_ack() argument
218 if ((size_t)queued > total) in wait_for_ack()
219 xerror("TIOCOUTQ %u, but only %zu expected\n", queued, total); in wait_for_ack()
236 size_t len, i, total, sent; in connect_one_server() local
271 total = rand() % (16 * 1024 * 1024); in connect_one_server()
272 total += (1 * 1024 * 1024); in connect_one_server()
273 sent = total; in connect_one_server()
275 ret = write(unixfd, &total, sizeof(total)); in connect_one_server()
276 assert(ret == (ssize_t)sizeof(total)); in connect_one_server()
280 while (total > 0) { in connect_one_server()
281 if (total > sizeof(buf)) in connect_one_server()
284 len = total; in connect_one_server()
289 total -= ret; in connect_one_server()