Lines Matching refs:chip_addr
13 static int i2c_compat_get_device(uint chip_addr, int alen, in i2c_compat_get_device() argument
19 ret = i2c_get_chip_for_busnum(cur_busnum, chip_addr, alen, devp); in i2c_compat_get_device()
25 chip_addr, alen, chip->offset_len); in i2c_compat_get_device()
32 int i2c_probe(uint8_t chip_addr) in i2c_probe() argument
46 return dm_i2c_probe(bus, chip_addr, 0, &dev); in i2c_probe()
49 int i2c_read(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer, in i2c_read() argument
55 ret = i2c_compat_get_device(chip_addr, alen, &dev); in i2c_read()
62 int i2c_write(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer, in i2c_write() argument
68 ret = i2c_compat_get_device(chip_addr, alen, &dev); in i2c_write()
109 uint8_t i2c_reg_read(uint8_t chip_addr, uint8_t offset) in i2c_reg_read() argument
114 ret = i2c_compat_get_device(chip_addr, 1, &dev); in i2c_reg_read()
120 void i2c_reg_write(uint8_t chip_addr, uint8_t offset, uint8_t val) in i2c_reg_write() argument
125 ret = i2c_compat_get_device(chip_addr, 1, &dev); in i2c_reg_write()