Lines Matching refs:spi_reg
108 static inline void __iomem *spi_reg(struct orion_spi *orion_spi, u32 reg) in spi_reg() function
116 void __iomem *reg_addr = spi_reg(orion_spi, reg); in orion_spi_setbits()
127 void __iomem *reg_addr = spi_reg(orion_spi, reg); in orion_spi_clrbits()
225 reg = readl(spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG)); in orion_spi_baudrate_set()
227 writel(reg, spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG)); in orion_spi_baudrate_set()
240 reg = readl(spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG)); in orion_spi_mode_set()
251 writel(reg, spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG)); in orion_spi_mode_set()
276 reg = readl(spi_reg(orion_spi, ORION_SPI_TIMING_PARAMS_REG)); in orion_spi_50mhz_ac_timing_erratum()
286 writel(reg, spi_reg(orion_spi, ORION_SPI_TIMING_PARAMS_REG)); in orion_spi_50mhz_ac_timing_erratum()
334 ctrl_reg = spi_reg(orion_spi, ORION_SPI_IF_CTRL_REG); in orion_spi_set_cs()
372 if (readl(spi_reg(orion_spi, ORION_SPI_INT_CAUSE_REG))) in orion_spi_wait_till_ready()
396 tx_reg = spi_reg(orion_spi, ORION_SPI_DATA_OUT_REG); in orion_spi_write_read_8bit()
397 rx_reg = spi_reg(orion_spi, ORION_SPI_DATA_IN_REG); in orion_spi_write_read_8bit()
398 int_reg = spi_reg(orion_spi, ORION_SPI_INT_CAUSE_REG); in orion_spi_write_read_8bit()
443 tx_reg = spi_reg(orion_spi, ORION_SPI_DATA_OUT_REG); in orion_spi_write_read_16bit()
444 rx_reg = spi_reg(orion_spi, ORION_SPI_DATA_IN_REG); in orion_spi_write_read_16bit()
445 int_reg = spi_reg(orion_spi, ORION_SPI_INT_CAUSE_REG); in orion_spi_write_read_16bit()
572 writel(0, spi_reg(orion_spi, SPI_DIRECT_WRITE_CONFIG_REG)); in orion_spi_reset()