Lines Matching full:pdn
33 static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs) in rtas_change_msi() argument
39 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi()
40 buid = pdn->phb->buid; in rtas_change_msi()
74 struct pci_dn *pdn; in rtas_disable_msi() local
76 pdn = pci_get_pdn(pdev); in rtas_disable_msi()
77 if (!pdn) in rtas_disable_msi()
83 if (rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, 0) != 0) { in rtas_disable_msi()
88 if (rtas_change_msi(pdn, RTAS_CHANGE_FN, 0) != 0) { in rtas_disable_msi()
94 static int rtas_query_irq_number(struct pci_dn *pdn, int offset) in rtas_query_irq_number() argument
100 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number()
101 buid = pdn->phb->buid; in rtas_query_irq_number()
346 struct pci_dn *pdn; in rtas_prepare_msi_irqs() local
376 pdn = pci_get_pdn(pdev); 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()