Lines Matching refs:i2c_control_regs
60 void *i2c_control_regs; member
192 *status = val = readb(bp->i2c_control_regs + 0); in wait_for_pin()
216 writeb(address, bp->i2c_control_regs + 0x1); in bbc_i2c_writeb()
217 writeb(I2C_PCF_START, bp->i2c_control_regs + 0x0); in bbc_i2c_writeb()
221 writeb(off, bp->i2c_control_regs + 0x1); in bbc_i2c_writeb()
226 writeb(val, bp->i2c_control_regs + 0x1); in bbc_i2c_writeb()
233 writeb(I2C_PCF_STOP, bp->i2c_control_regs + 0x0); in bbc_i2c_writeb()
246 writeb(address, bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
247 writeb(I2C_PCF_START, bp->i2c_control_regs + 0x0); in bbc_i2c_readb()
251 writeb(off, bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
256 writeb(I2C_PCF_STOP, bp->i2c_control_regs + 0x0); in bbc_i2c_readb()
260 writeb(address, bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
261 writeb(I2C_PCF_START, bp->i2c_control_regs + 0x0); in bbc_i2c_readb()
268 (void) readb(bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
272 writeb(I2C_PCF_ESO | I2C_PCF_ENI, bp->i2c_control_regs + 0x0); in bbc_i2c_readb()
273 *byte = readb(bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
280 writeb(I2C_PCF_STOP, bp->i2c_control_regs + 0x0); in bbc_i2c_readb()
281 (void) readb(bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
341 !(readb(bp->i2c_control_regs + 0x0) & I2C_PCF_PIN)) in bbc_i2c_interrupt()
347 writeb(I2C_PCF_PIN, bp->i2c_control_regs + 0x0); in reset_one_i2c()
348 writeb(bp->own, bp->i2c_control_regs + 0x1); in reset_one_i2c()
349 writeb(I2C_PCF_PIN | I2C_PCF_ES1, bp->i2c_control_regs + 0x0); in reset_one_i2c()
350 writeb(bp->clock, bp->i2c_control_regs + 0x1); in reset_one_i2c()
351 writeb(I2C_PCF_IDLE, bp->i2c_control_regs + 0x0); in reset_one_i2c()
364 bp->i2c_control_regs = ioremap(edev->resource[0].start, 0x2); in attach_one_i2c()
365 if (!bp->i2c_control_regs) in attach_one_i2c()
395 writeb(I2C_PCF_PIN, bp->i2c_control_regs + 0x0); in attach_one_i2c()
396 bp->own = readb(bp->i2c_control_regs + 0x01); in attach_one_i2c()
397 writeb(I2C_PCF_PIN | I2C_PCF_ES1, bp->i2c_control_regs + 0x0); in attach_one_i2c()
398 bp->clock = readb(bp->i2c_control_regs + 0x01); in attach_one_i2c()
401 bp->index, bp->i2c_control_regs, entry, bp->own, bp->clock); in attach_one_i2c()
410 if (bp->i2c_control_regs) in attach_one_i2c()
411 iounmap(bp->i2c_control_regs); in attach_one_i2c()
474 if (bp->i2c_control_regs) in bbc_i2c_cleanup()
475 iounmap(bp->i2c_control_regs); in bbc_i2c_cleanup()