Lines Matching refs:bits_per_word

141 				      int bits_per_word, int msb_first)
146 if (bits_per_word <= 8) {
149 } else if (bits_per_word <= 16) {
154 if (bits_per_word <= 8)
160 int bits_per_word, int msb_first)
164 if (bits_per_word <= 16) {
167 *tx_shift = 32 - bits_per_word; /* MSB in bit 31 */
169 *rx_shift = 16 - bits_per_word; /* MSB in bit 15 */
177 int bits_per_word)
181 if (bits_per_word <= 8) {
184 } else if (bits_per_word <= 16) {
187 } else if (bits_per_word <= 32) {
195 bits_per_word,
203 return bits_per_word;
210 int bits_per_word = 0;
218 bits_per_word = t->bits_per_word;
223 if (!bits_per_word)
224 bits_per_word = spi->bits_per_word;
230 bits_per_word = mspi_apply_cpu_mode_quirks(cs, spi,
232 bits_per_word);
234 if (bits_per_word < 0)
235 return bits_per_word;
237 if (bits_per_word == 32)
238 bits_per_word = 0;
240 bits_per_word = bits_per_word - 1;
246 cs->hw_mode |= SPMODE_LEN(bits_per_word);
292 u8 bits_per_word;
296 bits_per_word = spi->bits_per_word;
297 if (t->bits_per_word)
298 bits_per_word = t->bits_per_word;
300 if (bits_per_word > 8) {
306 if (bits_per_word > 16) {
348 * bits_per_word values to reduce number of interrupts taken.
352 if (t->len < 256 || t->bits_per_word != 8)
355 t->bits_per_word = 32;
357 t->bits_per_word = 16;
367 if (m->spi->mode & SPI_LSB_FIRST && t->bits_per_word > 8)
369 if (t->bits_per_word == 16 || t->bits_per_word == 32)
370 t->bits_per_word = 8; /* pretend its 8 bits */
371 if (t->bits_per_word == 8 && t->len >= 256 &&
373 t->bits_per_word = 16;
394 if (cs_change || last_bpw != t->bits_per_word)
398 last_bpw = t->bits_per_word;