Lines Matching refs:off
143 char *buf, loff_t off, size_t count) in ds1682_eeprom_read() argument
149 buf, off, count); in ds1682_eeprom_read()
151 if (off >= DS1682_EEPROM_SIZE) in ds1682_eeprom_read()
154 if (off + count > DS1682_EEPROM_SIZE) in ds1682_eeprom_read()
155 count = DS1682_EEPROM_SIZE - off; in ds1682_eeprom_read()
157 rc = i2c_smbus_read_i2c_block_data(client, DS1682_REG_EEPROM + off, in ds1682_eeprom_read()
167 char *buf, loff_t off, size_t count) in ds1682_eeprom_write() argument
172 buf, off, count); in ds1682_eeprom_write()
174 if (off >= DS1682_EEPROM_SIZE) in ds1682_eeprom_write()
177 if (off + count > DS1682_EEPROM_SIZE) in ds1682_eeprom_write()
178 count = DS1682_EEPROM_SIZE - off; in ds1682_eeprom_write()
181 if (i2c_smbus_write_i2c_block_data(client, DS1682_REG_EEPROM + off, in ds1682_eeprom_write()