Lines Matching +full:1 +full:- +full:lane
1 // SPDX-License-Identifier: GPL-2.0+
81 static void cphy_spread_spectrum_override(u8 phy, u8 lane, u32 val) in cphy_spread_spectrum_override() argument
84 tmp = combo_phy_read(phy, CPHY_RX_INPUT_STS + lane * SPHY_LANE); in cphy_spread_spectrum_override()
86 combo_phy_write(phy, CPHY_RX_INPUT_OVERRIDE + lane * SPHY_LANE, tmp); in cphy_spread_spectrum_override()
89 combo_phy_write(phy, CPHY_RX_INPUT_OVERRIDE + lane * SPHY_LANE, tmp); in cphy_spread_spectrum_override()
93 combo_phy_write(phy, CPHY_RX_INPUT_OVERRIDE + lane * SPHY_LANE, tmp); in cphy_spread_spectrum_override()
96 static void cphy_tx_attenuation_override(u8 phy, u8 lane) in cphy_tx_attenuation_override() argument
102 shift = ((phy == 5) ? 4 : lane) * 4; in cphy_tx_attenuation_override()
109 tmp = combo_phy_read(phy, CPHY_TX_INPUT_STS + lane * SPHY_LANE); in cphy_tx_attenuation_override()
111 combo_phy_write(phy, CPHY_TX_INPUT_OVERRIDE + lane * SPHY_LANE, tmp); in cphy_tx_attenuation_override()
114 combo_phy_write(phy, CPHY_TX_INPUT_OVERRIDE + lane * SPHY_LANE, tmp); in cphy_tx_attenuation_override()
117 combo_phy_write(phy, CPHY_TX_INPUT_OVERRIDE + lane * SPHY_LANE, tmp); in cphy_tx_attenuation_override()
123 u8 lane = 0, phy = 0; in cphy_disable_port_overrides() local
128 lane = port - 1; in cphy_disable_port_overrides()
131 tmp = combo_phy_read(phy, CPHY_RX_INPUT_STS + lane * SPHY_LANE); in cphy_disable_port_overrides()
133 combo_phy_write(phy, CPHY_RX_INPUT_OVERRIDE + lane * SPHY_LANE, tmp); in cphy_disable_port_overrides()
135 tmp = combo_phy_read(phy, CPHY_TX_INPUT_OVERRIDE + lane * SPHY_LANE); in cphy_disable_port_overrides()
137 combo_phy_write(phy, CPHY_TX_INPUT_OVERRIDE + lane * SPHY_LANE, tmp); in cphy_disable_port_overrides()
147 if (port_map & (1 << i)) in cphy_disable_overrides()
155 u8 lane = 0, phy = 0; in cphy_override_lane() local
160 lane = port - 1; in cphy_override_lane()
166 lane * SPHY_LANE); in cphy_override_lane()
168 cphy_spread_spectrum_override(phy, lane, 3); in cphy_override_lane()
169 cphy_tx_attenuation_override(phy, lane); in cphy_override_lane()
178 u8 *port_mmio = (u8 *)probe_ent->port[port].port_mmio; in ahci_link_up()
180 SATA_HB_VERSION ? 1 : 0; in ahci_link_up()
183 * SATA link bringup time is usually less than 1 ms; only very in ahci_link_up()
184 * rarely has it taken between 1-2 ms. Never seen it above 2 ms. in ahci_link_up()
205 return 1; in ahci_link_up()