Lines Matching refs:word_len

144 	int			word_len;  member
197 static inline int mcspi_bytes_per_word(int word_len) in mcspi_bytes_per_word() argument
199 if (word_len <= 8) in mcspi_bytes_per_word()
201 else if (word_len <= 16) in mcspi_bytes_per_word()
309 bytes_per_word = mcspi_bytes_per_word(cs->word_len); in omap2_mcspi_set_fifo()
440 int word_len, element_count; in omap2_mcspi_rx_dma() local
456 word_len = cs->word_len; in omap2_mcspi_rx_dma()
459 if (word_len <= 8) in omap2_mcspi_rx_dma()
461 else if (word_len <= 16) in omap2_mcspi_rx_dma()
544 if (word_len <= 8) in omap2_mcspi_rx_dma()
546 else if (word_len <= 16) in omap2_mcspi_rx_dma()
551 int bytes_per_word = mcspi_bytes_per_word(word_len); in omap2_mcspi_rx_dma()
562 if (word_len <= 8) in omap2_mcspi_rx_dma()
564 else if (word_len <= 16) in omap2_mcspi_rx_dma()
570 count -= mcspi_bytes_per_word(word_len); in omap2_mcspi_rx_dma()
596 if (cs->word_len <= 8) { in omap2_mcspi_txrx_dma()
599 } else if (cs->word_len <= 16) { in omap2_mcspi_txrx_dma()
681 int word_len; in omap2_mcspi_txrx_pio() local
685 word_len = cs->word_len; in omap2_mcspi_txrx_pio()
695 if (c < (word_len>>3)) in omap2_mcspi_txrx_pio()
698 if (word_len <= 8) { in omap2_mcspi_txrx_pio()
714 word_len, *tx); in omap2_mcspi_txrx_pio()
729 word_len, *(rx - 1)); in omap2_mcspi_txrx_pio()
743 word_len, *(rx - 1)); in omap2_mcspi_txrx_pio()
746 } else if (word_len <= 16) { in omap2_mcspi_txrx_pio()
761 word_len, *tx); in omap2_mcspi_txrx_pio()
776 word_len, *(rx - 1)); in omap2_mcspi_txrx_pio()
790 word_len, *(rx - 1)); in omap2_mcspi_txrx_pio()
793 } else if (word_len <= 32) { in omap2_mcspi_txrx_pio()
808 word_len, *tx); in omap2_mcspi_txrx_pio()
823 word_len, *(rx - 1)); in omap2_mcspi_txrx_pio()
837 word_len, *(rx - 1)); in omap2_mcspi_txrx_pio()
880 u8 word_len = spi->bits_per_word; in omap2_mcspi_setup_transfer() local
886 word_len = t->bits_per_word; in omap2_mcspi_setup_transfer()
888 cs->word_len = word_len; in omap2_mcspi_setup_transfer()
923 l |= (word_len - 1) << 7; in omap2_mcspi_setup_transfer()
1162 if (t->len > ((cs->word_len + 7) >> 3)) in omap2_mcspi_transfer_one()