Lines Matching refs:off
48 static inline size_t w1_f2d_fix_count(loff_t off, size_t count, size_t size) in w1_f2d_fix_count() argument
50 if (off > size) in w1_f2d_fix_count()
53 if ((off + count) > size) in w1_f2d_fix_count()
54 return size - off; in w1_f2d_fix_count()
66 static int w1_f2d_readblock(struct w1_slave *sl, int off, int count, char *buf) in w1_f2d_readblock() argument
74 wrbuf[1] = off & 0xff; in w1_f2d_readblock()
75 wrbuf[2] = off >> 8; in w1_f2d_readblock()
101 char *buf, loff_t off, size_t count) in w1_f2d_read_bin() argument
106 count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE); in w1_f2d_read_bin()
121 if (w1_f2d_readblock(sl, off, block_read, buf) < 0) in w1_f2d_read_bin()
126 off += W1_F2D_READ_MAXLEN; in w1_f2d_read_bin()
207 char *buf, loff_t off, size_t count) in w1_f2d_write_bin() argument
213 count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE); in w1_f2d_write_bin()
220 addr = off; in w1_f2d_write_bin()