Lines Matching refs:kzdev
43 gait_kzdev = aift->kzdev; in kvm_s390_pci_aen_exit()
46 aift->kzdev = NULL; in kvm_s390_pci_aen_exit()
129 aift->kzdev = kcalloc(ZPCI_NR_DEVICES, sizeof(struct kvm_zdev *), in kvm_s390_pci_aen_init()
131 if (!aift->kzdev) { in kvm_s390_pci_aen_init()
152 kfree(aift->kzdev); in kvm_s390_pci_aen_init()
165 fib.fmt0.isc = zdev->kzdev->fib.fmt0.isc; in kvm_zpci_set_airq()
242 kvm = zdev->kzdev->kvm; in kvm_s390_pci_aif_enable()
309 aift->kzdev[zdev->aisb] = zdev->kzdev; in kvm_s390_pci_aif_enable()
318 zdev->kzdev->fib.fmt0.isc = fib->fmt0.isc; in kvm_s390_pci_aif_enable()
319 zdev->kzdev->fib.fmt0.aibv = fib->fmt0.aibv; in kvm_s390_pci_aif_enable()
339 struct kvm_zdev *kzdev = zdev->kzdev; in kvm_s390_pci_aif_disable() local
359 if (zdev->kzdev->fib.fmt0.aibv == 0) in kvm_s390_pci_aif_disable()
368 vpage = phys_to_page(kzdev->fib.fmt0.aibv); in kvm_s390_pci_aif_disable()
376 aift->kzdev[zdev->aisb] = NULL; in kvm_s390_pci_aif_disable()
384 kvm_s390_gisc_unregister(kzdev->kvm, isc); in kvm_s390_pci_aif_disable()
385 kzdev->fib.fmt0.isc = 0; in kvm_s390_pci_aif_disable()
386 kzdev->fib.fmt0.aibv = 0; in kvm_s390_pci_aif_disable()
406 struct kvm_zdev *kzdev; in kvm_s390_pci_dev_open() local
408 kzdev = kzalloc(sizeof(struct kvm_zdev), GFP_KERNEL); in kvm_s390_pci_dev_open()
409 if (!kzdev) in kvm_s390_pci_dev_open()
412 kzdev->zdev = zdev; in kvm_s390_pci_dev_open()
413 zdev->kzdev = kzdev; in kvm_s390_pci_dev_open()
420 struct kvm_zdev *kzdev; in kvm_s390_pci_dev_release() local
422 kzdev = zdev->kzdev; in kvm_s390_pci_dev_release()
423 WARN_ON(kzdev->zdev != zdev); in kvm_s390_pci_dev_release()
424 zdev->kzdev = NULL; in kvm_s390_pci_dev_release()
425 kfree(kzdev); in kvm_s390_pci_dev_release()
445 if (zdev->kzdev || zdev->gisa != 0 || !kvm) { in kvm_s390_pci_register_kvm()
495 zdev->kzdev->kvm = kvm; in kvm_s390_pci_register_kvm()
498 list_add_tail(&zdev->kzdev->entry, &kvm->arch.kzdev_list); in kvm_s390_pci_register_kvm()
508 if (zdev->kzdev) in kvm_s390_pci_register_kvm()
527 if (WARN_ON(!zdev->kzdev)) { in kvm_s390_pci_unregister_kvm()
532 kvm = zdev->kzdev->kvm; in kvm_s390_pci_unregister_kvm()
543 if (zdev->kzdev->fib.fmt0.aibv != 0) in kvm_s390_pci_unregister_kvm()
563 list_del(&zdev->kzdev->entry); in kvm_s390_pci_unregister_kvm()
593 struct kvm_zdev *kzdev; in get_zdev_from_kvm_by_fh() local
596 list_for_each_entry(kzdev, &kvm->arch.kzdev_list, entry) { in get_zdev_from_kvm_by_fh()
597 if (kzdev->zdev->fh == fh) { in get_zdev_from_kvm_by_fh()
598 zdev = kzdev->zdev; in get_zdev_from_kvm_by_fh()
632 struct kvm_zdev *kzdev; in kvm_s390_pci_zpci_op() local
643 kzdev = zdev->kzdev; in kvm_s390_pci_zpci_op()
644 if (!kzdev) { in kvm_s390_pci_zpci_op()
648 if (kzdev->kvm != kvm) { in kvm_s390_pci_zpci_op()