Lines Matching full:nvec
115 static int check_req(struct pci_dev *pdev, int nvec, char *prop_name) in check_req() argument
130 if (req_msi < nvec) { in check_req()
131 pr_debug("rtas_msi: %s requests < %d MSIs\n", prop_name, nvec); in check_req()
142 static int check_req_msi(struct pci_dev *pdev, int nvec) in check_req_msi() argument
144 return check_req(pdev, nvec, "ibm,req#msi"); in check_req_msi()
147 static int check_req_msix(struct pci_dev *pdev, int nvec) in check_req_msix() argument
149 return check_req(pdev, nvec, "ibm,req#msi-x"); in check_req_msix()
347 int nvec = nvec_in; in rtas_prepare_msi_irqs() local
351 rc = check_req_msix(pdev, nvec); in rtas_prepare_msi_irqs()
353 rc = check_req_msi(pdev, nvec); in rtas_prepare_msi_irqs()
358 quota = msi_quota_for_device(pdev, nvec); in rtas_prepare_msi_irqs()
360 if (quota && quota < nvec) in rtas_prepare_msi_irqs()
368 int m = roundup_pow_of_two(nvec); in rtas_prepare_msi_irqs()
372 nvec = m; in rtas_prepare_msi_irqs()
385 rc = rtas_change_msi(pdn, RTAS_CHANGE_32MSI_FN, nvec); in rtas_prepare_msi_irqs()
400 rc = rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, nvec); in rtas_prepare_msi_irqs()
404 rc = rtas_change_msi(pdn, RTAS_CHANGE_FN, nvec); in rtas_prepare_msi_irqs()
410 rc = rtas_change_msi(pdn, RTAS_CHANGE_MSIX_FN, nvec); in rtas_prepare_msi_irqs()
412 if (rc != nvec) { in rtas_prepare_msi_irqs()
413 if (nvec != nvec_in) { in rtas_prepare_msi_irqs()
414 nvec = nvec_in; in rtas_prepare_msi_irqs()
425 int nvec, msi_alloc_info_t *arg) in pseries_msi_ops_prepare() argument
430 return rtas_prepare_msi_irqs(pdev, nvec, type, arg); in pseries_msi_ops_prepare()