Lines Matching refs:iobase
84 u32 __iomem *iobase; member
100 return !xlr_i2c_busy(priv, xlr_i2c_rdreg(priv->iobase, XLR_I2C_STATUS)); in xlr_i2c_idle()
113 status = xlr_i2c_rdreg(priv->iobase, XLR_I2C_STATUS); in xlr_i2c_wait()
123 xlr_i2c_wreg(priv->iobase, XLR_I2C_DATAOUT, in xlr_i2c_tx_irq()
133 xlr_i2c_rdreg(priv->iobase, XLR_I2C_DATAIN); in xlr_i2c_rx_irq()
142 int_stat = xlr_i2c_rdreg(priv->iobase, XLR_I2C_INT_STAT); in xlr_i2c_irq()
146 xlr_i2c_wreg(priv->iobase, XLR_I2C_INT_STAT, int_stat); in xlr_i2c_irq()
151 status = xlr_i2c_rdreg(priv->iobase, XLR_I2C_STATUS); in xlr_i2c_irq()
177 xlr_i2c_wreg(priv->iobase, XLR_I2C_ADDR, offset); in xlr_i2c_tx()
178 xlr_i2c_wreg(priv->iobase, XLR_I2C_DEVADDR, addr); in xlr_i2c_tx()
179 xlr_i2c_wreg(priv->iobase, XLR_I2C_CFG, in xlr_i2c_tx()
187 xlr_i2c_wreg(priv->iobase, XLR_I2C_BYTECNT, len - 1); in xlr_i2c_tx()
191 xlr_i2c_wreg(priv->iobase, XLR_I2C_BYTECNT, len - 2); in xlr_i2c_tx()
192 xlr_i2c_wreg(priv->iobase, XLR_I2C_DATAOUT, buf[1]); in xlr_i2c_tx()
201 xlr_i2c_wreg(priv->iobase, XLR_I2C_STARTXFR, xfer); in xlr_i2c_tx()
208 i2c_status = xlr_i2c_rdreg(priv->iobase, XLR_I2C_STATUS); in xlr_i2c_tx()
211 xlr_i2c_wreg(priv->iobase, XLR_I2C_DATAOUT, buf[pos++]); in xlr_i2c_tx()
241 xlr_i2c_wreg(priv->iobase, XLR_I2C_CFG, in xlr_i2c_rx()
243 xlr_i2c_wreg(priv->iobase, XLR_I2C_BYTECNT, len - 1); in xlr_i2c_rx()
244 xlr_i2c_wreg(priv->iobase, XLR_I2C_DEVADDR, addr); in xlr_i2c_rx()
253 xlr_i2c_wreg(priv->iobase, XLR_I2C_STARTXFR, XLR_I2C_STARTXFR_RD); in xlr_i2c_rx()
260 i2c_status = xlr_i2c_rdreg(priv->iobase, XLR_I2C_STATUS); in xlr_i2c_rx()
266 xlr_i2c_rdreg(priv->iobase, XLR_I2C_DATAIN); in xlr_i2c_rx()
303 xlr_i2c_wreg(priv->iobase, XLR_I2C_INT_EN, 0xf); in xlr_i2c_xfer()
318 xlr_i2c_wreg(priv->iobase, XLR_I2C_INT_EN, 0); in xlr_i2c_xfer()
384 priv->iobase = devm_ioremap_resource(&pdev->dev, res); in xlr_i2c_probe()
385 if (IS_ERR(priv->iobase)) in xlr_i2c_probe()
386 return PTR_ERR(priv->iobase); in xlr_i2c_probe()
393 xlr_i2c_wreg(priv->iobase, XLR_I2C_INT_EN, 0); in xlr_i2c_probe()
394 xlr_i2c_wreg(priv->iobase, XLR_I2C_INT_STAT, 0xf); in xlr_i2c_probe()
417 xlr_i2c_wreg(priv->iobase, XLR_I2C_CLKDIV, clk_div); in xlr_i2c_probe()