Lines Matching refs:count
165 unsigned offset, size_t count) in at24_eeprom_read() argument
193 if (count > io_limit) in at24_eeprom_read()
194 count = io_limit; in at24_eeprom_read()
198 if (count > I2C_SMBUS_BLOCK_MAX) in at24_eeprom_read()
199 count = I2C_SMBUS_BLOCK_MAX; in at24_eeprom_read()
220 msg[1].len = count; in at24_eeprom_read()
233 count, buf); in at24_eeprom_read()
237 status = count; in at24_eeprom_read()
240 count, offset, status, jiffies); in at24_eeprom_read()
242 if (status == count) in at24_eeprom_read()
243 return count; in at24_eeprom_read()
253 char *buf, loff_t off, size_t count) in at24_read() argument
257 if (unlikely(!count)) in at24_read()
258 return count; in at24_read()
266 while (count) { in at24_read()
269 status = at24_eeprom_read(at24, buf, off, count); in at24_read()
277 count -= status; in at24_read()
288 char *buf, loff_t off, size_t count) in at24_bin_read() argument
293 return at24_read(at24, buf, off, count); in at24_bin_read()
306 unsigned offset, size_t count) in at24_eeprom_write() argument
318 if (count > at24->write_max) in at24_eeprom_write()
319 count = at24->write_max; in at24_eeprom_write()
323 if (offset + count > next_page) in at24_eeprom_write()
324 count = next_page - offset; in at24_eeprom_write()
339 memcpy(&msg.buf[i], buf, count); in at24_eeprom_write()
340 msg.len = i + count; in at24_eeprom_write()
355 offset, count, buf); in at24_eeprom_write()
364 status = count; in at24_eeprom_write()
368 status = count; in at24_eeprom_write()
371 count, offset, status, jiffies); in at24_eeprom_write()
373 if (status == count) in at24_eeprom_write()
374 return count; in at24_eeprom_write()
384 size_t count) in at24_write() argument
388 if (unlikely(!count)) in at24_write()
389 return count; in at24_write()
397 while (count) { in at24_write()
400 status = at24_eeprom_write(at24, buf, off, count); in at24_write()
408 count -= status; in at24_write()
419 char *buf, loff_t off, size_t count) in at24_bin_write() argument
424 return at24_write(at24, buf, off, count); in at24_bin_write()
436 off_t offset, size_t count) in at24_macc_read() argument
440 return at24_read(at24, buf, offset, count); in at24_macc_read()
444 off_t offset, size_t count) in at24_macc_write() argument
448 return at24_write(at24, buf, offset, count); in at24_macc_write()