Searched refs:spi_reg (Results 1 – 2 of 2) sorted by relevance
/linux-6.6.21/drivers/spi/ |
D | spi-orion.c | 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() [all …]
|
/linux-6.6.21/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 2699 static void spi_reg(struct ksz_hw *hw, u8 data, u8 reg) in spi_reg() function 2748 spi_reg(hw, AT93C_READ, reg); in eeprom_read() 2771 spi_reg(hw, AT93C_CODE, AT93C_WR_ON); in eeprom_write() 2777 spi_reg(hw, AT93C_ERASE, reg); in eeprom_write() 2793 spi_reg(hw, AT93C_WRITE, reg); in eeprom_write() 2810 spi_reg(hw, AT93C_CODE, AT93C_WR_OFF); in eeprom_write()
|