Lines Matching refs:dev_addr
68 __weak int eeprom_write_enable(unsigned dev_addr, int state) in eeprom_write_enable() argument
85 static int eeprom_addr(unsigned dev_addr, unsigned offset, uchar *addr) in eeprom_addr() argument
102 addr[0] |= dev_addr; /* insert device address */ in eeprom_addr()
164 static int eeprom_rw(unsigned dev_addr, unsigned offset, uchar *buffer, in eeprom_rw() argument
177 alen = eeprom_addr(dev_addr, offset, addr); in eeprom_rw()
193 int eeprom_read(unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt) in eeprom_read() argument
200 return eeprom_rw(dev_addr, offset, buffer, cnt, 1); in eeprom_read()
203 int eeprom_write(unsigned dev_addr, unsigned offset, in eeprom_write() argument
208 eeprom_write_enable(dev_addr, 1); in eeprom_write()
215 ret = eeprom_rw(dev_addr, offset, buffer, cnt, 0); in eeprom_write()
217 eeprom_write_enable(dev_addr, 0); in eeprom_write()