Lines Matching refs:eeprom_addr
90 static int __amdgpu_eeprom_xfer(struct i2c_adapter *i2c_adap, u32 eeprom_addr, in __amdgpu_eeprom_xfer() argument
109 buf_size -= len, eeprom_addr += len, eeprom_buf += len) { in __amdgpu_eeprom_xfer()
112 msgs[0].addr = MAKE_I2C_ADDR(eeprom_addr); in __amdgpu_eeprom_xfer()
114 msgs[0].buf[0] = (eeprom_addr >> 8) & 0xff; in __amdgpu_eeprom_xfer()
115 msgs[0].buf[1] = eeprom_addr & 0xff; in __amdgpu_eeprom_xfer()
134 len = min(EEPROM_PAGE_SIZE - (eeprom_addr & in __amdgpu_eeprom_xfer()
179 static int amdgpu_eeprom_xfer(struct i2c_adapter *i2c_adap, u32 eeprom_addr, in amdgpu_eeprom_xfer() argument
193 return __amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, in amdgpu_eeprom_xfer()
198 eeprom_addr, buf_size, in amdgpu_eeprom_xfer()
211 buf_size -= ps, eeprom_addr += ps, eeprom_buf += ps) { in amdgpu_eeprom_xfer()
214 r = __amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, in amdgpu_eeprom_xfer()
226 u32 eeprom_addr, u8 *eeprom_buf, in amdgpu_eeprom_read() argument
229 return amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, eeprom_buf, bytes, in amdgpu_eeprom_read()
234 u32 eeprom_addr, u8 *eeprom_buf, in amdgpu_eeprom_write() argument
237 return amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, eeprom_buf, bytes, in amdgpu_eeprom_write()