Lines Matching refs:host_bridge
2596 static void quirk_amd_780_apc_msi(struct pci_dev *host_bridge) in quirk_amd_780_apc_msi() argument
2600 apc_bridge = pci_get_slot(host_bridge->bus, PCI_DEVFN(1, 0)); in quirk_amd_780_apc_msi()
2835 static int host_bridge_with_leaf(struct pci_dev *host_bridge) in host_bridge_with_leaf() argument
2842 dev_no = host_bridge->devfn >> 3; in host_bridge_with_leaf()
2844 dev = pci_get_slot(host_bridge->bus, PCI_DEVFN(i, 0)); in host_bridge_with_leaf()
2895 struct pci_dev *host_bridge; in nv_ht_enable_msi_mapping() local
2902 host_bridge = pci_get_slot(dev->bus, PCI_DEVFN(i, 0)); in nv_ht_enable_msi_mapping()
2903 if (!host_bridge) in nv_ht_enable_msi_mapping()
2906 pos = pci_find_ht_capability(host_bridge, HT_CAPTYPE_SLAVE); in nv_ht_enable_msi_mapping()
2911 pci_dev_put(host_bridge); in nv_ht_enable_msi_mapping()
2918 if (host_bridge == dev && is_end_of_ht_chain(host_bridge) && in nv_ht_enable_msi_mapping()
2919 host_bridge_with_leaf(host_bridge)) in nv_ht_enable_msi_mapping()
2923 if (msi_ht_cap_enabled(host_bridge)) in nv_ht_enable_msi_mapping()
2929 pci_dev_put(host_bridge); in nv_ht_enable_msi_mapping()
2954 struct pci_dev *host_bridge; in __nv_msi_ht_cap_quirk() local
2972 host_bridge = pci_get_domain_bus_and_slot(pci_domain_nr(dev->bus), 0, in __nv_msi_ht_cap_quirk()
2974 if (host_bridge == NULL) { in __nv_msi_ht_cap_quirk()
2979 pos = pci_find_ht_capability(host_bridge, HT_CAPTYPE_SLAVE); in __nv_msi_ht_cap_quirk()
3000 pci_dev_put(host_bridge); in __nv_msi_ht_cap_quirk()