Lines Matching full:nvec
116 static int check_req(struct pci_dev *pdev, int nvec, char *prop_name) in check_req() argument
131 if (req_msi < nvec) { in check_req()
132 pr_debug("rtas_msi: %s requests < %d MSIs\n", prop_name, nvec); in check_req()
143 static int check_req_msi(struct pci_dev *pdev, int nvec) in check_req_msi() argument
145 return check_req(pdev, nvec, "ibm,req#msi"); in check_req_msi()
148 static int check_req_msix(struct pci_dev *pdev, int nvec) in check_req_msix() argument
150 return check_req(pdev, nvec, "ibm,req#msi-x"); in check_req_msix()
348 int nvec = nvec_in; in rtas_prepare_msi_irqs() local
352 rc = check_req_msix(pdev, nvec); in rtas_prepare_msi_irqs()
354 rc = check_req_msi(pdev, nvec); in rtas_prepare_msi_irqs()
359 quota = msi_quota_for_device(pdev, nvec); in rtas_prepare_msi_irqs()
361 if (quota && quota < nvec) in rtas_prepare_msi_irqs()
369 int m = roundup_pow_of_two(nvec); in rtas_prepare_msi_irqs()
373 nvec = m; in rtas_prepare_msi_irqs()
386 rc = rtas_change_msi(pdn, RTAS_CHANGE_32MSI_FN, nvec); in rtas_prepare_msi_irqs()
401 rc = rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, nvec); in rtas_prepare_msi_irqs()
405 rc = rtas_change_msi(pdn, RTAS_CHANGE_FN, nvec); in rtas_prepare_msi_irqs()
412 rc = rtas_change_msi(pdn, RTAS_CHANGE_32MSIX_FN, nvec); in rtas_prepare_msi_irqs()
414 rc = rtas_change_msi(pdn, RTAS_CHANGE_MSIX_FN, nvec); in rtas_prepare_msi_irqs()
417 if (rc != nvec) { in rtas_prepare_msi_irqs()
418 if (nvec != nvec_in) { in rtas_prepare_msi_irqs()
419 nvec = nvec_in; in rtas_prepare_msi_irqs()
430 int nvec, msi_alloc_info_t *arg) in pseries_msi_ops_prepare() argument
435 return rtas_prepare_msi_irqs(pdev, nvec, type, arg); in pseries_msi_ops_prepare()