• Home
  • Raw
  • Download

Lines Matching refs:pci_dev

139 static void program_hpx_type0(struct pci_dev *dev, struct hpx_type0 *hpx)  in program_hpx_type0()
208 static void program_hpx_type1(struct pci_dev *dev, struct hpx_type1 *hpx) in program_hpx_type1()
249 static bool pcie_root_rcb_set(struct pci_dev *dev) in pcie_root_rcb_set()
251 struct pci_dev *rp = pcie_find_root_port(dev); in pcie_root_rcb_set()
285 static void program_hpx_type2(struct pci_dev *dev, struct hpx_type2 *hpx) in program_hpx_type2()
441 static u16 hpx3_device_type(struct pci_dev *dev) in hpx3_device_type()
468 static u8 hpx3_function_type(struct pci_dev *dev) in hpx3_function_type()
499 static void program_hpx_type3_register(struct pci_dev *dev, in program_hpx_type3_register()
558 static void program_hpx_type3(struct pci_dev *dev, struct hpx_type3 *hpx) in program_hpx_type3()
588 static acpi_status program_type3_hpx_record(struct pci_dev *dev, in program_type3_hpx_record()
626 static acpi_status acpi_run_hpx(struct pci_dev *dev, acpi_handle handle) in acpi_run_hpx()
701 static acpi_status acpi_run_hpp(struct pci_dev *dev, acpi_handle handle) in acpi_run_hpp()
747 int pci_acpi_program_hp_params(struct pci_dev *dev) in pci_acpi_program_hp_params()
793 bool pciehp_is_native(struct pci_dev *bridge) in pciehp_is_native()
819 bool shpchp_is_native(struct pci_dev *bridge) in shpchp_is_native()
844 struct pci_dev *pci_dev; in pci_acpi_wake_dev() local
846 pci_dev = to_pci_dev(context->dev); in pci_acpi_wake_dev()
848 if (pci_dev->pme_poll) in pci_acpi_wake_dev()
849 pci_dev->pme_poll = false; in pci_acpi_wake_dev()
851 if (pci_dev->current_state == PCI_D3cold) { in pci_acpi_wake_dev()
852 pci_wakeup_event(pci_dev); in pci_acpi_wake_dev()
853 pm_request_resume(&pci_dev->dev); in pci_acpi_wake_dev()
858 if (pci_dev->pme_support) in pci_acpi_wake_dev()
859 pci_check_pme_status(pci_dev); in pci_acpi_wake_dev()
861 pci_wakeup_event(pci_dev); in pci_acpi_wake_dev()
862 pm_request_resume(&pci_dev->dev); in pci_acpi_wake_dev()
864 pci_pme_wakeup_bus(pci_dev->subordinate); in pci_acpi_wake_dev()
882 struct pci_dev *pci_dev) in pci_acpi_add_pm_notifier() argument
884 return acpi_add_pm_notifier(dev, &pci_dev->dev, pci_acpi_wake_dev); in pci_acpi_add_pm_notifier()
910 pci_power_t acpi_pci_choose_state(struct pci_dev *pdev) in acpi_pci_choose_state()
939 void pci_set_acpi_fwnode(struct pci_dev *dev) in pci_set_acpi_fwnode()
951 int pci_dev_acpi_reset(struct pci_dev *dev, bool probe) in pci_dev_acpi_reset()
969 bool acpi_pci_power_manageable(struct pci_dev *dev) in acpi_pci_power_manageable()
976 bool acpi_pci_bridge_d3(struct pci_dev *dev) in acpi_pci_bridge_d3()
978 struct pci_dev *rpdev; in acpi_pci_bridge_d3()
1046 static void acpi_pci_config_space_access(struct pci_dev *dev, bool enable) in acpi_pci_config_space_access()
1056 int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state) in acpi_pci_set_power_state()
1111 pci_power_t acpi_pci_get_power_state(struct pci_dev *dev) in acpi_pci_get_power_state()
1133 void acpi_pci_refresh_power_state(struct pci_dev *dev) in acpi_pci_refresh_power_state()
1158 int acpi_pci_wakeup(struct pci_dev *dev, bool enable) in acpi_pci_wakeup()
1169 bool acpi_pci_need_resume(struct pci_dev *dev) in acpi_pci_need_resume()
1243 static struct acpi_device *(*pci_acpi_find_companion_hook)(struct pci_dev *);
1260 int pci_acpi_set_companion_lookup_hook(struct acpi_device *(*func)(struct pci_dev *)) in pci_acpi_set_companion_lookup_hook() argument
1305 struct pci_dev *pci_dev = to_pci_dev(dev); in acpi_pci_find_companion() local
1316 pci_acpi_find_companion_hook(pci_dev) : NULL; in acpi_pci_find_companion()
1323 check_children = pci_is_bridge(pci_dev); in acpi_pci_find_companion()
1325 addr = (PCI_SLOT(pci_dev->devfn) << 16) | PCI_FUNC(pci_dev->devfn); in acpi_pci_find_companion()
1343 pci_is_root_bus(pci_dev->bus)) in acpi_pci_find_companion()
1369 static void pci_acpi_optimize_delay(struct pci_dev *pdev, in pci_acpi_optimize_delay()
1400 static void pci_acpi_set_external_facing(struct pci_dev *dev) in pci_acpi_set_external_facing()
1419 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_acpi_setup() local
1421 pci_acpi_optimize_delay(pci_dev, adev->handle); in pci_acpi_setup()
1422 pci_acpi_set_external_facing(pci_dev); in pci_acpi_setup()
1423 pci_acpi_add_edr_notifier(pci_dev); in pci_acpi_setup()
1425 pci_acpi_add_pm_notifier(adev, pci_dev); in pci_acpi_setup()
1436 if (pci_dev->bridge_d3) in pci_acpi_setup()
1439 acpi_pci_wakeup(pci_dev, false); in pci_acpi_setup()
1442 if (pci_is_bridge(pci_dev)) in pci_acpi_setup()
1448 struct pci_dev *pci_dev = to_pci_dev(dev); in pci_acpi_cleanup() local
1450 pci_acpi_remove_edr_notifier(pci_dev); in pci_acpi_cleanup()
1454 if (pci_dev->bridge_d3) in pci_acpi_cleanup()