Lines Matching refs:n_bytes
401 int n_bytes = spi_imx->slave_burst % sizeof(val); in mx53_ecspi_rx_slave() local
403 if (!n_bytes) in mx53_ecspi_rx_slave()
404 n_bytes = sizeof(val); in mx53_ecspi_rx_slave()
407 ((u8 *)&val) + sizeof(val) - n_bytes, n_bytes); in mx53_ecspi_rx_slave()
409 spi_imx->rx_buf += n_bytes; in mx53_ecspi_rx_slave()
410 spi_imx->slave_burst -= n_bytes; in mx53_ecspi_rx_slave()
419 int n_bytes = spi_imx->count % sizeof(val); in mx53_ecspi_tx_slave() local
421 if (!n_bytes) in mx53_ecspi_tx_slave()
422 n_bytes = sizeof(val); in mx53_ecspi_tx_slave()
425 memcpy(((u8 *)&val) + sizeof(val) - n_bytes, in mx53_ecspi_tx_slave()
426 spi_imx->tx_buf, n_bytes); in mx53_ecspi_tx_slave()
428 spi_imx->tx_buf += n_bytes; in mx53_ecspi_tx_slave()
431 spi_imx->count -= n_bytes; in mx53_ecspi_tx_slave()