Lines Matching refs:words
392 u32 bits, u32 words) in sh_msiof_spi_set_mode_regs() argument
394 u32 dr2 = SIMDR2_BITLEN1(bits) | SIMDR2_WDLEN1(words); in sh_msiof_spi_set_mode_regs()
412 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_8() argument
417 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_8()
422 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16() argument
427 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_16()
432 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16u() argument
437 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_16u()
442 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32() argument
447 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_32()
452 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32u() argument
457 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_32u()
462 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_s32() argument
467 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_s32()
472 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_s32u() argument
477 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_s32u()
482 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_8() argument
487 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_8()
492 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_16() argument
497 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_16()
502 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_16u() argument
507 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_16u()
512 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_32() argument
517 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_32()
522 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_32u() argument
527 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_32u()
532 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_s32() argument
537 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_s32()
542 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_s32u() argument
547 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_s32u()
677 int words, int bits) in sh_msiof_spi_txrx_once() argument
684 words = min_t(int, words, p->tx_fifo_size); in sh_msiof_spi_txrx_once()
686 words = min_t(int, words, p->rx_fifo_size); in sh_msiof_spi_txrx_once()
695 sh_msiof_spi_set_mode_regs(p, tx_buf, rx_buf, bits, words); in sh_msiof_spi_txrx_once()
700 tx_fifo(p, tx_buf, words, fifo_shift); in sh_msiof_spi_txrx_once()
718 rx_fifo(p, rx_buf, words, fifo_shift); in sh_msiof_spi_txrx_once()
729 return words; in sh_msiof_spi_txrx_once()
864 static void copy_bswap32(u32 *dst, const u32 *src, unsigned int words) in copy_bswap32() argument
868 while (words--) { in copy_bswap32()
873 while (words--) { in copy_bswap32()
878 while (words--) in copy_bswap32()
883 static void copy_wswap32(u32 *dst, const u32 *src, unsigned int words) in copy_wswap32() argument
887 while (words--) { in copy_wswap32()
892 while (words--) { in copy_wswap32()
897 while (words--) in copy_wswap32()
902 static void copy_plain32(u32 *dst, const u32 *src, unsigned int words) in copy_plain32() argument
904 memcpy(dst, src, words * 4); in copy_plain32()
920 unsigned int words; in sh_msiof_transfer_one() local
1024 words = len / bytes_per_word; in sh_msiof_transfer_one()
1026 while (words > 0) { in sh_msiof_transfer_one()
1028 words, bits); in sh_msiof_transfer_one()
1036 words -= n; in sh_msiof_transfer_one()
1038 if (words == 0 && (len % bytes_per_word)) { in sh_msiof_transfer_one()
1039 words = len % bytes_per_word; in sh_msiof_transfer_one()