Lines Matching refs:i2c_addr
227 static int parse_i2c_bus_addr(int *i2c_bus, ulong *i2c_addr, int argc, in parse_i2c_bus_addr() argument
236 *i2c_addr = CONFIG_SYS_DEF_EEPROM_ADDR; in parse_i2c_bus_addr()
243 *i2c_addr = parse_numeric_param(argv[0]); in parse_i2c_bus_addr()
250 *i2c_addr = parse_numeric_param(argv[1]); in parse_i2c_bus_addr()
294 ulong i2c_addr, int layout_ver, char *key, in eeprom_execute_command() argument
309 printf(fmt, i2c_addr, "read", addr, off, cnt); in eeprom_execute_command()
311 rcode = eeprom_read(i2c_addr, off, (uchar *)addr, cnt); in eeprom_execute_command()
316 printf(fmt, i2c_addr, "write", addr, off, cnt); in eeprom_execute_command()
318 rcode = eeprom_write(i2c_addr, off, (uchar *)addr, cnt); in eeprom_execute_command()
325 rcode = eeprom_read(i2c_addr, 0, eeprom_buf, CONFIG_SYS_EEPROM_SIZE); in eeprom_execute_command()
339 rcode = eeprom_write(i2c_addr, 0, layout.data, CONFIG_SYS_EEPROM_SIZE); in eeprom_execute_command()
351 ulong i2c_addr = -1, addr = 0, cnt = 0, off = 0; in do_eeprom() local
380 ret = parse_i2c_bus_addr(&i2c_bus, &i2c_addr, argc, in do_eeprom()
384 ret = parse_i2c_bus_addr(&i2c_bus, &i2c_addr, argc, in do_eeprom()
388 ret = parse_i2c_bus_addr(&i2c_bus, &i2c_addr, argc, in do_eeprom()
419 return eeprom_execute_command(action, i2c_bus, i2c_addr, layout_ver, in do_eeprom()