Lines Matching refs:kdev
194 struct kvm_device *kdev = to_kvmdev(vdev); in kvm_find_vq() local
199 if (index >= kdev->desc->num_vq) in kvm_find_vq()
205 config = kvm_vq_config(kdev->desc)+index; in kvm_find_vq()
260 struct kvm_device *kdev = to_kvmdev(vdev); in kvm_find_vqs() local
264 if (nvqs > kdev->desc->num_vq) in kvm_find_vqs()
312 struct kvm_device *kdev; in add_kvm_device() local
314 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in add_kvm_device()
315 if (!kdev) { in add_kvm_device()
321 kdev->vdev.dev.parent = kvm_root; in add_kvm_device()
322 kdev->vdev.id.device = d->type; in add_kvm_device()
323 kdev->vdev.config = &kvm_vq_configspace_ops; in add_kvm_device()
324 kdev->desc = d; in add_kvm_device()
326 if (register_virtio_device(&kdev->vdev) != 0) { in add_kvm_device()
329 kfree(kdev); in add_kvm_device()
358 struct kvm_device *kdev = to_kvmdev(vdev); in match_desc() local
360 return kdev->desc == data; in match_desc()