Lines Matching refs:cdns_spi_write
139 static inline void cdns_spi_write(struct cdns_spi *xspi, u32 offset, u32 val) in cdns_spi_write() function
166 cdns_spi_write(xspi, CDNS_SPI_ER, CDNS_SPI_ER_DISABLE); in cdns_spi_init_hw()
167 cdns_spi_write(xspi, CDNS_SPI_IDR, CDNS_SPI_IXR_ALL); in cdns_spi_init_hw()
173 cdns_spi_write(xspi, CDNS_SPI_ISR, CDNS_SPI_IXR_ALL); in cdns_spi_init_hw()
174 cdns_spi_write(xspi, CDNS_SPI_CR, ctrl_reg); in cdns_spi_init_hw()
175 cdns_spi_write(xspi, CDNS_SPI_ER, CDNS_SPI_ER_ENABLE); in cdns_spi_init_hw()
205 cdns_spi_write(xspi, CDNS_SPI_CR, ctrl_reg); in cdns_spi_chipselect()
236 cdns_spi_write(xspi, CDNS_SPI_ER, CDNS_SPI_ER_DISABLE); in cdns_spi_config_clock_mode()
237 cdns_spi_write(xspi, CDNS_SPI_CR, new_ctrl_reg); in cdns_spi_config_clock_mode()
238 cdns_spi_write(xspi, CDNS_SPI_ER, CDNS_SPI_ER_ENABLE); in cdns_spi_config_clock_mode()
280 cdns_spi_write(xspi, CDNS_SPI_CR, ctrl_reg); in cdns_spi_config_clock_freq()
334 cdns_spi_write(xspi, CDNS_SPI_TXD, *xspi->txbuf++); in cdns_spi_process_fifo()
336 cdns_spi_write(xspi, CDNS_SPI_TXD, 0); in cdns_spi_process_fifo()
367 cdns_spi_write(xspi, CDNS_SPI_ISR, intr_status); in cdns_spi_irq()
374 cdns_spi_write(xspi, CDNS_SPI_IDR, CDNS_SPI_IXR_DEFAULT); in cdns_spi_irq()
388 cdns_spi_write(xspi, CDNS_SPI_THLD, 1); in cdns_spi_irq()
399 cdns_spi_write(xspi, CDNS_SPI_IDR, in cdns_spi_irq()
448 cdns_spi_write(xspi, CDNS_SPI_THLD, xspi->tx_fifo_depth >> 1); in cdns_transfer_one()
459 cdns_spi_write(xspi, CDNS_SPI_IER, CDNS_SPI_IXR_DEFAULT); in cdns_transfer_one()
476 cdns_spi_write(xspi, CDNS_SPI_ER, CDNS_SPI_ER_ENABLE); in cdns_prepare_transfer_hardware()
506 cdns_spi_write(xspi, CDNS_SPI_ER, CDNS_SPI_ER_DISABLE); in cdns_unprepare_transfer_hardware()
509 cdns_spi_write(xspi, CDNS_SPI_THLD, 0x1); in cdns_unprepare_transfer_hardware()
524 cdns_spi_write(xspi, CDNS_SPI_THLD, 0xffff); in cdns_spi_detect_fifo_depth()
528 cdns_spi_write(xspi, CDNS_SPI_THLD, 0x1); in cdns_spi_detect_fifo_depth()
545 cdns_spi_write(xspi, CDNS_SPI_ISR, intr_status); in cdns_target_abort()
546 cdns_spi_write(xspi, CDNS_SPI_IDR, (CDNS_SPI_IXR_MODF | CDNS_SPI_IXR_RXNEMTY)); in cdns_target_abort()
702 cdns_spi_write(xspi, CDNS_SPI_ER, CDNS_SPI_ER_DISABLE); in cdns_spi_remove()