Lines Matching refs:count
26 static int w1_ds2760_io(struct device *dev, char *buf, int addr, size_t count, in w1_ds2760_io() argument
37 count = 0; in w1_ds2760_io()
40 if (addr + count > DS2760_DATA_SIZE) in w1_ds2760_io()
41 count = DS2760_DATA_SIZE - addr; in w1_ds2760_io()
47 count = w1_read_block(sl->master, buf, count); in w1_ds2760_io()
51 w1_write_block(sl->master, buf, count); in w1_ds2760_io()
59 return count; in w1_ds2760_io()
62 int w1_ds2760_read(struct device *dev, char *buf, int addr, size_t count) in w1_ds2760_read() argument
64 return w1_ds2760_io(dev, buf, addr, count, 0); in w1_ds2760_read()
67 int w1_ds2760_write(struct device *dev, char *buf, int addr, size_t count) in w1_ds2760_write() argument
69 return w1_ds2760_io(dev, buf, addr, count, 1); in w1_ds2760_write()
102 loff_t off, size_t count) in w1_slave_read() argument
105 return w1_ds2760_read(dev, buf, off, count); in w1_slave_read()