Lines Matching refs:nvec
147 static int check_req(struct pci_dev *pdev, int nvec, char *prop_name) in check_req() argument
165 if (*req_msi < nvec) { in check_req()
166 pr_debug("rtas_msi: %s requests < %d MSIs\n", prop_name, nvec); in check_req()
177 static int check_req_msi(struct pci_dev *pdev, int nvec) in check_req_msi() argument
179 return check_req(pdev, nvec, "ibm,req#msi"); in check_req_msi()
182 static int check_req_msix(struct pci_dev *pdev, int nvec) in check_req_msix() argument
184 return check_req(pdev, nvec, "ibm,req#msi-x"); in check_req_msix()
349 static int rtas_msi_check_device(struct pci_dev *pdev, int nvec, int type) in rtas_msi_check_device() argument
354 rc = check_req_msix(pdev, nvec); in rtas_msi_check_device()
356 rc = check_req_msi(pdev, nvec); in rtas_msi_check_device()
361 quota = msi_quota_for_device(pdev, nvec); in rtas_msi_check_device()
363 if (quota && quota < nvec) in rtas_msi_check_device()
390 static int rtas_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) in rtas_setup_msi_irqs() argument
410 rc = rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, nvec); in rtas_setup_msi_irqs()
414 rc = rtas_change_msi(pdn, RTAS_CHANGE_FN, nvec); in rtas_setup_msi_irqs()
417 rc = rtas_change_msi(pdn, RTAS_CHANGE_MSIX_FN, nvec); in rtas_setup_msi_irqs()
419 if (rc != nvec) { in rtas_setup_msi_irqs()