Searched refs:spi_reg (Results 1 – 2 of 2) sorted by relevance
/drivers/spi/ |
D | spi-orion.c | 109 static inline void __iomem *spi_reg(struct orion_spi *orion_spi, u32 reg) in spi_reg() function 117 void __iomem *reg_addr = spi_reg(orion_spi, reg); in orion_spi_setbits() 128 void __iomem *reg_addr = spi_reg(orion_spi, reg); in orion_spi_clrbits() 226 reg = readl(spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG)); in orion_spi_baudrate_set() 228 writel(reg, spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG)); in orion_spi_baudrate_set() 241 reg = readl(spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG)); in orion_spi_mode_set() 252 writel(reg, spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG)); in orion_spi_mode_set() 277 reg = readl(spi_reg(orion_spi, ORION_SPI_TIMING_PARAMS_REG)); in orion_spi_50mhz_ac_timing_erratum() 287 writel(reg, spi_reg(orion_spi, ORION_SPI_TIMING_PARAMS_REG)); in orion_spi_50mhz_ac_timing_erratum() 335 ctrl_reg = spi_reg(orion_spi, ORION_SPI_IF_CTRL_REG); in orion_spi_set_cs() [all …]
|
/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 2993 static void spi_reg(struct ksz_hw *hw, u8 data, u8 reg) in spi_reg() function 3042 spi_reg(hw, AT93C_READ, reg); in eeprom_read() 3065 spi_reg(hw, AT93C_CODE, AT93C_WR_ON); in eeprom_write() 3071 spi_reg(hw, AT93C_ERASE, reg); in eeprom_write() 3087 spi_reg(hw, AT93C_WRITE, reg); in eeprom_write() 3104 spi_reg(hw, AT93C_CODE, AT93C_WR_OFF); in eeprom_write()
|