Lines Matching refs:offset

70 DVA_OFFSET_TO_PHYS_SECTOR (grub_disk_addr_t offset)
72 return ((offset + VDEV_LABEL_START_SIZE) >> SPA_MINBLOCKSHIFT);
502 uberblock_verify (struct grub_zfs_device_desc *dev_desc, uberblock_t * uber, grub_uint64_t offset)
525 zc.zc_word[0] = grub_cpu_to_zfs64 (offset, endian);
544 grub_disk_addr_t offset;
549 offset = (sector << SPA_MINBLOCKSHIFT) + VDEV_PHYS_SIZE + i;
551 err = uberblock_verify (dev_desc, (uberblock_t *)&ub_array[i], offset);
1614 read_device (grub_uint64_t offset, struct grub_zfs_device_desc *desc,
1622 sector = DVA_OFFSET_TO_PHYS_SECTOR (offset);
1643 err = read_device (offset, &desc->children[i],
1674 high = grub_divmod64 ((offset >> desc->ashift),
1694 && ((offset >> (desc->ashift + 11)) & 1) == c)
1697 high = grub_divmod64 ((offset >> desc->ashift) + c,
1707 offset >> desc->ashift, c, len, bsize, high,
1710 | (offset & ((1 << desc->ashift) - 1)),
1759 high = grub_divmod64 ((offset >> desc->ashift)
1762 && ((offset >> (desc->ashift + 11))
1766 | (offset & ((1 << desc->ashift) - 1)),
1842 grub_uint64_t offset;
1846 offset = dva_get_offset (dva, endian);
1852 return read_device (offset, &data->devices_attached[i],
4344 file->offset = 0;
4363 * If offset is in memory, move it into the buffer provided and return.
4365 if (file->offset >= data->file_start
4366 && file->offset + len <= data->file_end)
4368 grub_memmove (buf, data->file_buf + file->offset - data->file_start,
4388 * Find requested blkid and the offset within that block.
4390 grub_uint64_t blkid = grub_divmod64 (file->offset + read, blksz, 0);
4408 movesize = data->file_end - file->offset - read;
4412 grub_memmove (buf, data->file_buf + file->offset + read