Searched refs:spi_reg (Results 1 – 3 of 3) sorted by relevance
/openbmc/u-boot/drivers/spi/ |
H A D | mvebu_a3700_spi.c | 29 struct spi_reg { struct 37 struct spi_reg *spireg; argument 41 static void spi_cs_activate(struct spi_reg *reg, int cs) in spi_cs_activate() 46 static void spi_cs_deactivate(struct spi_reg *reg, int cs) in spi_cs_deactivate() 79 static int spi_legacy_shift_byte(struct spi_reg *reg, unsigned int bytelen, in spi_legacy_shift_byte() 138 struct spi_reg *reg = plat->spireg; in mvebu_spi_xfer() 178 struct spi_reg *reg = plat->spireg; in mvebu_spi_set_speed() 200 struct spi_reg *reg = plat->spireg; in mvebu_spi_set_mode() 222 struct spi_reg *reg = plat->spireg; in mvebu_spi_probe() 256 plat->spireg = (struct spi_reg *)devfdt_get_addr(bus); in mvebu_spi_ofdata_to_platdata()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-orion.c | 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() 334 ctrl_reg = spi_reg(orion_spi, ORION_SPI_IF_CTRL_REG); in orion_spi_set_cs() 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() [all …]
|
/openbmc/linux/drivers/net/ethernet/micrel/ |
H A 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()
|