Home
last modified time | relevance | path

Searched refs:n_tx (Results 1 – 2 of 2) sorted by relevance

/drivers/spi/
Dspi-fsl-espi.c42 unsigned n_tx; member
360 espi_trans->rx_buf = local_buf + espi_trans->n_tx; in fsl_espi_cmd_trans()
371 unsigned int n_tx = espi_trans->n_tx; in fsl_espi_rw_trans() local
388 if (trans_len > SPCOM_TRANLEN_MAX - n_tx) in fsl_espi_rw_trans()
389 trans_len = SPCOM_TRANLEN_MAX - n_tx; in fsl_espi_rw_trans()
405 espi_trans->n_tx = n_tx; in fsl_espi_rw_trans()
407 espi_trans->len = trans_len + n_tx; in fsl_espi_rw_trans()
409 espi_trans->rx_buf = local_buf + n_tx; in fsl_espi_rw_trans()
412 memcpy(rx_buf + pos, espi_trans->rx_buf + n_tx, trans_len); in fsl_espi_rw_trans()
415 espi_trans->actual_length += espi_trans->len - n_tx; in fsl_espi_rw_trans()
[all …]
Dspi.c1658 const void *txbuf, unsigned n_tx, in spi_write_then_read() argument
1673 if ((n_tx + n_rx) > SPI_BUFSIZ || !mutex_trylock(&lock)) { in spi_write_then_read()
1674 local_buf = kmalloc(max((unsigned)SPI_BUFSIZ, n_tx + n_rx), in spi_write_then_read()
1684 if (n_tx) { in spi_write_then_read()
1685 x[0].len = n_tx; in spi_write_then_read()
1693 memcpy(local_buf, txbuf, n_tx); in spi_write_then_read()
1695 x[1].rx_buf = local_buf + n_tx; in spi_write_then_read()