Lines Matching refs:writel
76 writel(1 << spi->chip_select, 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()
96 writel(1 << spi->chip_select, 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()
145 writel(hw_txbyte(hw, hw->count), in altera_spi_txrx()
193 writel(hw_txbyte(hw, hw->count), hw->base + ALTERA_SPI_TXDATA); in altera_spi_irq()
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()