Lines Matching +full:pme +full:- +full:active +full:- +full:high
1 /* SPDX-License-Identifier: GPL-2.0 */
32 * "T_PERST-CLK".
37 * End of conventional reset (PERST# de-asserted) to first configuration
44 * PCIe r6.0, sec 5.3.3.2.1 <PME Synchronization>
52 * - "With a Downstream Port that does not support Link speeds greater
57 * - "With a Downstream Port that supports Link speeds greater than
167 pm_wakeup_event(&dev->dev, 100); in pci_wakeup_event()
171 * pci_bar_index_is_valid - Check whether a BAR index is within valid range
188 return !!(pci_dev->subordinate); in pci_has_subordinate()
197 return !pci_has_subordinate(pci_dev) || pci_dev->bridge_d3; in pci_power_manageable()
259 if (dev->bus->self) in pci_no_d1d2()
260 parent_dstates = dev->bus->self->no_d1d2; in pci_no_d1d2()
261 return (dev->no_d1d2 || parent_dstates); in pci_no_d1d2()
290 * pci_match_one_device - Tell if a PCI device structure has a matching
300 if ((id->vendor == PCI_ANY_ID || id->vendor == dev->vendor) && in pci_match_one_device()
301 (id->device == PCI_ANY_ID || id->device == dev->device) && in pci_match_one_device()
302 (id->subvendor == PCI_ANY_ID || id->subvendor == dev->subsystem_vendor) && in pci_match_one_device()
303 (id->subdevice == PCI_ANY_ID || id->subdevice == dev->subsystem_device) && in pci_match_one_device()
304 !((id->class ^ dev->class) & id->class_mask)) in pci_match_one_device()
324 pci_bar_mem32, /* A 32-bit memory BAR */
325 pci_bar_mem64, /* A 64-bit memory BAR */
362 * pci_resource_num - Reverse lookup resource number from device resources
375 int resno = res - &dev->resource[0]; in pci_resource_num()
447 return -EINVAL; in pcie_dev_speed_mbps()
457 bus->cur_bus_speed = pcie_link_speed[linksta & PCI_EXP_LNKSTA_CLS]; in __pcie_update_link_speed()
458 bus->flit_mode = (linksta2 & PCI_EXP_LNKSTA2_FLIT) ? 1 : 0; in __pcie_update_link_speed()
466 u32 cap; /* SR-IOV Capabilities */
467 u16 ctrl; /* SR-IOV Control */
515 * pci_dev_set_io_state - Set the new error state if possible.
532 xchg(&dev->error_state, pci_channel_io_perm_failure); in pci_dev_set_io_state()
535 old = cmpxchg(&dev->error_state, pci_channel_io_normal, in pci_dev_set_io_state()
539 old = cmpxchg(&dev->error_state, pci_channel_io_frozen, in pci_dev_set_io_state()
564 set_bit(PCI_DEV_ADDED, &dev->priv_flags); in pci_dev_assign_added()
570 return test_and_clear_bit(PCI_DEV_ADDED, &dev->priv_flags); in pci_dev_test_and_clear_added()
575 return test_bit(PCI_DEV_ADDED, &dev->priv_flags); in pci_dev_is_added()
580 return test_and_set_bit(PCI_DEV_REMOVED, &dev->priv_flags); in pci_dev_test_and_set_removed()
700 return -ENODEV; in pci_iov_init()
756 if (dev->class >> 8 == PCI_CLASS_BRIDGE_CARDBUS) in pci_resource_alignment()
771 return -ENOTTY; in pci_dev_specific_acs_enabled()
775 return -ENOTTY; in pci_dev_specific_enable_acs()
779 return -ENOTTY; in pci_dev_specific_disable_acs_redir()
783 return -ENOTTY; in pcie_failed_link_retrain()
792 bool pcie_wait_for_link(struct pci_dev *pdev, bool active);
795 /* ASPM-related functionality we need even without CONFIG_PCIEASPM */
833 return -EOPNOTSUPP; in pcie_lbms_count()
854 return -ENOTTY; in pci_dev_specific_reset()
865 return -ENODEV; in acpi_get_rc_resources()
898 return -1; in of_get_pci_domain_nr()
904 return -EINVAL; in of_pci_get_max_link_speed()
974 static inline int pci_aer_clear_status(struct pci_dev *dev) { return -EINVAL; } in pci_aer_clear_status()
975 static inline int pci_aer_raw_clear_status(struct pci_dev *dev) { return -EINVAL; } in pci_aer_raw_clear_status()
1001 return -ENOTTY; in pci_dev_acpi_reset()
1006 return -ENODEV; in pci_acpi_program_hp_params()
1018 return -ENODEV; in acpi_pci_set_power_state()
1027 return -ENODEV; in acpi_pci_wakeup()
1054 return -ENODEV; in mid_pci_set_power_state()
1071 * Section 3.2.2.3.2, Figure 3-2, p. 50.
1099 * No standardized specification, but used on lot of non-ECAM-compliant ARM SoCs
1101 * are used for specifying additional 4 high bits of PCI Express register.