Lines Matching refs:pdev
42 static u64 read_ht_magic_addr(struct pci_dev *pdev, unsigned int pos) in read_ht_magic_addr() argument
48 pci_read_config_byte(pdev, pos + HT_MSI_FLAGS, &flags); in read_ht_magic_addr()
53 pci_read_config_dword(pdev, pos + HT_MSI_ADDR_LO, &tmp); in read_ht_magic_addr()
55 pci_read_config_dword(pdev, pos + HT_MSI_ADDR_HI, &tmp); in read_ht_magic_addr()
61 static u64 find_ht_magic_addr(struct pci_dev *pdev, unsigned int hwirq) in find_ht_magic_addr() argument
66 for (bus = pdev->bus; bus && bus->self; bus = bus->parent) { in find_ht_magic_addr()
75 static u64 find_u4_magic_addr(struct pci_dev *pdev, unsigned int hwirq) in find_u4_magic_addr() argument
77 struct pci_controller *hose = pci_bus_to_host(pdev->bus); in find_u4_magic_addr()
102 static void u3msi_teardown_msi_irqs(struct pci_dev *pdev) in u3msi_teardown_msi_irqs() argument
107 for_each_pci_msi_entry(entry, pdev) { in u3msi_teardown_msi_irqs()
120 static int u3msi_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) in u3msi_setup_msi_irqs() argument
132 if (find_ht_magic_addr(pdev, 0) == 0 && in u3msi_setup_msi_irqs()
133 find_u4_magic_addr(pdev, 0) == 0) { in u3msi_setup_msi_irqs()
135 pci_name(pdev)); in u3msi_setup_msi_irqs()
139 for_each_pci_msi_entry(entry, pdev) { in u3msi_setup_msi_irqs()
146 addr = find_ht_magic_addr(pdev, hwirq); in u3msi_setup_msi_irqs()
148 addr = find_u4_magic_addr(pdev, hwirq); in u3msi_setup_msi_irqs()