Lines Matching defs:offset
272 * Assumes that sanity checks for offset happened at sysfs-layer.
274 * Slave address and byte offset derive from the offset. Always
279 unsigned int *offset)
284 i = *offset >> 16;
285 *offset &= 0xffff;
287 i = *offset >> 8;
288 *offset &= 0xff;
300 unsigned int offset, size_t count)
312 remainder = BIT(bits) - offset;
324 unsigned int offset, size_t count)
332 at24_client = at24_translate_offset(at24, &offset);
335 count = at24_adjust_read_count(at24, offset, count);
337 /* adjust offset for mac and serial read ops */
338 offset += at24->offset_adj;
348 ret = regmap_bulk_read(regmap, offset, buf, count);
350 count, offset, ret, jiffies);
370 unsigned int offset, size_t count)
379 next_page = roundup(offset + 1, at24->page_size);
380 if (offset + count > next_page)
381 count = next_page - offset;
387 unsigned int offset, size_t count)
395 at24_client = at24_translate_offset(at24, &offset);
398 count = at24_adjust_write_count(at24, offset, count);
408 ret = regmap_bulk_write(regmap, offset, buf, count);
410 count, offset, ret, jiffies);