Lines Matching refs:n_bytes
114 int n_bytes; member
138 …while (spi->rx_len >= spi->n_bytes && !(mchp_corespi_read(spi, REG_STATUS) & STATUS_RXFIFO_EMPTY))… in mchp_corespi_read_fifo()
141 spi->rx_len -= spi->n_bytes; in mchp_corespi_read_fifo()
146 if (spi->n_bytes == 4) in mchp_corespi_read_fifo()
148 else if (spi->n_bytes == 2) in mchp_corespi_read_fifo()
153 spi->rx_buf += spi->n_bytes; in mchp_corespi_read_fifo()
218 fifo_max = DIV_ROUND_UP(min(spi->tx_len, FIFO_DEPTH), spi->n_bytes); in mchp_corespi_write_fifo()
224 if (spi->n_bytes == 4) in mchp_corespi_write_fifo()
226 else if (spi->n_bytes == 2) in mchp_corespi_write_fifo()
233 spi->tx_buf += spi->n_bytes; in mchp_corespi_write_fifo()
237 spi->tx_len -= i * spi->n_bytes; in mchp_corespi_write_fifo()
507 spi->n_bytes = roundup_pow_of_two(DIV_ROUND_UP(xfer->bits_per_word, BITS_PER_BYTE)); in mchp_corespi_transfer_one()