| /openbmc/u-boot/drivers/spi/ |
| H A D | spi-mem-nodm.c | 13 const u8 *tx_buf = NULL; in spi_mem_exec_op() local 25 tx_buf = op->data.buf.out; in spi_mem_exec_op() 51 if (!tx_buf && !rx_buf) in spi_mem_exec_op() 59 if (tx_buf || rx_buf) { in spi_mem_exec_op() 60 ret = spi_xfer(slave, op->data.nbytes * 8, tx_buf, in spi_mem_exec_op() 71 tx_buf || rx_buf ? op->data.nbytes : 0, in spi_mem_exec_op() 72 tx_buf || rx_buf ? (tx_buf ? "out" : "in") : "-"); in spi_mem_exec_op() 74 debug("%02x ", tx_buf ? tx_buf[i] : rx_buf[i]); in spi_mem_exec_op()
|
| H A D | zynq_qspi.c | 90 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 …]
|
| H A D | spi-mem.c | 202 const u8 *tx_buf = NULL; in spi_mem_exec_op() local 275 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op() 289 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op() 299 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op() 312 xfers[xferpos].tx_buf = op->data.buf.out; in spi_mem_exec_op() 337 tx_buf = op->data.buf.out; in spi_mem_exec_op() 359 if (!tx_buf && !rx_buf) in spi_mem_exec_op() 367 if (tx_buf || rx_buf) { in spi_mem_exec_op() 368 ret = spi_xfer(slave, op->data.nbytes * 8, tx_buf, in spi_mem_exec_op() 379 tx_buf || rx_buf ? op->data.nbytes : 0, in spi_mem_exec_op() [all …]
|
| H A D | mt7621_spi.c | 136 const u8 *tx_buf = dout; in mt7621_spi_xfer() local 188 if (tx_buf) { in mt7621_spi_xfer() 203 tx_buf[i] << (8 * (rs->tx_len & 3)); in mt7621_spi_xfer() 251 if (tx_buf) in mt7621_spi_xfer() 252 tx_buf += chunk_size; in mt7621_spi_xfer()
|
| H A D | zynqmp_gqspi.c | 165 const void *tx_buf; member 397 u32 *buf = (u32 *)priv->tx_buf; in zynqmp_qspi_fill_tx_fifo() 440 priv->tx_buf += len; in zynqmp_qspi_fill_tx_fifo() 452 gen_fifo_cmd |= *(u8 *)priv->tx_buf; in zynqmp_qspi_genfifo_cmd() 455 priv->tx_buf = (u8 *)priv->tx_buf + 1; in zynqmp_qspi_genfifo_cmd() 601 if (priv->tx_buf) in zynqmp_qspi_start_transfer() 606 if (priv->tx_buf) in zynqmp_qspi_start_transfer() 630 if (!priv->tx_buf && !priv->rx_buf && priv->len) { in zynqmp_qspi_transfer() 684 priv->tx_buf = dout; in zynqmp_qspi_xfer()
|
| H A D | zynq_spi.c | 217 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()
|
| H A D | pic32_spi.c | 234 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()
|
| H A D | spi-sunxi.c | 136 const u8 *tx_buf; member 156 byte = priv->tx_buf ? *priv->tx_buf++ : 0; in sun4i_spi_fill_fifo() 346 priv->tx_buf = dout; in sun4i_spi_xfer()
|
| /openbmc/u-boot/drivers/tpm/ |
| H A D | tpm_tis_st33zp24_spi.c | 75 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 …]
|
| H A D | tpm2_tis_spi.c | 77 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()
|
| /openbmc/u-boot/drivers/net/ |
| H A D | bcm-sf2-eth-gmac.c | 120 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 …]
|
| H A D | bcm-sf2-eth.h | 31 uint8_t *tx_buf; member
|
| H A D | altera_tse.c | 315 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()
|
| H A D | lpc32xx_eth.c | 193 ATTRS(PKTALIGN) u8 tx_buf[TX_BUF_COUNT*PKTSIZE_ALIGN];
|
| /openbmc/dbus-sensors/include/linux/ |
| H A D | peci-ioctl.h | 105 __u8 *tx_buf; member
|