Lines Matching defs:bits_per_word
115 int bits_per_word, int msb_first)
120 if (bits_per_word <= 8) {
123 } else if (bits_per_word <= 16) {
128 if (bits_per_word <= 8)
134 int bits_per_word, int msb_first)
138 if (bits_per_word <= 16) {
141 *tx_shift = 32 - bits_per_word; /* MSB in bit 31 */
143 *rx_shift = 16 - bits_per_word; /* MSB in bit 15 */
151 int bits_per_word)
155 if (bits_per_word <= 8) {
158 } else if (bits_per_word <= 16) {
161 } else if (bits_per_word <= 32) {
168 bits_per_word,
181 int bits_per_word = 0;
189 bits_per_word = t->bits_per_word;
194 if (!bits_per_word)
195 bits_per_word = spi->bits_per_word;
201 mspi_apply_cpu_mode_quirks(cs, spi, mpc8xxx_spi, bits_per_word);
203 if (bits_per_word == 32)
204 bits_per_word = 0;
206 bits_per_word = bits_per_word - 1;
212 cs->hw_mode |= SPMODE_LEN(bits_per_word);
258 u8 bits_per_word;
262 bits_per_word = spi->bits_per_word;
263 if (t->bits_per_word)
264 bits_per_word = t->bits_per_word;
266 if (bits_per_word > 8)
268 if (bits_per_word > 16)
306 * bits_per_word values to reduce number of interrupts taken.
319 if (t->len < 256 || t->bits_per_word != 8)
322 t->bits_per_word = 32;
324 t->bits_per_word = 16;
334 if (m->spi->mode & SPI_LSB_FIRST && t->bits_per_word > 8)
336 if (t->bits_per_word == 16 || t->bits_per_word == 32)
337 t->bits_per_word = 8; /* pretend its 8 bits */
338 if (t->bits_per_word == 8 && t->len >= 256 &&
340 t->bits_per_word = 16;