Lines Matching refs:rx
118 static void transfer(int fd, uint8_t const *tx, uint8_t const *rx, size_t len) in transfer() argument
124 .rx_buf = (unsigned long)rx, in transfer()
162 ret = write(out_fd, rx, len); in transfer()
170 hex_dump(rx, len, 32, "RX"); in transfer()
337 uint8_t *rx; in transfer_escaped_string() local
343 rx = malloc(size); in transfer_escaped_string()
344 if (!rx) in transfer_escaped_string()
348 transfer(fd, tx, rx, size); in transfer_escaped_string()
349 free(rx); in transfer_escaped_string()
359 uint8_t *rx; in transfer_file() local
372 rx = malloc(sb.st_size); in transfer_file()
373 if (!rx) in transfer_file()
380 transfer(fd, tx, rx, sb.st_size); in transfer_file()
381 free(rx); in transfer_file()
406 uint8_t *rx; in transfer_buf() local
415 rx = malloc(len); in transfer_buf()
416 if (!rx) in transfer_buf()
419 transfer(fd, tx, rx, len); in transfer_buf()
425 if (memcmp(tx, rx, len)) { in transfer_buf()
428 hex_dump(rx, len, 32, "RX"); in transfer_buf()
433 free(rx); in transfer_buf()