Lines Matching refs:rx_buf
393 const void *tx_buf, void *rx_buf, in sh_msiof_spi_set_mode_regs() argument
403 if (rx_buf) in sh_msiof_spi_set_mode_regs()
484 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_8() argument
486 u8 *buf_8 = rx_buf; in sh_msiof_spi_read_fifo_8()
494 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_16() argument
496 u16 *buf_16 = rx_buf; in sh_msiof_spi_read_fifo_16()
504 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_16u() argument
506 u16 *buf_16 = rx_buf; in sh_msiof_spi_read_fifo_16u()
514 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_32() argument
516 u32 *buf_32 = rx_buf; in sh_msiof_spi_read_fifo_32()
524 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_32u() argument
526 u32 *buf_32 = rx_buf; in sh_msiof_spi_read_fifo_32u()
534 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_s32() argument
536 u32 *buf_32 = rx_buf; in sh_msiof_spi_read_fifo_s32()
544 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_s32u() argument
546 u32 *buf_32 = rx_buf; in sh_msiof_spi_read_fifo_s32u()
606 static int sh_msiof_spi_start(struct sh_msiof_spi_priv *p, void *rx_buf) in sh_msiof_spi_start() argument
614 if (rx_buf && !ret) in sh_msiof_spi_start()
626 static int sh_msiof_spi_stop(struct sh_msiof_spi_priv *p, void *rx_buf) in sh_msiof_spi_stop() argument
636 if (rx_buf && !ret) in sh_msiof_spi_stop()
678 const void *tx_buf, void *rx_buf, in sh_msiof_spi_txrx_once() argument
687 if (rx_buf) in sh_msiof_spi_txrx_once()
697 sh_msiof_spi_set_mode_regs(p, tx_buf, rx_buf, bits, words); in sh_msiof_spi_txrx_once()
707 ret = sh_msiof_spi_start(p, rx_buf); in sh_msiof_spi_txrx_once()
719 if (rx_buf) in sh_msiof_spi_txrx_once()
720 rx_fifo(p, rx_buf, words, fifo_shift); in sh_msiof_spi_txrx_once()
725 ret = sh_msiof_spi_stop(p, rx_buf); in sh_msiof_spi_txrx_once()
735 sh_msiof_spi_stop(p, rx_buf); in sh_msiof_spi_txrx_once()
918 void *rx_buf = t->rx_buf; in sh_msiof_transfer_one() local
943 if (rx_buf) in sh_msiof_transfer_one()
957 ret = sh_msiof_dma_once(p, tx_buf, rx_buf, l); in sh_msiof_transfer_one()
966 if (rx_buf) { in sh_msiof_transfer_one()
967 copy32(rx_buf, p->rx_dma_page, l / 4); in sh_msiof_transfer_one()
968 rx_buf += l; in sh_msiof_transfer_one()
997 if ((unsigned long)rx_buf & 0x01) in sh_msiof_transfer_one()
1008 if ((unsigned long)rx_buf & 0x03) in sh_msiof_transfer_one()
1019 if ((unsigned long)rx_buf & 0x03) in sh_msiof_transfer_one()
1029 n = sh_msiof_spi_txrx_once(p, tx_fifo, rx_fifo, tx_buf, rx_buf, in sh_msiof_transfer_one()
1036 if (rx_buf) in sh_msiof_transfer_one()
1037 rx_buf += n * bytes_per_word; in sh_msiof_transfer_one()