Lines Matching refs:n_bytes
412 int n_bytes = spi_imx->target_burst % sizeof(val); in mx53_ecspi_rx_target() local
414 if (!n_bytes) in mx53_ecspi_rx_target()
415 n_bytes = sizeof(val); in mx53_ecspi_rx_target()
418 ((u8 *)&val) + sizeof(val) - n_bytes, n_bytes); in mx53_ecspi_rx_target()
420 spi_imx->rx_buf += n_bytes; in mx53_ecspi_rx_target()
421 spi_imx->target_burst -= n_bytes; in mx53_ecspi_rx_target()
430 int n_bytes = spi_imx->count % sizeof(val); in mx53_ecspi_tx_target() local
432 if (!n_bytes) in mx53_ecspi_tx_target()
433 n_bytes = sizeof(val); in mx53_ecspi_tx_target()
436 memcpy(((u8 *)&val) + sizeof(val) - n_bytes, in mx53_ecspi_tx_target()
437 spi_imx->tx_buf, n_bytes); in mx53_ecspi_tx_target()
439 spi_imx->tx_buf += n_bytes; in mx53_ecspi_tx_target()
442 spi_imx->count -= n_bytes; in mx53_ecspi_tx_target()