Lines Matching refs:chunk_len

544 	const size_t chunk_len = spi_context_max_continuous_chunk(&data->ctx);  in spi_pl022_chunk_transfer_finished()  local
546 return (MIN(dma[TX].count, dma[RX].count) >= chunk_len); in spi_pl022_chunk_transfer_finished()
569 size_t chunk_len; in spi_pl022_dma_callback() local
584 chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_pl022_dma_callback()
587 data->dma[i].count += chunk_len; in spi_pl022_dma_callback()
598 spi_context_update_tx(&data->ctx, 1, chunk_len); in spi_pl022_dma_callback()
599 spi_context_update_rx(&data->ctx, 1, chunk_len); in spi_pl022_dma_callback()
601 spi_context_update_tx(&data->ctx, 2, chunk_len); in spi_pl022_dma_callback()
602 spi_context_update_rx(&data->ctx, 2, chunk_len); in spi_pl022_dma_callback()
641 size_t chunk_len = spi_context_max_continuous_chunk(ctx); in spi_pl022_async_xfer() local
645 while (SSP_RX_FIFO_NOT_EMPTY(cfg->reg) && (data->rx_count < chunk_len)) { in spi_pl022_async_xfer()
660 if (MIN(data->tx_count, data->rx_count) >= chunk_len && chunk_len > 0) { in spi_pl022_async_xfer()
661 spi_context_update_tx(ctx, 1, chunk_len); in spi_pl022_async_xfer()
662 spi_context_update_rx(ctx, 1, chunk_len); in spi_pl022_async_xfer()
667 chunk_len = spi_context_max_continuous_chunk(ctx); in spi_pl022_async_xfer()
677 if ((data->tx_count < chunk_len) && SSP_TX_FIFO_NOT_FULL(cfg->reg)) { in spi_pl022_async_xfer()
737 const size_t chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_pl022_xfer() local
755 while (data->rx_count < chunk_len || data->tx_count < chunk_len) { in spi_pl022_xfer()
757 while (SSP_TX_FIFO_NOT_FULL(cfg->reg) && data->tx_count < chunk_len && in spi_pl022_xfer()
769 while (data->rx_count < chunk_len && fifo_cnt > 0) { in spi_pl022_xfer()