Lines Matching refs:sparse
1475 struct vfio_region_info_cap_sparse_mmap *sparse = NULL; in intel_vgpu_ioctl() local
1518 sparse = kzalloc(struct_size(sparse, areas, nr_areas), in intel_vgpu_ioctl()
1520 if (!sparse) in intel_vgpu_ioctl()
1523 sparse->header.id = VFIO_REGION_INFO_CAP_SPARSE_MMAP; in intel_vgpu_ioctl()
1524 sparse->header.version = 1; in intel_vgpu_ioctl()
1525 sparse->nr_areas = nr_areas; in intel_vgpu_ioctl()
1527 sparse->areas[0].offset = in intel_vgpu_ioctl()
1529 sparse->areas[0].size = vgpu_aperture_sz(vgpu); in intel_vgpu_ioctl()
1580 if ((info.flags & VFIO_REGION_INFO_FLAG_CAPS) && sparse) { in intel_vgpu_ioctl()
1584 &sparse->header, in intel_vgpu_ioctl()
1585 struct_size(sparse, areas, in intel_vgpu_ioctl()
1586 sparse->nr_areas)); in intel_vgpu_ioctl()
1588 kfree(sparse); in intel_vgpu_ioctl()
1593 kfree(sparse); in intel_vgpu_ioctl()
1609 kfree(sparse); in intel_vgpu_ioctl()
1618 kfree(sparse); in intel_vgpu_ioctl()