Lines Matching refs:buf_size_bytes
35 static unsigned long buf_size_bytes = DEFAULT_BUF_SIZE_BYTES; variable
164 printf("RX buffer %lu bytes\n", buf_size_bytes); in run_receiver()
191 data = malloc(buf_size_bytes); in run_receiver()
223 bytes_read = read(fds.fd, data, buf_size_bytes); in run_receiver()
270 printf("TX buffer %lu bytes\n", buf_size_bytes); in run_sender()
280 data = mmap(NULL, buf_size_bytes, PROT_READ | PROT_WRITE, in run_sender()
287 data = malloc(buf_size_bytes); in run_sender()
295 memset(data, 0, buf_size_bytes); in run_sender()
308 sent = send(fd, data, (rest_bytes > buf_size_bytes) ? in run_sender()
309 buf_size_bytes : rest_bytes, in run_sender()
350 munmap(data, buf_size_bytes); in run_sender()
466 buf_size_bytes = memparse(optarg); in main()