Lines Matching refs:chip_addr
41 uchar chip_addr,/* I2C device address on the bus */ in i2c_read_byte() argument
52 i2c_chan, chip_addr, byte_addr)); in i2c_read_byte()
63 temp = (byte_addr << 16) | ((chip_addr & 0x07) << 8) | in i2c_read_byte()
64 ((chip_addr >> 3) & 0x0F); in i2c_read_byte()
130 int i2c_read (uchar chip_addr, uint byte_addr, int alen, in i2c_read() argument
137 if (0xD0 == (chip_addr & ~0x07)) { in i2c_read()
139 chip_addr &= 0x7F; in i2c_read()
142 if (chip_addr <= 0x7F && (byte_addr + len) <= (0x01 << (alen * 8))) { in i2c_read()
144 op_status = i2c_read_byte(i2c_if, chip_addr, byte_addr++, buffer++); in i2c_read()
160 static int i2c_write_byte (uchar chip_addr,/* I2C device address on the bus */ in i2c_write_byte() argument
180 ((chip_addr & 0x07) << 8) | ((chip_addr >> 3) & 0x0F); in i2c_write_byte()
236 int i2c_write (uchar chip_addr, uint byte_addr, int alen, uchar * buffer, in i2c_write() argument
242 if (chip_addr <= 0x7F && (byte_addr + len) <= (0x01 << (alen * 8))) { in i2c_write()
245 i2c_write_byte (chip_addr, byte_addr++, buffer++); in i2c_write()