Lines Matching refs:membase

81 	void __iomem *membase;  member
109 writel(*priv->buf++, priv->membase + UNIPHIER_FI2C_DTTX); in uniphier_fi2c_fill_txfifo()
123 *priv->buf++ = readl(priv->membase + UNIPHIER_FI2C_DTRX); in uniphier_fi2c_drain_rxfifo()
130 writel(priv->enabled_irqs, priv->membase + UNIPHIER_FI2C_IE); in uniphier_fi2c_set_irqs()
136 writel(mask, priv->membase + UNIPHIER_FI2C_IC); in uniphier_fi2c_clear_irqs()
144 priv->membase + UNIPHIER_FI2C_CR); in uniphier_fi2c_stop()
154 irq_status = readl(priv->membase + UNIPHIER_FI2C_INT); in uniphier_fi2c_interrupt()
213 priv->membase + UNIPHIER_FI2C_CR); in uniphier_fi2c_interrupt()
254 writel(0, priv->membase + UNIPHIER_FI2C_TBC); in uniphier_fi2c_tx_init()
257 priv->membase + UNIPHIER_FI2C_DTTX); in uniphier_fi2c_tx_init()
275 writel(priv->len, priv->membase + UNIPHIER_FI2C_RBC); in uniphier_fi2c_rx_init()
284 writel(0, priv->membase + UNIPHIER_FI2C_RBC); in uniphier_fi2c_rx_init()
293 priv->membase + UNIPHIER_FI2C_DTTX); in uniphier_fi2c_rx_init()
298 writel(UNIPHIER_FI2C_RST_RST, priv->membase + UNIPHIER_FI2C_RST); in uniphier_fi2c_reset()
304 priv->membase + UNIPHIER_FI2C_BRST); in uniphier_fi2c_prepare_operation()
333 priv->membase + UNIPHIER_FI2C_RST); /* reset TX/RX FIFO */ in uniphier_fi2c_master_xfer_one()
349 priv->membase + UNIPHIER_FI2C_CR); in uniphier_fi2c_master_xfer_one()
370 ret = readl_poll_timeout(priv->membase + UNIPHIER_FI2C_SR, in uniphier_fi2c_master_xfer_one()
390 if (readl(priv->membase + UNIPHIER_FI2C_SR) & UNIPHIER_FI2C_SR_DB) { in uniphier_fi2c_check_bus_busy()
446 return !!(readl(priv->membase + UNIPHIER_FI2C_BM) & in uniphier_fi2c_get_scl()
455 priv->membase + UNIPHIER_FI2C_BRST); in uniphier_fi2c_set_scl()
462 return !!(readl(priv->membase + UNIPHIER_FI2C_BM) & in uniphier_fi2c_get_sda()
484 tmp = readl(priv->membase + UNIPHIER_FI2C_CR); in uniphier_fi2c_hw_init()
486 writel(tmp, priv->membase + UNIPHIER_FI2C_CR); in uniphier_fi2c_hw_init()
494 writel(cyc, priv->membase + UNIPHIER_FI2C_CYC); in uniphier_fi2c_hw_init()
500 writel(cyc * 5 / 9, priv->membase + UNIPHIER_FI2C_LCTL); in uniphier_fi2c_hw_init()
505 writel(cyc / 2, priv->membase + UNIPHIER_FI2C_SSUT); in uniphier_fi2c_hw_init()
510 writel(cyc / 16, priv->membase + UNIPHIER_FI2C_DSUT); in uniphier_fi2c_hw_init()
527 priv->membase = devm_platform_ioremap_resource(pdev, 0); in uniphier_fi2c_probe()
528 if (IS_ERR(priv->membase)) in uniphier_fi2c_probe()
529 return PTR_ERR(priv->membase); in uniphier_fi2c_probe()