Home
last modified time | relevance | path

Searched refs:lnkcap2 (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/pci/
Dpci.h252 #define PCIE_LNKCAP2_SLS2SPEED(lnkcap2) \ argument
253 ((lnkcap2) & PCI_EXP_LNKCAP2_SLS_64_0GB ? PCIE_SPEED_64_0GT : \
254 (lnkcap2) & PCI_EXP_LNKCAP2_SLS_32_0GB ? PCIE_SPEED_32_0GT : \
255 (lnkcap2) & PCI_EXP_LNKCAP2_SLS_16_0GB ? PCIE_SPEED_16_0GT : \
256 (lnkcap2) & PCI_EXP_LNKCAP2_SLS_8_0GB ? PCIE_SPEED_8_0GT : \
257 (lnkcap2) & PCI_EXP_LNKCAP2_SLS_5_0GB ? PCIE_SPEED_5_0GT : \
258 (lnkcap2) & PCI_EXP_LNKCAP2_SLS_2_5GB ? PCIE_SPEED_2_5GT : \
Dpci-bridge-emul.h62 __le32 lnkcap2; member
Dpci.c6172 u32 lnkcap2, lnkcap; in pcie_get_speed_cap() local
6183 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP2, &lnkcap2); in pcie_get_speed_cap()
6186 if (lnkcap2) in pcie_get_speed_cap()
6187 return PCIE_LNKCAP2_SLS2SPEED(lnkcap2); in pcie_get_speed_cap()