Lines Matching refs:fib

162 	struct zpci_fib fib = {};  in kvm_zpci_set_airq()  local
165 fib.fmt0.isc = zdev->kzdev->fib.fmt0.isc; in kvm_zpci_set_airq()
166 fib.fmt0.sum = 1; /* enable summary notifications */ in kvm_zpci_set_airq()
167 fib.fmt0.noi = airq_iv_end(zdev->aibv); in kvm_zpci_set_airq()
168 fib.fmt0.aibv = virt_to_phys(zdev->aibv->vector); in kvm_zpci_set_airq()
169 fib.fmt0.aibvo = 0; in kvm_zpci_set_airq()
170 fib.fmt0.aisb = virt_to_phys(aift->sbv->vector + (zdev->aisb / 64) * 8); in kvm_zpci_set_airq()
171 fib.fmt0.aisbo = zdev->aisb & 63; in kvm_zpci_set_airq()
172 fib.gd = zdev->gisa; in kvm_zpci_set_airq()
174 return zpci_mod_fc(req, &fib, &status) ? -EIO : 0; in kvm_zpci_set_airq()
181 struct zpci_fib fib = {}; in kvm_zpci_clear_airq() local
184 fib.gd = zdev->gisa; in kvm_zpci_clear_airq()
186 cc = zpci_mod_fc(req, &fib, &status); in kvm_zpci_clear_airq()
224 static int kvm_s390_pci_aif_enable(struct zpci_dev *zdev, struct zpci_fib *fib, in kvm_s390_pci_aif_enable() argument
243 msi_vecs = min_t(unsigned int, fib->fmt0.noi, zdev->max_msi); in kvm_s390_pci_aif_enable()
246 gisc = kvm_s390_gisc_register(kvm, fib->fmt0.isc); in kvm_s390_pci_aif_enable()
252 hva = gfn_to_hva(kvm, gpa_to_gfn((gpa_t)fib->fmt0.aibv)); in kvm_s390_pci_aif_enable()
261 gaddr = page_to_phys(aibv_page) + (fib->fmt0.aibv & ~PAGE_MASK); in kvm_s390_pci_aif_enable()
262 fib->fmt0.aibv = gaddr; in kvm_s390_pci_aif_enable()
265 if (fib->fmt0.sum == 1) { in kvm_s390_pci_aif_enable()
267 hva = gfn_to_hva(kvm, gpa_to_gfn((gpa_t)fib->fmt0.aisb)); in kvm_s390_pci_aif_enable()
292 phys_to_virt(fib->fmt0.aibv)); in kvm_s390_pci_aif_enable()
304 gaite->gisc = fib->fmt0.isc; in kvm_s390_pci_aif_enable()
306 gaite->aisbo = fib->fmt0.aisbo; in kvm_s390_pci_aif_enable()
307 gaite->aisb = virt_to_phys(page_address(aisb_page) + (fib->fmt0.aisb & in kvm_s390_pci_aif_enable()
313 fib->fmt0.aisbo = zdev->aisb & 63; in kvm_s390_pci_aif_enable()
314 fib->fmt0.aisb = virt_to_phys(aift->sbv->vector + (zdev->aisb / 64) * 8); in kvm_s390_pci_aif_enable()
315 fib->fmt0.isc = gisc; 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()
329 if (fib->fmt0.sum == 1) in kvm_s390_pci_aif_enable()
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()
385 kzdev->fib.fmt0.isc = 0; in kvm_s390_pci_aif_disable()
386 kzdev->fib.fmt0.aibv = 0; in kvm_s390_pci_aif_disable()
541 if (zdev->kzdev->fib.fmt0.aibv != 0) in kvm_s390_pci_unregister_kvm()
608 struct zpci_fib fib = {}; in kvm_s390_pci_zpci_reg_aen() local
611 fib.fmt0.aibv = args->u.reg_aen.ibv; in kvm_s390_pci_zpci_reg_aen()
612 fib.fmt0.isc = args->u.reg_aen.isc; in kvm_s390_pci_zpci_reg_aen()
613 fib.fmt0.noi = args->u.reg_aen.noi; in kvm_s390_pci_zpci_reg_aen()
615 fib.fmt0.aisb = args->u.reg_aen.sb; in kvm_s390_pci_zpci_reg_aen()
616 fib.fmt0.aisbo = args->u.reg_aen.sbo; in kvm_s390_pci_zpci_reg_aen()
617 fib.fmt0.sum = 1; in kvm_s390_pci_zpci_reg_aen()
619 fib.fmt0.aisb = 0; in kvm_s390_pci_zpci_reg_aen()
620 fib.fmt0.aisbo = 0; in kvm_s390_pci_zpci_reg_aen()
621 fib.fmt0.sum = 0; in kvm_s390_pci_zpci_reg_aen()
625 return kvm_s390_pci_aif_enable(zdev, &fib, hostflag); in kvm_s390_pci_zpci_reg_aen()