Lines Matching defs:bits_per_word
270 int bits_per_word)
274 if (bits_per_word <= 8) {
281 } else if (bits_per_word <= 16) {
288 } else if (bits_per_word <= 32) {
297 if (bits_per_word <= 8)
307 return bits_per_word;
313 int bits_per_word)
322 bits_per_word > 8)
324 if (bits_per_word > 8)
326 return bits_per_word;
333 int bits_per_word;
341 bits_per_word = t->bits_per_word;
344 bits_per_word = 0;
349 if (!bits_per_word)
350 bits_per_word = spi->bits_per_word;
353 if ((bits_per_word < 4)
354 || ((bits_per_word > 16) && (bits_per_word != 32)))
361 bits_per_word = mspi_apply_cpu_mode_quirks(cs, spi,
363 bits_per_word);
365 bits_per_word = mspi_apply_qe_mode_quirks(cs, spi,
366 bits_per_word);
368 if (bits_per_word < 0)
369 return bits_per_word;
371 if (bits_per_word == 32)
372 bits_per_word = 0;
374 bits_per_word = bits_per_word - 1;
380 cs->hw_mode |= SPMODE_LEN(bits_per_word);
528 u8 bits_per_word;
531 bits_per_word = spi->bits_per_word;
532 if (t->bits_per_word)
533 bits_per_word = t->bits_per_word;
535 if (bits_per_word > 8) {
541 if (bits_per_word > 16) {
582 if (t->bits_per_word || t->speed_hz) {