Lines Matching refs:rx_len
87 uint32_t rx_len; in main() local
148 rx_len = 0; in main()
160 rx_len = kAtrLength; in main()
161 printf("Filling card RX buf with fake ATR (%u)\n", rx_len); in main()
162 memcpy(rx_buf, kAtr, rx_len); in main()
163 printf("Sending back ATR of length %u\n", rx_len); in main()
168 if (!rx_len) in main()
171 rx_len = ese_transceive(&ese, tx_buf, tx_len, rx_buf, sizeof(rx_buf)); in main()
178 if (rx_len > 0) { in main()
180 printf("Read %d bytes from card\n", rx_len); in main()
182 for (i = 0; i < rx_len; ++i) in main()
188 network_rx_len = htons((uint16_t)rx_len); in main()
195 for (data_read = 0; data_read < rx_len;) { in main()
197 write(client_fd, rx_buf + data_read, rx_len - data_read); in main()