Lines Matching refs:rx_len
88 uint32_t rx_len; in main() local
149 rx_len = 0; in main()
161 rx_len = kAtrLength; in main()
162 printf("Filling card RX buf with fake ATR (%u)\n", rx_len); in main()
163 memcpy(rx_buf, kAtr, rx_len); in main()
164 printf("Sending back ATR of length %u\n", rx_len); in main()
169 if (!rx_len) in main()
172 rx_len = ese_transceive(&ese, tx_buf, tx_len, rx_buf, sizeof(rx_buf)); in main()
179 if (rx_len > 0) { in main()
181 printf("Read %d bytes from card\n", rx_len); in main()
183 for (i = 0; i < rx_len; ++i) in main()
189 network_rx_len = htons((uint16_t)rx_len); in main()
196 for (data_read = 0; data_read < rx_len;) { in main()
198 write(client_fd, rx_buf + data_read, rx_len - data_read); in main()