Lines Matching refs:n_bytes
192 u8 n_bytes; member
303 if (rs->n_bytes == 1) in rockchip_spi_pio_writer()
309 rs->tx += rs->n_bytes; in rockchip_spi_pio_writer()
339 if (rs->n_bytes == 1) in rockchip_spi_pio_reader()
343 rs->rx += rs->n_bytes; in rockchip_spi_pio_reader()
381 rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0; in rockchip_spi_prepare_irq()
382 rs->rx_left = xfer->len / rs->n_bytes; in rockchip_spi_prepare_irq()
460 .src_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma()
461 .src_maxburst = rockchip_spi_calc_burst_size(xfer->len / rs->n_bytes), in rockchip_spi_prepare_dma()
482 .dst_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma()
590 if ((xfer->len / rs->n_bytes) < rs->fifo_len) in rockchip_spi_config()
591 writel_relaxed(xfer->len / rs->n_bytes - 1, rs->regs + ROCKCHIP_SPI_RXFTLR); in rockchip_spi_config()
596 writel_relaxed(rockchip_spi_calc_burst_size(xfer->len / rs->n_bytes) - 1, in rockchip_spi_config()
634 rs->rx += rs->xfer->len - rs->n_bytes * state.residue; in rockchip_spi_slave_abort()
644 if (rs->n_bytes == 1) in rockchip_spi_slave_abort()
648 rs->rx += rs->n_bytes; in rockchip_spi_slave_abort()
694 rs->n_bytes = xfer->bits_per_word <= 8 ? 1 : 2; in rockchip_spi_transfer_one()