• Home
  • Raw
  • Download

Lines Matching refs:child

151 	struct pci_dev *child;  in pcie_set_clkpm_nocheck()  local
155 list_for_each_entry(child, &linkbus->devices, bus_list) in pcie_set_clkpm_nocheck()
156 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck()
178 struct pci_dev *child; in pcie_clkpm_cap_init() local
182 list_for_each_entry(child, &linkbus->devices, bus_list) { in pcie_clkpm_cap_init()
183 pcie_capability_read_dword(child, PCI_EXP_LNKCAP, &reg32); in pcie_clkpm_cap_init()
189 pcie_capability_read_word(child, PCI_EXP_LNKCTL, &reg16); in pcie_clkpm_cap_init()
237 struct pci_dev *child, *parent = link->pdev; in pcie_aspm_configure_common_clock() local
243 child = list_entry(linkbus->devices.next, struct pci_dev, bus_list); in pcie_aspm_configure_common_clock()
244 BUG_ON(!pci_is_pcie(child)); in pcie_aspm_configure_common_clock()
247 pcie_capability_read_word(child, PCI_EXP_LNKSTA, &reg16); in pcie_aspm_configure_common_clock()
261 list_for_each_entry(child, &linkbus->devices, bus_list) { in pcie_aspm_configure_common_clock()
262 pcie_capability_read_word(child, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
275 list_for_each_entry(child, &linkbus->devices, bus_list) { in pcie_aspm_configure_common_clock()
276 pcie_capability_read_word(child, PCI_EXP_LNKCTL, &reg16); in pcie_aspm_configure_common_clock()
277 child_reg[PCI_FUNC(child->devfn)] = reg16; in pcie_aspm_configure_common_clock()
282 pcie_capability_write_word(child, PCI_EXP_LNKCTL, reg16); in pcie_aspm_configure_common_clock()
299 list_for_each_entry(child, &linkbus->devices, bus_list) in pcie_aspm_configure_common_clock()
300 pcie_capability_write_word(child, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
301 child_reg[PCI_FUNC(child->devfn)]); in pcie_aspm_configure_common_clock()
483 struct pci_dev *child; in pci_function_0() local
485 list_for_each_entry(child, &linkbus->devices, bus_list) in pci_function_0()
486 if (PCI_FUNC(child->devfn) == 0) in pci_function_0()
487 return child; in pci_function_0()
543 struct pci_dev *child = link->downstream, *parent = link->pdev; in pcie_aspm_cap_init() local
556 pcie_get_aspm_reg(child, &dwreg); in pcie_aspm_cap_init()
573 pcie_get_aspm_reg(child, &dwreg); in pcie_aspm_cap_init()
630 list_for_each_entry(child, &linkbus->devices, bus_list) { in pcie_aspm_cap_init()
631 if (pci_pcie_type(child) == PCI_EXP_TYPE_PCI_BRIDGE) { in pcie_aspm_cap_init()
638 list_for_each_entry(child, &linkbus->devices, bus_list) { in pcie_aspm_cap_init()
641 &link->acceptable[PCI_FUNC(child->devfn)]; in pcie_aspm_cap_init()
643 if (pci_pcie_type(child) != PCI_EXP_TYPE_ENDPOINT && in pcie_aspm_cap_init()
644 pci_pcie_type(child) != PCI_EXP_TYPE_LEG_END) in pcie_aspm_cap_init()
647 pcie_capability_read_dword(child, PCI_EXP_DEVCAP, &reg32); in pcie_aspm_cap_init()
655 pcie_aspm_check_latency(child); in pcie_aspm_cap_init()
674 struct pci_dev *child = link->downstream, *parent = link->pdev; in pcie_config_aspm_l1ss() local
694 pci_clear_and_set_dword(child, dw_cap_ptr + PCI_L1SS_CTL1, in pcie_config_aspm_l1ss()
703 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_config_aspm_l1ss()
714 pci_write_config_dword(child, dw_cap_ptr + PCI_L1SS_CTL2, in pcie_config_aspm_l1ss()
727 pci_clear_and_set_dword(child, dw_cap_ptr + PCI_L1SS_CTL1, in pcie_config_aspm_l1ss()
746 pci_clear_and_set_dword(child, dw_cap_ptr + PCI_L1SS_CTL1, in pcie_config_aspm_l1ss()
759 struct pci_dev *child = link->downstream, *parent = link->pdev; in pcie_config_aspm_link() local
770 if (parent->current_state != PCI_D0 || child->current_state != PCI_D0) { in pcie_config_aspm_link()
799 list_for_each_entry(child, &linkbus->devices, bus_list) in pcie_config_aspm_link()
800 pcie_config_aspm_dev(child, dwstream); in pcie_config_aspm_link()
823 struct pci_dev *child; in pcie_aspm_sanity_check() local
830 list_for_each_entry(child, &pdev->subordinate->devices, bus_list) { in pcie_aspm_sanity_check()
831 if (!pci_is_pcie(child)) in pcie_aspm_sanity_check()
847 pcie_capability_read_dword(child, PCI_EXP_DEVCAP, &reg32); in pcie_aspm_sanity_check()
849 …pci_info(child, "disabling ASPM on pre-1.1 PCIe device. You can enable it with 'pcie_aspm=force'\… in pcie_aspm_sanity_check()
975 struct pci_dev *child; in pcie_update_aspm_capable() local
979 list_for_each_entry(child, &linkbus->devices, bus_list) { in pcie_update_aspm_capable()
980 if ((pci_pcie_type(child) != PCI_EXP_TYPE_ENDPOINT) && in pcie_update_aspm_capable()
981 (pci_pcie_type(child) != PCI_EXP_TYPE_LEG_END)) in pcie_update_aspm_capable()
983 pcie_aspm_check_latency(child); in pcie_update_aspm_capable()