Lines Matching refs:n_words
142 int n_words; member
174 return controller->n_words * controller->w_size; in spi_qup_len()
466 qup->n_words = spi_qup_sgl_get_nents_len(rx_sgl, in spi_qup_do_dma()
469 qup->n_words = spi_qup_sgl_get_nents_len(tx_sgl, in spi_qup_do_dma()
471 if (!qup->n_words) in spi_qup_do_dma()
519 int ret, n_words, iterations, offset = 0; in spi_qup_do_pio() local
521 n_words = qup->n_words; in spi_qup_do_pio()
522 iterations = n_words / SPI_MAX_XFER; /* round down */ in spi_qup_do_pio()
528 qup->n_words = SPI_MAX_XFER; in spi_qup_do_pio()
530 qup->n_words = n_words % SPI_MAX_XFER; in spi_qup_do_pio()
542 if (qup->n_words <= (qup->in_fifo_sz / sizeof(u32))) in spi_qup_do_pio()
679 controller->n_words = xfer->len / controller->w_size; in spi_qup_io_prep()
681 if (controller->n_words <= (controller->in_fifo_sz / sizeof(u32))) in spi_qup_io_prep()
715 writel_relaxed(controller->n_words, in spi_qup_io_config()
717 writel_relaxed(controller->n_words, in spi_qup_io_config()
724 writel_relaxed(controller->n_words, in spi_qup_io_config()
726 writel_relaxed(controller->n_words, in spi_qup_io_config()
745 writel_relaxed(controller->n_words, input_cnt); 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()
892 int n_words; in spi_qup_can_dma() local
910 n_words = xfer->len / DIV_ROUND_UP(xfer->bits_per_word, 8); in spi_qup_can_dma()
911 if (n_words <= (qup->in_fifo_sz / sizeof(u32))) in spi_qup_can_dma()