Lines Matching defs:count
44 * Check the file size bounds and adjusts count as needed.
47 static inline size_t w1_f14_fix_count(loff_t off, size_t count, size_t size)
52 if ((off + count) > size)
55 return count;
63 * count must not exceed W1_F14_READ_MAXLEN.
65 static int w1_f14_readblock(struct w1_slave *sl, int off, int count, char *buf)
79 w1_read_block(sl->master, buf, count);
85 w1_read_block(sl->master, cmp, count);
87 if (!memcmp(cmp, buf, count))
99 loff_t off, size_t count)
102 int todo = count;
104 count = w1_f14_fix_count(off, count, W1_F14_EEPROM_SIZE);
105 if (count == 0)
120 count = -EIO;
129 return count;
206 loff_t off, size_t count)
212 count = w1_f14_fix_count(off, count, W1_F14_EEPROM_SIZE);
213 if (count == 0)
220 len = count;
230 count = -EIO;
244 count = -EIO;
251 count = -EIO;
263 return count;