Lines Matching refs:eeprom_addr
92 static int __amdgpu_eeprom_xfer(struct i2c_adapter *i2c_adap, u32 eeprom_addr, in __amdgpu_eeprom_xfer() argument
111 buf_size -= len, eeprom_addr += len, eeprom_buf += len) { in __amdgpu_eeprom_xfer()
114 msgs[0].addr = MAKE_I2C_ADDR(eeprom_addr); in __amdgpu_eeprom_xfer()
116 msgs[0].buf[0] = (eeprom_addr >> 8) & 0xff; in __amdgpu_eeprom_xfer()
117 msgs[0].buf[1] = eeprom_addr & 0xff; in __amdgpu_eeprom_xfer()
136 len = min(EEPROM_PAGE_SIZE - (eeprom_addr & in __amdgpu_eeprom_xfer()
181 static int amdgpu_eeprom_xfer(struct i2c_adapter *i2c_adap, u32 eeprom_addr, in amdgpu_eeprom_xfer() argument
195 return __amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, in amdgpu_eeprom_xfer()
200 eeprom_addr, buf_size, in amdgpu_eeprom_xfer()
213 buf_size -= ps, eeprom_addr += ps, eeprom_buf += ps) { in amdgpu_eeprom_xfer()
216 r = __amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, in amdgpu_eeprom_xfer()
228 u32 eeprom_addr, u8 *eeprom_buf, in amdgpu_eeprom_read() argument
231 return amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, eeprom_buf, bytes, in amdgpu_eeprom_read()
236 u32 eeprom_addr, u8 *eeprom_buf, in amdgpu_eeprom_write() argument
239 return amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, eeprom_buf, bytes, in amdgpu_eeprom_write()