Lines Matching refs:parent

49 	struct pcie_link_state *parent;	/* pointer to the parent Link state */  member
203 struct pci_dev *child, *parent = link->pdev; in pcie_aspm_configure_common_clock() local
204 struct pci_bus *linkbus = parent->subordinate; in pcie_aspm_configure_common_clock()
218 pcie_capability_read_word(parent, PCI_EXP_LNKSTA, &reg16); in pcie_aspm_configure_common_clock()
223 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &reg16); in pcie_aspm_configure_common_clock()
238 pci_info(parent, "ASPM: current common clock configuration is inconsistent, reconfiguring\n"); in pcie_aspm_configure_common_clock()
251 pcie_capability_clear_and_set_word(parent, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
257 pci_err(parent, "ASPM: Could not configure common clock\n"); in pcie_aspm_configure_common_clock()
262 pcie_capability_clear_and_set_word(parent, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
422 link = link->parent; in pcie_aspm_check_latency()
441 struct pci_dev *child = link->downstream, *parent = link->pdev; in aspm_calc_l12_info() local
459 if (calc_l12_pwron(parent, scale1, val1) > in aspm_calc_l12_info()
462 t_power_on = calc_l12_pwron(parent, scale1, val1); in aspm_calc_l12_info()
483 pci_read_config_dword(parent, parent->l1ss + PCI_L1SS_CTL1, &pctl1); in aspm_calc_l12_info()
484 pci_read_config_dword(parent, parent->l1ss + PCI_L1SS_CTL2, &pctl2); in aspm_calc_l12_info()
499 pci_clear_and_set_dword(parent, parent->l1ss + PCI_L1SS_CTL1, in aspm_calc_l12_info()
504 pci_write_config_dword(parent, parent->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l12_info()
508 pci_clear_and_set_dword(parent, parent->l1ss + PCI_L1SS_CTL1, in aspm_calc_l12_info()
512 pci_clear_and_set_dword(parent, parent->l1ss + PCI_L1SS_CTL1, in aspm_calc_l12_info()
520 pci_clear_and_set_dword(parent, parent->l1ss + PCI_L1SS_CTL1, 0, in aspm_calc_l12_info()
529 struct pci_dev *child = link->downstream, *parent = link->pdev; in aspm_l1ss_init() local
533 if (!parent->l1ss || !child->l1ss) in aspm_l1ss_init()
537 pci_read_config_dword(parent, parent->l1ss + PCI_L1SS_CAP, in aspm_l1ss_init()
565 pci_read_config_dword(parent, parent->l1ss + PCI_L1SS_CTL1, in aspm_l1ss_init()
586 struct pci_dev *child = link->downstream, *parent = link->pdev; in pcie_aspm_cap_init() local
589 struct pci_bus *linkbus = parent->subordinate; in pcie_aspm_cap_init()
602 pcie_capability_read_dword(parent, PCI_EXP_LNKCAP, &parent_lnkcap); in pcie_aspm_cap_init()
616 pcie_capability_read_dword(parent, PCI_EXP_LNKCAP, &parent_lnkcap); in pcie_aspm_cap_init()
618 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &parent_lnkctl); in pcie_aspm_cap_init()
665 struct pci_dev *child = link->downstream, *parent = link->pdev; in pcie_config_aspm_l1ss() local
685 pci_clear_and_set_dword(parent, parent->l1ss + PCI_L1SS_CTL1, in pcie_config_aspm_l1ss()
694 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in pcie_config_aspm_l1ss()
709 pci_clear_and_set_dword(parent, parent->l1ss + PCI_L1SS_CTL1, in pcie_config_aspm_l1ss()
724 struct pci_dev *child = link->downstream, *parent = link->pdev; in pcie_config_aspm_link() local
725 struct pci_bus *linkbus = parent->subordinate; in pcie_config_aspm_link()
735 if (parent->current_state != PCI_D0 || child->current_state != PCI_D0) { in pcie_config_aspm_link()
763 pcie_config_aspm_dev(parent, upstream); in pcie_config_aspm_link()
767 pcie_config_aspm_dev(parent, upstream); in pcie_config_aspm_link()
776 link = link->parent; in pcie_config_aspm_path()
842 !pdev->bus->parent->self) { in alloc_pcie_link_state()
845 struct pcie_link_state *parent; in alloc_pcie_link_state() local
847 parent = pdev->bus->parent->self->link_state; in alloc_pcie_link_state()
848 if (!parent) { in alloc_pcie_link_state()
853 link->parent = parent; in alloc_pcie_link_state()
854 link->root = link->parent->root; in alloc_pcie_link_state()
943 BUG_ON(root->parent); in pcie_update_aspm_capable()
966 struct pci_dev *parent = pdev->bus->self; in pcie_aspm_exit_link_state() local
969 if (!parent || !parent->link_state) in pcie_aspm_exit_link_state()
975 link = parent->link_state; in pcie_aspm_exit_link_state()
977 parent_link = link->parent; in pcie_aspm_exit_link_state()