Lines Matching refs:child
99 static bool rockchip_pcie_bus_aspm_enable_rc_ep(struct pci_dev *child, struct pci_dev *parent, bool… in rockchip_pcie_bus_aspm_enable_rc_ep() argument
106 ret = rockchip_pcie_bus_aspm_enable_dev("EP", child, enable); in rockchip_pcie_bus_aspm_enable_rc_ep()
109 ret = rockchip_pcie_bus_aspm_enable_dev("EP", child, enable); in rockchip_pcie_bus_aspm_enable_rc_ep()
169 static void aspm_calc_l1ss_info(struct pci_dev *child, struct pci_dev *parent) in aspm_calc_l1ss_info() argument
181 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CAP, in aspm_calc_l1ss_info()
196 calc_l1ss_pwron(child, scale2, val2)) { in aspm_calc_l1ss_info()
201 t_power_on = calc_l1ss_pwron(child, scale2, val2); in aspm_calc_l1ss_info()
219 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL1, &cctl1); in aspm_calc_l1ss_info()
220 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL2, &cctl2); in aspm_calc_l1ss_info()
231 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, in aspm_calc_l1ss_info()
239 pci_write_config_dword(child, child->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l1ss_info()
249 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, in aspm_calc_l1ss_info()
256 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, 0, in aspm_calc_l1ss_info()
296 bool pcie_aspm_ext_is_rc_ep_l1ss_capable(struct pci_dev *child, struct pci_dev *parent) in pcie_aspm_ext_is_rc_ep_l1ss_capable() argument
303 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CAP, in pcie_aspm_ext_is_rc_ep_l1ss_capable()
318 void pcie_aspm_ext_l1ss_enable(struct pci_dev *child, struct pci_dev *parent, bool enable) in pcie_aspm_ext_l1ss_enable() argument
323 ret = rockchip_pcie_bus_aspm_enable_rc_ep(child, parent, false); in pcie_aspm_ext_l1ss_enable()
331 aspm_calc_l1ss_info(child, parent); in pcie_aspm_ext_l1ss_enable()
333 rockchip_pcie_bus_l1ss_enable_dev("EP", child, enable); in pcie_aspm_ext_l1ss_enable()
336 rockchip_pcie_bus_l1ss_enable_dev("EP", child, enable); in pcie_aspm_ext_l1ss_enable()
342 rockchip_pcie_bus_aspm_enable_rc_ep(child, parent, true); in pcie_aspm_ext_l1ss_enable()