Home
last modified time | relevance | path

Searched refs:rx_len (Results 1 – 10 of 10) sorted by relevance

/external/libese/apps/weaver/
Dweaver.c79 int rx_len; in ese_weaver_session_open() local
89 rx_len = ese_transceive(ese, kManageChannelOpen, sizeof(kManageChannelOpen), in ese_weaver_session_open()
96 if (rx_len < 0) { in ese_weaver_session_open()
97 ALOGE("transceive error: rx_len: %d", rx_len); in ese_weaver_session_open()
100 if (rx_len < 2) { in ese_weaver_session_open()
105 ret = check_apdu_status(&rx_buf[rx_len - 2]); in ese_weaver_session_open()
108 rx_buf[rx_len - 2], rx_buf[rx_len - 1]); in ese_weaver_session_open()
111 if (rx_len < 3) { in ese_weaver_session_open()
116 session->channel_id = rx_buf[rx_len - 3]; in ese_weaver_session_open()
126 rx_len = ese_transceive_sg(ese, tx, 2, &rx, 1); in ese_weaver_session_open()
[all …]
/external/libese/tools/ese_relay/
Dese_relay.c87 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()
[all …]
/external/u-boot/drivers/net/
Dsunxi_emac.c169 s16 rx_len; member
412 int rx_len; in _sunxi_emac_eth_recv() local
452 rx_len = rxhdr.rx_len; in _sunxi_emac_eth_recv()
456 if (rx_len < 0x40) { in _sunxi_emac_eth_recv()
472 if (rx_len > EMAC_RX_BUFSIZE) { in _sunxi_emac_eth_recv()
473 printf("Received packet is too big (len=%d)\n", rx_len); in _sunxi_emac_eth_recv()
476 emac_inblk_32bit((void *)&regs->rx_io_data, packet, rx_len); in _sunxi_emac_eth_recv()
477 return rx_len; in _sunxi_emac_eth_recv()
543 int rx_len; in sunxi_emac_eth_recv() local
545 rx_len = _sunxi_emac_eth_recv(priv, priv->rx_buf); in sunxi_emac_eth_recv()
[all …]
/external/libese/libese-hw/nxp/pn80t/
Dcommon.c250 uint32_t rx_len) { in nxp_pn80t_handle_interface_call() argument
277 return ese_sg_from_buf(rx_buf, rx_len, 0, sizeof(ok), ok); in nxp_pn80t_handle_interface_call()
292 return ese_sg_from_buf(rx_buf, rx_len, 0, sizeof(ok), ok); in nxp_pn80t_handle_interface_call()
302 return ese_sg_from_buf(rx_buf, rx_len, 0, sizeof(reply), reply); in nxp_pn80t_handle_interface_call()
309 struct EseSgBuffer *rx_buf, uint32_t rx_len) { in nxp_pn80t_transceive() argument
312 nxp_pn80t_handle_interface_call(ese, tx_buf, tx_len, rx_buf, rx_len); in nxp_pn80t_transceive()
316 return teq1_transceive(ese, &kTeq1Options, tx_buf, tx_len, rx_buf, rx_len); in nxp_pn80t_transceive()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_winpcap.c60 size_t rx_len; member
114 l2->rx_len = hdr->caplen; in l2_packet_receive_cb()
117 l2->rx_len = hdr->caplen - sizeof(*ethhdr); in l2_packet_receive_cb()
155 l2->rx_len); in l2_packet_rx_event()
Dl2_packet_ndis.c282 size_t rx_len; in l2_packet_callback() local
290 rx_len = l2->rx_written; in l2_packet_callback()
293 rx_len = l2->rx_written - sizeof(*ethhdr); in l2_packet_callback()
297 l2->rx_callback(l2->rx_callback_ctx, rx_src, rx_buf, rx_len); in l2_packet_callback()
/external/u-boot/drivers/spi/
Dzynq_spi.c216 u32 tx_len = len, rx_len = len, tx_tvl; in zynq_spi_xfer() local
233 while (rx_len > 0) { in zynq_spi_xfer()
259 while ((status & ZYNQ_SPI_IXR_RXNEMPTY_MASK) && rx_len) { in zynq_spi_xfer()
264 rx_len--; in zynq_spi_xfer()
/external/libpcap/
Dpcap-dos.c238 int rx_len = 0; in pcap_read_one() local
269 rx_len = (*dev->peek_rx_buf) (&p->buffer); in pcap_read_one()
273 rx_len = (*dev->copy_rx_buf) (p->buffer, p->snapshot); in pcap_read_one()
276 if (rx_len > 0) /* got a packet */ in pcap_read_one()
282 pcap.caplen = min (rx_len, p->snapshot); in pcap_read_one()
283 pcap.len = rx_len; in pcap_read_one()
341 if (rx_len < 0) /* receive error */ in pcap_read_one()
/external/libese/libese-hw/
Dese_hw_echo.c157 struct EseSgBuffer *rx_buf, uint32_t rx_len) { in echo_transceive() argument
158 return teq1_transceive(ese, &kTeq1Options, tx_buf, tx_len, rx_buf, rx_len); in echo_transceive()
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/
Dcommon.h37 struct EseSgBuffer *rx_buf, uint32_t rx_len);