Lines Matching refs:i2c_control_regs

136 				(((*status = readb(bp->i2c_control_regs + 0))  in wait_for_pin()
160 writeb(address, bp->i2c_control_regs + 0x1); in bbc_i2c_writeb()
161 writeb(I2C_PCF_START, bp->i2c_control_regs + 0x0); in bbc_i2c_writeb()
165 writeb(off, bp->i2c_control_regs + 0x1); in bbc_i2c_writeb()
170 writeb(val, bp->i2c_control_regs + 0x1); in bbc_i2c_writeb()
177 writeb(I2C_PCF_STOP, bp->i2c_control_regs + 0x0); in bbc_i2c_writeb()
190 writeb(address, bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
191 writeb(I2C_PCF_START, bp->i2c_control_regs + 0x0); in bbc_i2c_readb()
195 writeb(off, bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
200 writeb(I2C_PCF_STOP, bp->i2c_control_regs + 0x0); in bbc_i2c_readb()
204 writeb(address, bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
205 writeb(I2C_PCF_START, bp->i2c_control_regs + 0x0); in bbc_i2c_readb()
212 (void) readb(bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
216 writeb(I2C_PCF_ESO | I2C_PCF_ENI, bp->i2c_control_regs + 0x0); in bbc_i2c_readb()
217 *byte = readb(bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
224 writeb(I2C_PCF_STOP, bp->i2c_control_regs + 0x0); in bbc_i2c_readb()
225 (void) readb(bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
279 !(readb(bp->i2c_control_regs + 0x0) & I2C_PCF_PIN)) in bbc_i2c_interrupt()
287 writeb(I2C_PCF_PIN, bp->i2c_control_regs + 0x0); in reset_one_i2c()
288 writeb(bp->own, bp->i2c_control_regs + 0x1); in reset_one_i2c()
289 writeb(I2C_PCF_PIN | I2C_PCF_ES1, bp->i2c_control_regs + 0x0); in reset_one_i2c()
290 writeb(bp->clock, bp->i2c_control_regs + 0x1); in reset_one_i2c()
291 writeb(I2C_PCF_IDLE, bp->i2c_control_regs + 0x0); in reset_one_i2c()
307 bp->i2c_control_regs = of_ioremap(&op->resource[0], 0, 0x2, "bbc_i2c_regs"); in attach_one_i2c()
308 if (!bp->i2c_control_regs) in attach_one_i2c()
339 writeb(I2C_PCF_PIN, bp->i2c_control_regs + 0x0); in attach_one_i2c()
340 bp->own = readb(bp->i2c_control_regs + 0x01); in attach_one_i2c()
341 writeb(I2C_PCF_PIN | I2C_PCF_ES1, bp->i2c_control_regs + 0x0); in attach_one_i2c()
342 bp->clock = readb(bp->i2c_control_regs + 0x01); in attach_one_i2c()
345 bp->index, bp->i2c_control_regs, entry, bp->own, bp->clock); in attach_one_i2c()
354 if (bp->i2c_control_regs) in attach_one_i2c()
355 of_iounmap(&op->resource[0], bp->i2c_control_regs, 2); in attach_one_i2c()
377 if (bp->i2c_control_regs) in bbc_i2c_probe()
378 of_iounmap(&op->resource[1], bp->i2c_control_regs, 2); in bbc_i2c_probe()
397 if (bp->i2c_control_regs) in bbc_i2c_remove()
398 of_iounmap(&op->resource[1], bp->i2c_control_regs, 2); in bbc_i2c_remove()