Lines Matching defs:offset
460 gvt_vgpu_err("invalid op or offset for Intel vgpu OpRegion\n");
481 size_t count, u16 offset, bool is_write)
486 if (offset + count > sizeof(*regs))
494 switch (offset) {
525 gvt_vgpu_err("write read-only EDID region at offset %d\n",
526 offset);
530 memcpy(buf, (char *)regs + offset, count);
537 size_t count, u16 offset, bool is_write)
539 if (offset + count > region->vfio_edid_regs.edid_size)
543 memcpy(region->edid_blob + offset, buf, count);
545 memcpy(buf, region->edid_blob + offset, count);
981 gvt_vgpu_err("Invalid aperture offset %llu\n", off);
1056 int offset;
1062 offset = (u64)(*ppos & VFIO_PCI_OFFSET_MASK) -
1065 return (offset >= gvt->device_info.gtt_start_offset &&
1066 offset < gvt->device_info.gtt_start_offset + gvt_ggtt_sz(gvt)) ?
1383 minsz = offsetofend(struct vfio_region_info, offset);
1393 info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
1399 info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
1410 info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
1415 info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
1431 sparse->areas[0].offset =
1437 info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
1446 info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index);
1468 info.offset =