Lines Matching refs:addr
26 static int w1_ds2760_io(struct device *dev, char *buf, int addr, size_t count,
36 if (addr > DS2760_DATA_SIZE || addr < 0) {
40 if (addr + count > DS2760_DATA_SIZE)
41 count = DS2760_DATA_SIZE - addr;
46 w1_write_8(sl->master, addr);
50 w1_write_8(sl->master, addr);
62 int w1_ds2760_read(struct device *dev, char *buf, int addr, size_t count)
64 return w1_ds2760_io(dev, buf, addr, count, 0);
67 int w1_ds2760_write(struct device *dev, char *buf, int addr, size_t count)
69 return w1_ds2760_io(dev, buf, addr, count, 1);
72 static int w1_ds2760_eeprom_cmd(struct device *dev, int addr, int cmd)
83 w1_write_8(sl->master, addr);
90 int w1_ds2760_store_eeprom(struct device *dev, int addr)
92 return w1_ds2760_eeprom_cmd(dev, addr, W1_DS2760_COPY_DATA);
95 int w1_ds2760_recall_eeprom(struct device *dev, int addr)
97 return w1_ds2760_eeprom_cmd(dev, addr, W1_DS2760_RECALL_DATA);