Lines Matching refs:encoding
305 u32 encoding = (lnkcap & PCI_EXP_LNKCAP_L0SEL) >> 12; in calc_l0s_latency() local
307 if (encoding == 0x7) in calc_l0s_latency()
309 return (64 << encoding); in calc_l0s_latency()
313 static u32 calc_l0s_acceptable(u32 encoding) in calc_l0s_acceptable() argument
315 if (encoding == 0x7) in calc_l0s_acceptable()
317 return (64 << encoding); in calc_l0s_acceptable()
323 u32 encoding = (lnkcap & PCI_EXP_LNKCAP_L1EL) >> 15; in calc_l1_latency() local
325 if (encoding == 0x7) in calc_l1_latency()
327 return (1000 << encoding); in calc_l1_latency()
331 static u32 calc_l1_acceptable(u32 encoding) in calc_l1_acceptable() argument
333 if (encoding == 0x7) in calc_l1_acceptable()
335 return (1000 << encoding); in calc_l1_acceptable()
663 u32 reg32, encoding; in pcie_aspm_cap_init() local
673 encoding = (reg32 & PCI_EXP_DEVCAP_L0S) >> 6; in pcie_aspm_cap_init()
674 acceptable->l0s = calc_l0s_acceptable(encoding); in pcie_aspm_cap_init()
676 encoding = (reg32 & PCI_EXP_DEVCAP_L1) >> 9; in pcie_aspm_cap_init()
677 acceptable->l1 = calc_l1_acceptable(encoding); in pcie_aspm_cap_init()