Lines Matching refs:words
270 u32 inuse, words, wrote; in apple_spi_tx() local
276 words = wrote = min_t(u32, *left, APPLE_SPI_FIFO_DEPTH - inuse); in apple_spi_tx()
278 if (!words) in apple_spi_tx()
281 *left -= words; in apple_spi_tx()
287 while (words--) in apple_spi_tx()
294 while (words--) in apple_spi_tx()
301 while (words--) in apple_spi_tx()
315 u32 words, read; in apple_spi_rx() local
320 words = read = FIELD_GET(APPLE_SPI_FIFOSTAT_LEVEL_RX, reg_read(spi, APPLE_SPI_FIFOSTAT)); in apple_spi_rx()
321 WARN_ON(words > *left); in apple_spi_rx()
323 if (!words) in apple_spi_rx()
326 *left -= min_t(u32, *left, words); in apple_spi_rx()
332 while (words--) in apple_spi_rx()
339 while (words--) in apple_spi_rx()
346 while (words--) in apple_spi_rx()
365 u32 words, remaining_tx, remaining_rx; in apple_spi_transfer_one() local
378 words = t->len / bytes_per_word; in apple_spi_transfer_one()
379 remaining_tx = tx_ptr ? words : 0; in apple_spi_transfer_one()
380 remaining_rx = rx_ptr ? words : 0; in apple_spi_transfer_one()