Lines Matching defs:offset
289 * Copy up to length bytes from cache entry to buffer starting at offset bytes
294 int offset, int length)
301 return min(length, entry->length - offset);
303 while (offset < entry->length) {
304 void *buff = entry->data[offset / PAGE_SIZE]
305 + (offset % PAGE_SIZE);
306 int bytes = min_t(int, entry->length - offset,
307 PAGE_SIZE - (offset % PAGE_SIZE));
318 offset += bytes;
326 * Read length bytes from metadata position <block, offset> (block is the
327 * start of the compressed block on disk, and offset is the offset into
332 u64 *block, int *offset, int length)
338 TRACE("Entered squashfs_read_metadata [%llx:%x]\n", *block, *offset);
348 } else if (*offset >= entry->length) {
353 bytes = squashfs_copy_data(buffer, entry, *offset, length);
357 *offset += bytes;
359 if (*offset == entry->length) {
361 *offset = 0;