Lines Matching refs:bytes
20 int bytes; in main() local
31 bytes = strtol(av[1], &ptr, 0); in main()
33 bytes *= 1024; in main()
35 bytes *= 1024 * 1024; in main()
40 if (bytes <= 0) { in main()
41 fprintf(stderr, "I can't handle %d sized buffers\n", bytes); in main()
49 buf = mmap(NULL, bytes * 2 + PAGE_SIZE, in main()
56 bzero(buf, bytes * 2 + PAGE_SIZE); in main()
71 buf += (bytes + PAGE_MASK) & ~PAGE_MASK; in main()
74 n = read(fds[1], buf + i, bytes - i); in main()
77 if (n + i == bytes) in main()
100 if (write(fds[0], buf, bytes) != bytes) { in main()
113 if (write(fds[0], buf, bytes) != bytes) { in main()
121 stop_timing(loops, "full duplex pipe / %dK bufs:", bytes / 1024); in main()
124 bytes, in main()
125 (double)loops * bytes * 1000000.0 / in main()