Home
last modified time | relevance | path

Searched refs:rx_buf (Results 1 – 25 of 30) sorted by relevance

12

/external/libese/apps/weaver/
Dweaver.c78 uint8_t rx_buf[32]; in ese_weaver_session_open() local
90 rx_buf, sizeof(rx_buf)); 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()
116 session->channel_id = rx_buf[rx_len - 3]; in ese_weaver_session_open()
124 rx.base = &rx_buf[0]; in ese_weaver_session_open()
125 rx.len = sizeof(rx_buf); in ese_weaver_session_open()
135 ret = check_apdu_status(&rx_buf[rx_len - 2]); in ese_weaver_session_open()
137 ALOGE("SELECT failed with error code: %x %x", rx_buf[rx_len - 2], in ese_weaver_session_open()
138 rx_buf[rx_len - 1]); in ese_weaver_session_open()
[all …]
/external/libese/apps/boot/
Dboot.c70 uint8_t rx_buf[32]; in ese_boot_session_open() local
82 rx_buf, sizeof(rx_buf)); in ese_boot_session_open()
97 ret = check_apdu_status(&rx_buf[rx_len - 2]); in ese_boot_session_open()
100 rx_buf[rx_len - 2], rx_buf[rx_len - 1]); in ese_boot_session_open()
108 session->channel_id = rx_buf[rx_len - 3]; in ese_boot_session_open()
116 rx.base = &rx_buf[0]; in ese_boot_session_open()
117 rx.len = sizeof(rx_buf); in ese_boot_session_open()
127 ret = check_apdu_status(&rx_buf[rx_len - 2]); in ese_boot_session_open()
129 ALOGE("SELECT failed with error code: %x %x", rx_buf[rx_len - 2], in ese_boot_session_open()
130 rx_buf[rx_len - 1]); in ese_boot_session_open()
[all …]
/external/u-boot/drivers/spi/
Dzynq_qspi.c91 void *rx_buf; member
183 data, (unsigned)(priv->rx_buf), size); in zynq_qspi_read_data()
185 if (priv->rx_buf) { in zynq_qspi_read_data()
188 *((u8 *)priv->rx_buf) = data; in zynq_qspi_read_data()
189 priv->rx_buf += 1; in zynq_qspi_read_data()
192 *((u16 *)priv->rx_buf) = data; in zynq_qspi_read_data()
193 priv->rx_buf += 2; in zynq_qspi_read_data()
196 *((u16 *)priv->rx_buf) = data; in zynq_qspi_read_data()
197 priv->rx_buf += 2; in zynq_qspi_read_data()
199 *((u8 *)priv->rx_buf) = byte3; in zynq_qspi_read_data()
[all …]
Dzynq_spi.c218 u8 *rx_buf = din, buf; in zynq_spi_xfer() local
261 if (rx_buf) in zynq_spi_xfer()
262 *rx_buf++ = buf; in zynq_spi_xfer()
Dpic32_spi.c234 const void *tx_buf, void *rx_buf, in pic32_spi_xfer() argument
250 tx_buf, rx_buf, len); in pic32_spi_xfer()
258 priv->rx = rx_buf; in pic32_spi_xfer()
/external/libese/libese-hw/nxp/pn80t/
Dcommon.c200 uint8_t rx_buf[32]; in nxp_pn80t_send_cooldown() local
202 ese->ops->hw_receive(ese, rx_buf, sizeof(rx_buf), 1); in nxp_pn80t_send_cooldown()
211 if (bytes_read >= 0x8 && rx_buf[0] == 0xe5 && rx_buf[1] == 0x12) { in nxp_pn80t_send_cooldown()
212 uint8_t *tag_ptr = &rx_buf[2]; in nxp_pn80t_send_cooldown()
213 while (tag_ptr < (rx_buf + bytes_read)) { in nxp_pn80t_send_cooldown()
249 struct EseSgBuffer *rx_buf, 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
[all …]
Dlinux_spidev.c183 .rx_buf = 0, in spidev_transmit()
213 .rx_buf = (unsigned long)buf, in spidev_receive()
/external/libese/tools/ese_relay/
Dese_relay.c91 uint8_t rx_buf[4096]; in main() local
162 memcpy(rx_buf, kAtr, rx_len); in main()
171 rx_len = ese_transceive(&ese, tx_buf, tx_len, rx_buf, sizeof(rx_buf)); in main()
183 printf("%.2X ", rx_buf[i]); in main()
197 write(client_fd, rx_buf + data_read, rx_len - data_read); in main()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_ndis.c79 u8 rx_buf[1514]; member
165 if (!ReadFile(driver_ndis_get_ndisuio_handle(), l2->rx_buf, in l2_packet_rx_thread_try_read()
166 sizeof(l2->rx_buf), &l2->rx_written, NULL)) { in l2_packet_rx_thread_try_read()
254 if (!ReadFile(driver_ndis_get_ndisuio_handle(), l2->rx_buf, in l2_ndisuio_start_read()
255 sizeof(l2->rx_buf), &l2->rx_written, &l2->rx_overlapped)) in l2_ndisuio_start_read()
281 const u8 *rx_buf, *rx_src; in l2_packet_callback() local
283 struct l2_ethhdr *ethhdr = (struct l2_ethhdr *) l2->rx_buf; in l2_packet_callback()
289 rx_buf = (u8 *) ethhdr; in l2_packet_callback()
292 rx_buf = (u8 *) (ethhdr + 1); in l2_packet_callback()
297 l2->rx_callback(l2->rx_callback_ctx, rx_src, rx_buf, rx_len); in l2_packet_callback()
Dl2_packet_winpcap.c59 u8 *rx_buf, *rx_src; member
113 l2->rx_buf = (u8 *) ethhdr; in l2_packet_receive_cb()
116 l2->rx_buf = (u8 *) (ethhdr + 1); in l2_packet_receive_cb()
154 l2->rx_callback(l2->rx_callback_ctx, l2->rx_src, l2->rx_buf, in l2_packet_rx_event()
/external/u-boot/drivers/net/
Daltera_tse.c191 *packetp = priv->rx_buf; in altera_tse_recv_sgdma()
209 priv->rx_buf, /* write addr */ in altera_tse_free_pkt_sgdma()
345 *packetp = priv->rx_buf; in altera_tse_recv_msgdma()
358 u32 rx_buf = virt_to_phys(priv->rx_buf); in altera_tse_free_pkt_msgdma() local
362 writel(rx_buf, &desc->write_addr_lo); in altera_tse_free_pkt_msgdma()
498 unsigned long rx_buf = (unsigned long)priv->rx_buf; in altera_tse_free_pkt() local
500 invalidate_dcache_range(rx_buf, rx_buf + PKTSIZE_ALIGN); in altera_tse_free_pkt()
522 altera_tse_free_pkt(dev, priv->rx_buf, PKTSIZE_ALIGN); in altera_tse_start()
655 priv->rx_buf = malloc_cache_aligned(PKTSIZE_ALIGN); in altera_tse_probe()
656 if (!priv->rx_buf) in altera_tse_probe()
Dbcm-sf2-eth-gmac.c151 bufp = dma->rx_buf + i * RX_BUF_SIZE_ALIGNED; in dma_rx_dump()
224 memset(dma->rx_buf, 0, RX_BUF_NUM * RX_BUF_SIZE_ALIGNED); in dma_rx_init()
229 bufp = dma->rx_buf + i * RX_BUF_SIZE_ALIGNED; in dma_rx_init()
244 bufp = dma->rx_buf; in dma_rx_init()
303 free(dma->rx_buf); in dma_deinit()
304 dma->rx_buf = NULL; in dma_deinit()
433 bufp = dma->rx_buf + index * RX_BUF_SIZE_ALIGNED; in gmac_check_rx_done()
945 dma->rx_buf = (uint8_t *)tmp; in gmac_add()
947 dma->rx_buf, RX_BUF_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()
Dpcnet.c82 unsigned char (*rx_buf)[RX_RING_SIZE][PKT_BUF_SZ + 4]; member
346 sizeof(*lp->rx_buf)); in pcnet_init()
347 flush_dcache_range(addr, addr + sizeof(*lp->rx_buf)); in pcnet_init()
348 lp->rx_buf = (void *)addr; in pcnet_init()
362 addr = pcnet_virt_to_mem(dev, (*lp->rx_buf)[i]); in pcnet_init()
519 buf = (*lp->rx_buf)[lp->cur_rx]; in pcnet_recv()
Dsunxi_emac.c164 uchar rx_buf[EMAC_RX_BUFSIZE]; member
545 rx_len = _sunxi_emac_eth_recv(priv, priv->rx_buf); in sunxi_emac_eth_recv()
546 *packetp = priv->rx_buf; in sunxi_emac_eth_recv()
Dbcm-sf2-eth.h32 uint8_t *rx_buf; member
Dlpc32xx_eth.c196 ATTRS(PKTALIGN) u8 rx_buf[RX_BUF_COUNT*PKTSIZE_ALIGN];
412 &(bufs->rx_buf[rx_index * PKTSIZE_ALIGN]), in lpc32xx_eth_recv()
502 (u32) (bufs->rx_buf+index*PKTSIZE_ALIGN); in lpc32xx_eth_init()
/external/u-boot/drivers/tpm/
Dtpm_tis_st33zp24_spi.c76 u8 rx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member
120 u8 *rx_buf = phy->rx_buf; in st33zp24_spi_write() local
140 ret = spi_xfer(slave, total_length * 8, tx_buf, rx_buf, in st33zp24_spi_write()
148 ret = rx_buf[total_length - 1]; in st33zp24_spi_write()
171 u8 *rx_buf = phy->rx_buf; in st33zp24_spi_read8_reg() local
185 ret = spi_xfer(slave, total_length * 8, tx_buf, rx_buf, in st33zp24_spi_read8_reg()
193 ret = rx_buf[total_length - tpm_size - 1]; in st33zp24_spi_read8_reg()
194 memcpy(tpm_data, rx_buf + total_length - tpm_size, tpm_size); in st33zp24_spi_read8_reg()
Dtpm2_tis_spi.c78 u8 rx_buf[MAX_SPI_FRAMESIZE]; in tpm_tis_spi_xfer() local
100 ret = spi_xfer(slave, 4 * 8, tx_buf, rx_buf, SPI_XFER_BEGIN); in tpm_tis_spi_xfer()
109 if (!(rx_buf[3] & 0x1)) { in tpm_tis_spi_xfer()
113 ret = spi_xfer(slave, 1 * 8, NULL, rx_buf, 0); in tpm_tis_spi_xfer()
121 if (rx_buf[0] & 0x1) in tpm_tis_spi_xfer()
141 in ? rx_buf : NULL, in tpm_tis_spi_xfer()
151 memcpy(in, rx_buf, transfer_len); in tpm_tis_spi_xfer()
/external/libese/examples/
Dese_nxp_sample.c90 uint8_t rx_buf[1024]; in main() local
109 recvd = ese_transceive(&ese, (uint8_t *)apdu->bytes, apdu->length, rx_buf, in main()
110 sizeof(rx_buf)); in main()
121 printf("%.2X ", rx_buf[i]); in main()
/external/libese/libese-hw/
Dese_hw_fake.c115 struct EseSgBuffer *rx_buf = rx_bufs; in fake_transceive() local
148 while (rx_buf < rx_bufs + rx_seg) { in fake_transceive()
149 processed += fake_receive(ese, rx_buf->base, rx_buf->len, 1); in fake_transceive()
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/
Dese.c87 uint32_t tx_len, uint8_t *rx_buf, uint32_t rx_max) { in ese_transceive() argument
92 .base = rx_buf, .len = rx_max, in ese_transceive()
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/
Dcommon.h37 struct EseSgBuffer *rx_buf, uint32_t rx_len);
/external/libese/libese/include/ese/
Dese.h74 …truct EseInterface *ese, const uint8_t *tx_buf, uint32_t tx_len, uint8_t *rx_buf, uint32_t rx_max);
/external/kernel-headers/original/uapi/linux/spi/
Dspidev.h93 __u64 rx_buf; member

12