Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/spi/
Dspi-dw-core.c114 tx_room = dws->fifo_len - dw_readl(dws, DW_SPI_TXFLR); in dw_spi_tx_max()
132 return min_t(u32, dws->rx_len, dw_readl(dws, DW_SPI_RXFLR)); in dw_spi_rx_max()
183 irq_status = dw_readl(dws, DW_SPI_RISR); in dw_spi_check_status()
185 irq_status = dw_readl(dws, DW_SPI_ISR); in dw_spi_check_status()
215 u16 irq_status = dw_readl(dws, DW_SPI_ISR); in dw_spi_transfer_handler()
233 } else if (dws->rx_len <= dw_readl(dws, DW_SPI_RXFTLR)) { in dw_spi_transfer_handler()
255 u16 irq_status = dw_readl(dws, DW_SPI_ISR) & DW_SPI_INT_MASK; in dw_spi_irq()
612 return dw_readl(dws, DW_SPI_SR) & DW_SPI_SR_BUSY; in dw_spi_ctlr_busy()
622 nents = dw_readl(dws, DW_SPI_TXFLR); in dw_spi_wait_mem_op_done()
829 dws->ver = dw_readl(dws, DW_SPI_VERSION); in dw_spi_hw_init()
[all …]
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()
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()