Lines Matching full:reg_base
79 void __iomem *reg_base; member
116 regval = readl(par->reg_base + SPI_MST_CTL_REG_OFFSET(p->hw_inst)); in pci1xxxx_spi_set_cs()
124 writel(regval, par->reg_base + SPI_MST_CTL_REG_OFFSET(p->hw_inst)); in pci1xxxx_spi_set_cs()
169 regval = readl(par->reg_base + SPI_MST_EVENT_REG_OFFSET(p->hw_inst)); in pci1xxxx_spi_transfer_one()
170 writel(regval, par->reg_base + SPI_MST_EVENT_REG_OFFSET(p->hw_inst)); in pci1xxxx_spi_transfer_one()
186 memcpy_toio(par->reg_base + SPI_MST_CMD_BUF_OFFSET(p->hw_inst), in pci1xxxx_spi_transfer_one()
189 regval = readl(par->reg_base + in pci1xxxx_spi_transfer_one()
202 writel(regval, par->reg_base + in pci1xxxx_spi_transfer_one()
204 regval = readl(par->reg_base + in pci1xxxx_spi_transfer_one()
207 writel(regval, par->reg_base + in pci1xxxx_spi_transfer_one()
217 memcpy_fromio(&rx_buf[bytes_recvd], par->reg_base + in pci1xxxx_spi_transfer_one()
235 regval = readl(p->parent->reg_base + SPI_MST_EVENT_REG_OFFSET(p->hw_inst)); in pci1xxxx_spi_isr()
242 writel(regval, p->parent->reg_base + SPI_MST_EVENT_REG_OFFSET(p->hw_inst)); in pci1xxxx_spi_isr()
297 spi_bus->reg_base = pcim_iomap(pdev, 0, pci_resource_len(pdev, 0)); in pci1xxxx_spi_probe()
298 if (!spi_bus->reg_base) { in pci1xxxx_spi_probe()
312 regval = readl(spi_bus->reg_base + in pci1xxxx_spi_probe()
315 writel(regval, spi_bus->reg_base + in pci1xxxx_spi_probe()
330 regval = readl(spi_bus->reg_base + SPI_PCI_CTRL_REG_OFFSET(0)); in pci1xxxx_spi_probe()
336 writel(regval, spi_bus->reg_base + SPI_PCI_CTRL_REG_OFFSET(0)); in pci1xxxx_spi_probe()
344 regval = readl(spi_bus->reg_base + in pci1xxxx_spi_probe()
347 writel(regval, spi_bus->reg_base + in pci1xxxx_spi_probe()
392 regval = readl(spi_ptr->reg_base + in store_restore_config()
396 regval = readl(spi_ptr->reg_base + in store_restore_config()
401 regval = readl(spi_ptr->reg_base + SPI_MST_CTL_REG_OFFSET(inst)); in store_restore_config()
405 spi_ptr->reg_base + SPI_MST_CTL_REG_OFFSET(inst)); in store_restore_config()
407 spi_ptr->reg_base + SPI_PCI_CTRL_REG_OFFSET(inst)); in store_restore_config()
421 writel(regval, spi_ptr->reg_base + in pci1xxxx_spi_resume()
447 writel(reg1, spi_ptr->reg_base + in pci1xxxx_spi_suspend()