Lines Matching defs:addr
11 static int eeprom_write(struct adapter *adapter, u16 addr, u8 *buf, u16 len)
13 return flex_i2c_write(adapter, 0x20000000, 0x50, addr, buf, len);
16 static int eeprom_lrc_write(struct adapter *adapter, u32 addr,
22 if (eeprom_write(adapter, addr, wbuf, len) == len) {
23 if (eeprom_lrc_read(adapter, addr, len, rbuf, retries) == 1)
91 u16 addr, u8 *buf, u16 len)
93 return fc->i2c_request(fc,FC_READ,FC_I2C_PORT_EEPROM,0x50,addr,buf,len);
108 flexcop_access_op_t op, u16 addr, u8 *buf, u16 len, int retries)
111 u8 chipaddr = 0x50 | ((addr >> 8) & 3);
114 addr & 0xff, buf, len);
121 static int flexcop_eeprom_lrc_read(struct flexcop_device *fc, u16 addr,
124 int ret = flexcop_eeprom_request(fc, FC_READ, addr, buf, len, retries);