Lines Matching refs:if_link
2071 struct qed_link_output *if_link) in qed_fill_link() argument
2078 memset(if_link, 0, sizeof(*if_link)); in qed_fill_link()
2088 if_link->link_up = true; in qed_fill_link()
2092 phylink_set(if_link->supported_caps, Autoneg); in qed_fill_link()
2094 linkmode_copy(if_link->advertised_caps, if_link->supported_caps); in qed_fill_link()
2097 phylink_set(if_link->advertised_caps, Autoneg); in qed_fill_link()
2099 phylink_clear(if_link->advertised_caps, Autoneg); in qed_fill_link()
2103 if_link->advertised_caps); in qed_fill_link()
2106 phylink_set(if_link->supported_caps, Autoneg); in qed_fill_link()
2108 linkmode_copy(if_link->advertised_caps, if_link->supported_caps); in qed_fill_link()
2111 phylink_set(if_link->advertised_caps, Autoneg); in qed_fill_link()
2113 phylink_clear(if_link->advertised_caps, Autoneg); in qed_fill_link()
2118 phylink_set(if_link->supported_caps, Asym_Pause); in qed_fill_link()
2121 phylink_set(if_link->supported_caps, Pause); in qed_fill_link()
2123 if_link->sup_fec = link_caps.fec_default; in qed_fill_link()
2124 if_link->active_fec = params.fec; in qed_fill_link()
2128 if_link->advertised_caps); in qed_fill_link()
2132 if_link->supported_caps); in qed_fill_link()
2136 qed_fill_link_capability(hwfn, ptt, speed_mask, if_link->lp_caps); in qed_fill_link()
2139 if_link->speed = link.speed; in qed_fill_link()
2142 if_link->duplex = DUPLEX_FULL; in qed_fill_link()
2144 if_link->port = qed_get_port_type(media_type); in qed_fill_link()
2146 if_link->autoneg = params.speed.autoneg; in qed_fill_link()
2149 if_link->pause_config |= QED_LINK_PAUSE_AUTONEG_ENABLE; in qed_fill_link()
2151 if_link->pause_config |= QED_LINK_PAUSE_RX_ENABLE; in qed_fill_link()
2153 if_link->pause_config |= QED_LINK_PAUSE_TX_ENABLE; in qed_fill_link()
2156 phylink_set(if_link->lp_caps, Autoneg); in qed_fill_link()
2158 phylink_set(if_link->lp_caps, Pause); in qed_fill_link()
2161 phylink_set(if_link->lp_caps, Asym_Pause); in qed_fill_link()
2164 if_link->eee_supported = false; in qed_fill_link()
2166 if_link->eee_supported = true; in qed_fill_link()
2167 if_link->eee_active = link.eee_active; in qed_fill_link()
2168 if_link->sup_caps = link_caps.eee_speed_caps; in qed_fill_link()
2170 if_link->eee.adv_caps = link.eee_adv_caps ? link.eee_adv_caps : in qed_fill_link()
2172 if_link->eee.lp_adv_caps = link.eee_lp_adv_caps; in qed_fill_link()
2173 if_link->eee.enable = params.eee.enable; in qed_fill_link()
2174 if_link->eee.tx_lpi_enable = params.eee.tx_lpi_enable; in qed_fill_link()
2175 if_link->eee.tx_lpi_timer = params.eee.tx_lpi_timer; in qed_fill_link()
2180 struct qed_link_output *if_link) in qed_get_current_link() argument
2190 qed_fill_link(hwfn, ptt, if_link); in qed_get_current_link()
2196 qed_fill_link(hwfn, NULL, if_link); in qed_get_current_link()
2207 struct qed_link_output if_link; in qed_link_update() local
2209 qed_fill_link(hwfn, ptt, &if_link); in qed_link_update()
2213 op->link_update(cookie, &if_link); in qed_link_update()