Home
last modified time | relevance | path

Searched refs:tx_buf (Results 1 – 19 of 19) sorted by relevance

/external/u-boot/drivers/spi/
Dzynq_qspi.c90 const void *tx_buf; member
226 if (priv->tx_buf) { in zynq_qspi_write_data()
229 *data = *((u8 *)priv->tx_buf); in zynq_qspi_write_data()
230 priv->tx_buf += 1; in zynq_qspi_write_data()
234 *data = *((u16 *)priv->tx_buf); in zynq_qspi_write_data()
235 priv->tx_buf += 2; in zynq_qspi_write_data()
239 *data = *((u16 *)priv->tx_buf); in zynq_qspi_write_data()
240 priv->tx_buf += 2; in zynq_qspi_write_data()
241 *data |= (*((u8 *)priv->tx_buf) << 16); in zynq_qspi_write_data()
242 priv->tx_buf += 1; in zynq_qspi_write_data()
[all …]
Dzynq_spi.c217 const u8 *tx_buf = dout; in zynq_spi_xfer() local
237 if (tx_buf) in zynq_spi_xfer()
238 buf = *tx_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()
257 priv->tx = tx_buf; in pic32_spi_xfer()
/external/libese/tools/ese_relay/
Dese_relay.c90 uint8_t tx_buf[4096]; in main() local
122 if (tx_len > sizeof(tx_buf)) { in main()
128 ssize_t bytes = read(client_fd, tx_buf + data_read, tx_len - data_read); in main()
142 printf("%.2X ", tx_buf[i]); in main()
147 printf("Received a control request: %x\n", tx_buf[0]); in main()
149 switch (tx_buf[0]) { in main()
166 ALOGE("Unknown control byte seen: %x", tx_buf[0]); in main()
171 rx_len = ese_transceive(&ese, tx_buf, tx_len, rx_buf, sizeof(rx_buf)); in main()
/external/u-boot/drivers/tpm/
Dtpm_tis_st33zp24_spi.c75 u8 tx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member
119 u8 *tx_buf = (u8 *)phy->tx_buf; in st33zp24_spi_write() local
122 tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0; in st33zp24_spi_write()
123 tx_buf[total_length++] = tpm_register; in st33zp24_spi_write()
126 tx_buf[total_length++] = tpm_size >> 8; in st33zp24_spi_write()
127 tx_buf[total_length++] = tpm_size; in st33zp24_spi_write()
129 memcpy(tx_buf + total_length, tpm_data, tpm_size); in st33zp24_spi_write()
132 memset(tx_buf + total_length, TPM_DUMMY_BYTE, phy->latency); in st33zp24_spi_write()
140 ret = spi_xfer(slave, total_length * 8, tx_buf, rx_buf, in st33zp24_spi_write()
170 u8 *tx_buf = (u8 *)phy->tx_buf; in st33zp24_spi_read8_reg() local
[all …]
Dtpm2_tis_spi.c77 u8 tx_buf[MAX_SPI_FRAMESIZE]; in tpm_tis_spi_xfer() local
95 tx_buf[0] = (in ? BIT(7) : 0) | (transfer_len - 1); in tpm_tis_spi_xfer()
96 tx_buf[1] = 0xD4; in tpm_tis_spi_xfer()
97 tx_buf[2] = addr >> 8; in tpm_tis_spi_xfer()
98 tx_buf[3] = addr; in tpm_tis_spi_xfer()
100 ret = spi_xfer(slave, 4 * 8, tx_buf, rx_buf, SPI_XFER_BEGIN); in tpm_tis_spi_xfer()
135 memcpy(tx_buf, out, transfer_len); in tpm_tis_spi_xfer()
140 out ? tx_buf : NULL, in tpm_tis_spi_xfer()
/external/libese/libese-hw/
Dese_hw_fake.c116 const struct EseSgBuffer *tx_buf = tx_bufs; in fake_transceive() local
122 while (tx_buf < tx_bufs + tx_seg) { in fake_transceive()
124 fake_transmit(ese, tx_buf->base + offset, tx_buf->len - offset, 0); in fake_transceive()
125 if (sent != tx_buf->len - offset) { in fake_transceive()
126 offset = tx_buf->len - sent; in fake_transceive()
137 tx_buf++; in fake_transceive()
Dese_hw_echo.c156 const struct EseSgBuffer *tx_buf, uint32_t tx_len, in echo_transceive() argument
158 return teq1_transceive(ese, &kTeq1Options, tx_buf, tx_len, rx_buf, rx_len); in echo_transceive()
/external/wpa_supplicant_8/src/ap/
Dgas_serv.c1453 struct wpabuf *buf, *tx_buf; in gas_serv_req_local_processing() local
1491 tx_buf = gas_anqp_build_initial_resp_buf( in gas_serv_req_local_processing()
1498 tx_buf = gas_anqp_build_initial_resp_buf( in gas_serv_req_local_processing()
1504 tx_buf = gas_anqp_build_initial_resp_buf( in gas_serv_req_local_processing()
1508 if (!tx_buf) in gas_serv_req_local_processing()
1511 convert_to_protected_dual(tx_buf); in gas_serv_req_local_processing()
1514 wpabuf_head(tx_buf), in gas_serv_req_local_processing()
1515 wpabuf_len(tx_buf)); in gas_serv_req_local_processing()
1518 wpabuf_head(tx_buf), in gas_serv_req_local_processing()
1519 wpabuf_len(tx_buf)); in gas_serv_req_local_processing()
[all …]
/external/u-boot/drivers/net/
Dbcm-sf2-eth-gmac.c120 bufp = (uint8_t *)(dma->tx_buf + i * TX_BUF_SIZE_ALIGNED); in dma_tx_dump()
170 memset(dma->tx_buf, 0, TX_BUF_NUM * TX_BUF_SIZE_ALIGNED); in dma_tx_init()
175 bufp = dma->tx_buf + i * TX_BUF_SIZE_ALIGNED; in dma_tx_init()
191 bufp = dma->tx_buf; in dma_tx_init()
298 free(dma->tx_buf); in dma_deinit()
299 dma->tx_buf = NULL; in dma_deinit()
313 uint8_t *bufp = dma->tx_buf + dma->cur_tx_index * TX_BUF_SIZE_ALIGNED; in gmac_tx_packet()
921 dma->tx_buf = (uint8_t *)tmp; in gmac_add()
923 dma->tx_buf, TX_BUF_SIZE_ALIGNED * TX_BUF_NUM); in gmac_add()
930 free(dma->tx_buf); in gmac_add()
[all …]
Daltera_tse.c315 u32 tx_buf = virt_to_phys(packet); in altera_tse_send_msgdma() local
318 writel(tx_buf, &desc->read_addr_lo); in altera_tse_send_msgdma()
480 unsigned long tx_buf = (unsigned long)packet; in altera_tse_send() local
482 flush_dcache_range(tx_buf, tx_buf + length); in altera_tse_send()
Dbcm-sf2-eth.h31 uint8_t *tx_buf; member
Dlpc32xx_eth.c193 ATTRS(PKTALIGN) u8 tx_buf[TX_BUF_COUNT*PKTSIZE_ALIGN];
/external/libese/libese-hw/nxp/pn80t/
Dcommon.c247 const struct EseSgBuffer *tx_buf, in nxp_pn80t_handle_interface_call() argument
261 if (ese_sg_to_buf(tx_buf, tx_len, 0, sizeof(buf), buf) != kCommandLength) { in nxp_pn80t_handle_interface_call()
308 const struct EseSgBuffer *tx_buf, uint32_t tx_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()
Dlinux_spidev.c182 .tx_buf = (unsigned long)buf, in spidev_transmit()
212 .tx_buf = 0, in spidev_receive()
/external/libese/libese/
Dese.c86 ESE_API int ese_transceive(struct EseInterface *ese, const uint8_t *tx_buf, in ese_transceive() argument
89 .c_base = tx_buf, .len = tx_len, in ese_transceive()
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/
Dcommon.h36 const struct EseSgBuffer *tx_buf, uint32_t tx_len,
/external/libese/libese/include/ese/
Dese.h74 int ese_transceive(struct EseInterface *ese, const uint8_t *tx_buf, uint32_t tx_len, uint8_t *rx_bu…
/external/kernel-headers/original/uapi/linux/spi/
Dspidev.h92 __u64 tx_buf; member