Lines Matching refs:i2c
28 reg = inreg(i2c, GC_I2C_BCR); in mb862xx_i2c_wait_event()
40 outreg(i2c, GC_I2C_DAR, addr); in mb862xx_i2c_do_address()
41 outreg(i2c, GC_I2C_CCR, I2C_CLOCK_AND_ENABLE); in mb862xx_i2c_do_address()
42 outreg(i2c, GC_I2C_BCR, par->i2c_rs ? I2C_REPEATED_START : I2C_START); in mb862xx_i2c_do_address()
45 par->i2c_rs = !(inreg(i2c, GC_I2C_BSR) & I2C_LRB); in mb862xx_i2c_do_address()
53 outreg(i2c, GC_I2C_DAR, byte); in mb862xx_i2c_write_byte()
54 outreg(i2c, GC_I2C_BCR, I2C_START); in mb862xx_i2c_write_byte()
57 return !(inreg(i2c, GC_I2C_BSR) & I2C_LRB); in mb862xx_i2c_write_byte()
64 outreg(i2c, GC_I2C_BCR, I2C_START | (last ? 0 : I2C_ACK)); in mb862xx_i2c_read_byte()
67 *byte = inreg(i2c, GC_I2C_DAR); in mb862xx_i2c_read_byte()
75 outreg(i2c, GC_I2C_BCR, I2C_STOP); in mb862xx_i2c_stop()
76 outreg(i2c, GC_I2C_CCR, I2C_DISABLE); in mb862xx_i2c_stop()