Lines Matching refs:chip_addr

57 	msg->addr = chip->chip_addr;  in i2c_setup_offset()
86 ptr->addr = chip->chip_addr; in i2c_read_bytewise()
142 ptr->addr = chip->chip_addr; in dm_i2c_read()
249 static int i2c_probe_chip(struct udevice *bus, uint chip_addr, in i2c_probe_chip() argument
257 ret = ops->probe_chip(bus, chip_addr, chip_flags); in i2c_probe_chip()
266 msg->addr = chip_addr; in i2c_probe_chip()
274 static int i2c_bind_driver(struct udevice *bus, uint chip_addr, uint offset_len, in i2c_bind_driver() argument
282 snprintf(name, sizeof(name), "generic_%x", chip_addr); in i2c_bind_driver()
293 chip->chip_addr = chip_addr; in i2c_bind_driver()
314 int i2c_get_chip(struct udevice *bus, uint chip_addr, uint offset_len, in i2c_get_chip() argument
320 bus->name, chip_addr); in i2c_get_chip()
326 if (chip->chip_addr == chip_addr) { in i2c_get_chip()
336 return i2c_bind_driver(bus, chip_addr, offset_len, devp); in i2c_get_chip()
339 int i2c_get_chip_for_busnum(int busnum, int chip_addr, uint offset_len, in i2c_get_chip_for_busnum() argument
350 ret = i2c_get_chip(bus, chip_addr, offset_len, devp); in i2c_get_chip_for_busnum()
352 debug("Cannot find I2C chip %02x on bus %d\n", chip_addr, in i2c_get_chip_for_busnum()
360 int dm_i2c_probe(struct udevice *bus, uint chip_addr, uint chip_flags, in dm_i2c_probe() argument
368 ret = i2c_probe_chip(bus, chip_addr, chip_flags); in dm_i2c_probe()
370 chip_addr, ret); in dm_i2c_probe()
375 ret = i2c_get_chip(bus, chip_addr, 1, devp); in dm_i2c_probe()
579 chip->chip_addr = addr; in i2c_chip_ofdata_to_platdata()