Home
last modified time | relevance | path

Searched refs:dw_readl (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/spi/
H A Dspi-dw-core.c112 tx_room = dws->fifo_len - dw_readl(dws, DW_SPI_TXFLR); in dw_spi_tx_max()
181 irq_status = dw_readl(dws, DW_SPI_RISR); in dw_spi_check_status()
183 irq_status = dw_readl(dws, DW_SPI_ISR); in dw_spi_check_status()
213 u16 irq_status = dw_readl(dws, DW_SPI_ISR); in dw_spi_transfer_handler()
231 } else if (dws->rx_len <= dw_readl(dws, DW_SPI_RXFTLR)) { in dw_spi_transfer_handler()
614 return dw_readl(dws, DW_SPI_SR) & DW_SPI_SR_BUSY; in dw_spi_ctlr_busy()
624 nents = dw_readl(dws, DW_SPI_TXFLR); in dw_spi_wait_mem_op_done()
831 dws->ver = dw_readl(dws, DW_SPI_VERSION); in dw_spi_hw_init()
848 if (fifo != dw_readl(dws, DW_SPI_TXFTLR)) in dw_spi_hw_init()
863 u32 cr0, tmp = dw_readl(dws, DW_SPI_CTRLR0); in dw_spi_hw_init()
[all …]
H A Dspi-dw.h205 static inline u32 dw_readl(struct dw_spi *dws, u32 offset) in dw_readl() function
254 new_mask = dw_readl(dws, DW_SPI_IMR) & ~mask; in dw_spi_mask_intr()
263 new_mask = dw_readl(dws, DW_SPI_IMR) | mask; in dw_spi_umask_intr()
276 dw_readl(dws, DW_SPI_ICR); in dw_spi_reset_chip()
H A Dspi-dw-dma.c284 return !(dw_readl(dws, DW_SPI_SR) & DW_SPI_SR_TF_EMPT); in dw_spi_dma_tx_busy()
294 nents = dw_readl(dws, DW_SPI_TXFLR); in dw_spi_dma_wait_tx_done()
369 return !!(dw_readl(dws, DW_SPI_SR) & DW_SPI_SR_RF_NOT_EMPT); in dw_spi_dma_rx_busy()
388 nents = dw_readl(dws, DW_SPI_RXFLR); in dw_spi_dma_wait_rx_done()