Lines Matching refs:root
63 struct pci_dev *root; in amd_node_get_root() local
87 root = pci_get_domain_bus_and_slot(0, bus, 0); in amd_node_get_root()
89 pci_dbg(root, "is root for AMD node %u\n", node); in amd_node_get_root()
90 return root; in amd_node_get_root()
144 struct pci_dev *root; in __amd_smn_rw() local
150 root = amd_roots[node]; in __amd_smn_rw()
151 if (!root) in __amd_smn_rw()
159 err = pci_write_config_dword(root, i_off, address); in __amd_smn_rw()
165 err = (write ? pci_write_config_dword(root, d_off, *value) in __amd_smn_rw()
166 : pci_read_config_dword(root, d_off, value)); in __amd_smn_rw()
293 struct pci_dev *root = NULL; in reserve_root_config_spaces() local
298 root = pci_get_slot(bus, 0); in reserve_root_config_spaces()
299 if (!root) in reserve_root_config_spaces()
302 if (root->vendor != PCI_VENDOR_ID_AMD && in reserve_root_config_spaces()
303 root->vendor != PCI_VENDOR_ID_HYGON) in reserve_root_config_spaces()
306 pci_dbg(root, "Reserving PCI config space\n"); in reserve_root_config_spaces()
314 if (!pci_request_config_region_exclusive(root, 0, PCI_CFG_SPACE_SIZE, NULL)) { in reserve_root_config_spaces()
315 pci_err(root, "Failed to reserve config space\n"); in reserve_root_config_spaces()