Lines Matching refs:base

52 	void __iomem *base;  member
77 hw->base + ALTERA_SPI_SLAVE_SEL); in altera_spi_chipsel()
79 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel()
84 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel()
85 writel(0, hw->base + ALTERA_SPI_SLAVE_SEL); in altera_spi_chipsel()
92 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel()
97 hw->base + ALTERA_SPI_SLAVE_SEL); in altera_spi_chipsel()
99 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel()
132 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_txrx()
135 writel(hw_txbyte(hw, 0), hw->base + ALTERA_SPI_TXDATA); in altera_spi_txrx()
140 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_txrx()
146 hw->base + ALTERA_SPI_TXDATA); in altera_spi_txrx()
148 while (!(readl(hw->base + ALTERA_SPI_STATUS) & in altera_spi_txrx()
152 rxd = readl(hw->base + ALTERA_SPI_RXDATA); in altera_spi_txrx()
177 rxd = readl(hw->base + ALTERA_SPI_RXDATA); in altera_spi_irq()
193 writel(hw_txbyte(hw, hw->count), hw->base + ALTERA_SPI_TXDATA); in altera_spi_irq()
228 hw->base = devm_ioremap_resource(&pdev->dev, res); in altera_spi_probe()
229 if (IS_ERR(hw->base)) { in altera_spi_probe()
230 err = PTR_ERR(hw->base); in altera_spi_probe()
235 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_probe()
236 writel(0, hw->base + ALTERA_SPI_STATUS); /* clear status reg */ in altera_spi_probe()
237 if (readl(hw->base + ALTERA_SPI_STATUS) & ALTERA_SPI_STATUS_RRDY_MSK) in altera_spi_probe()
238 readl(hw->base + ALTERA_SPI_RXDATA); /* flush rxdata */ in altera_spi_probe()
253 dev_info(&pdev->dev, "base %p, irq %d\n", hw->base, hw->irq); in altera_spi_probe()