Searched refs:EEPR_PG_SZ (Results 1 – 1 of 1) sorted by relevance
27 #define EEPR_PG_SZ 0x80 macro195 pages = size / EEPR_PG_SZ; in factoryset_read_eeprom()206 ret = dm_i2c_read(dev, (OFF_PG + i) * EEPR_PG_SZ, in factoryset_read_eeprom()207 eeprom_buf + (i * EEPR_PG_SZ), EEPR_PG_SZ); in factoryset_read_eeprom()211 if (i2c_read(i2c_addr, (OFF_PG + i) * EEPR_PG_SZ, 2, in factoryset_read_eeprom()212 eeprom_buf + (i * EEPR_PG_SZ), EEPR_PG_SZ)) in factoryset_read_eeprom()217 if (size % EEPR_PG_SZ) { in factoryset_read_eeprom()220 eeprom_buf + (pages * EEPR_PG_SZ), in factoryset_read_eeprom()221 size % EEPR_PG_SZ); in factoryset_read_eeprom()226 eeprom_buf + (pages * EEPR_PG_SZ), in factoryset_read_eeprom()[all …]
Completed in 3 milliseconds