Lines Matching refs:count

158 		unsigned offset, size_t count)  in at24_eeprom_read()  argument
186 if (count > io_limit) in at24_eeprom_read()
187 count = io_limit; in at24_eeprom_read()
192 if (count > I2C_SMBUS_BLOCK_MAX) in at24_eeprom_read()
193 count = I2C_SMBUS_BLOCK_MAX; in at24_eeprom_read()
196 count = 2; in at24_eeprom_read()
199 count = 1; in at24_eeprom_read()
221 msg[1].len = count; in at24_eeprom_read()
235 count, buf); in at24_eeprom_read()
242 status = count; in at24_eeprom_read()
249 status = count; in at24_eeprom_read()
255 status = count; in at24_eeprom_read()
258 count, offset, status, jiffies); in at24_eeprom_read()
260 if (status == count) in at24_eeprom_read()
261 return count; in at24_eeprom_read()
271 char *buf, loff_t off, size_t count) in at24_read() argument
275 if (unlikely(!count)) in at24_read()
276 return count; in at24_read()
284 while (count) { in at24_read()
287 status = at24_eeprom_read(at24, buf, off, count); in at24_read()
295 count -= status; in at24_read()
306 char *buf, loff_t off, size_t count) in at24_bin_read() argument
311 return at24_read(at24, buf, off, count); in at24_bin_read()
324 unsigned offset, size_t count) in at24_eeprom_write() argument
336 if (count > at24->write_max) in at24_eeprom_write()
337 count = at24->write_max; in at24_eeprom_write()
341 if (offset + count > next_page) in at24_eeprom_write()
342 count = next_page - offset; in at24_eeprom_write()
357 memcpy(&msg.buf[i], buf, count); in at24_eeprom_write()
358 msg.len = i + count; in at24_eeprom_write()
373 offset, count, buf); in at24_eeprom_write()
382 status = count; in at24_eeprom_write()
386 status = count; in at24_eeprom_write()
389 count, offset, status, jiffies); in at24_eeprom_write()
391 if (status == count) in at24_eeprom_write()
392 return count; in at24_eeprom_write()
402 size_t count) in at24_write() argument
406 if (unlikely(!count)) in at24_write()
407 return count; in at24_write()
415 while (count) { in at24_write()
418 status = at24_eeprom_write(at24, buf, off, count); in at24_write()
426 count -= status; in at24_write()
437 char *buf, loff_t off, size_t count) in at24_bin_write() argument
445 return at24_write(at24, buf, off, count); in at24_bin_write()
457 off_t offset, size_t count) in at24_macc_read() argument
461 return at24_read(at24, buf, offset, count); in at24_macc_read()
465 off_t offset, size_t count) in at24_macc_write() argument
469 return at24_write(at24, buf, offset, count); in at24_macc_write()