Lines Matching refs:tx_len
87 uint32_t tx_len, data_read; in main() local
117 tx_len = (uint32_t)ntohs(network_tx_len); in main()
118 printf("tx_len: %u\n", tx_len); in main()
119 if (tx_len == 0) { in main()
123 if (tx_len > sizeof(tx_buf)) { in main()
124 ALOGE("Client payload too large: %u", tx_len); in main()
127 for (data_read = 0; data_read < tx_len;) { in main()
128 printf("Reading payload: %u of %u remaining\n", data_read, tx_len); in main()
129 ssize_t bytes = read(client_fd, tx_buf + data_read, tx_len - data_read); in main()
138 if (tx_len) { in main()
140 printf("Sending %u bytes to card\n", tx_len); in main()
142 for (i = 0; i < tx_len; ++i) in main()
147 if (tx_len == 1) { /* Control request */ in main()
172 rx_len = ese_transceive(&ese, tx_buf, tx_len, rx_buf, sizeof(rx_buf)); in main()