Lines Matching refs:n_words
147 int n_words; member
181 return controller->n_words * controller->w_size; in spi_qup_len()
496 qup->n_words = spi_qup_sgl_get_nents_len(rx_sgl, in spi_qup_do_dma()
499 qup->n_words = spi_qup_sgl_get_nents_len(tx_sgl, in spi_qup_do_dma()
501 if (!qup->n_words) in spi_qup_do_dma()
549 int ret, n_words, iterations, offset = 0; in spi_qup_do_pio() local
551 n_words = qup->n_words; in spi_qup_do_pio()
552 iterations = n_words / SPI_MAX_XFER; /* round down */ in spi_qup_do_pio()
558 qup->n_words = SPI_MAX_XFER; in spi_qup_do_pio()
560 qup->n_words = n_words % SPI_MAX_XFER; in spi_qup_do_pio()
572 if (qup->n_words <= (qup->in_fifo_sz / sizeof(u32))) in spi_qup_do_pio()
709 controller->n_words = xfer->len / controller->w_size; in spi_qup_io_prep()
711 if (controller->n_words <= (controller->in_fifo_sz / sizeof(u32))) in spi_qup_io_prep()
743 writel_relaxed(controller->n_words, in spi_qup_io_config()
745 writel_relaxed(controller->n_words, in spi_qup_io_config()
752 writel_relaxed(controller->n_words, in spi_qup_io_config()
754 writel_relaxed(controller->n_words, in spi_qup_io_config()
773 writel_relaxed(controller->n_words, input_cnt); in spi_qup_io_config()
780 writel_relaxed(controller->n_words, in spi_qup_io_config()
782 writel_relaxed(controller->n_words, in spi_qup_io_config()
920 int n_words; in spi_qup_can_dma() local
938 n_words = xfer->len / DIV_ROUND_UP(xfer->bits_per_word, 8); in spi_qup_can_dma()
939 if (n_words <= (qup->in_fifo_sz / sizeof(u32))) in spi_qup_can_dma()