Lines Matching refs:tx_len
86 uint32_t tx_len, data_read; in main() local
116 tx_len = (uint32_t)ntohs(network_tx_len); in main()
117 printf("tx_len: %u\n", tx_len); in main()
118 if (tx_len == 0) { in main()
122 if (tx_len > sizeof(tx_buf)) { in main()
123 ALOGE("Client payload too large: %u", tx_len); in main()
126 for (data_read = 0; data_read < tx_len;) { in main()
127 printf("Reading payload: %u of %u remaining\n", data_read, tx_len); in main()
128 ssize_t bytes = read(client_fd, tx_buf + data_read, tx_len - data_read); in main()
137 if (tx_len) { in main()
139 printf("Sending %u bytes to card\n", tx_len); in main()
141 for (i = 0; i < tx_len; ++i) in main()
146 if (tx_len == 1) { /* Control request */ in main()
171 rx_len = ese_transceive(&ese, tx_buf, tx_len, rx_buf, sizeof(rx_buf)); in main()