Lines Matching defs:count
43 * Check the file size bounds and adjusts count as needed.
46 static inline size_t w1_f2d_fix_count(loff_t off, size_t count, size_t size)
51 if ((off + count) > size)
54 return count;
62 * count must not exceed W1_F2D_READ_MAXLEN.
64 static int w1_f2d_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_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE);
105 if (count == 0)
120 count = -EIO;
129 return count;
205 loff_t off, size_t count)
211 count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE);
212 if (count == 0)
219 len = count;
229 count = -EIO;
243 count = -EIO;
250 count = -EIO;
262 return count;