Lines Matching refs:if_link

2072 			  struct qed_link_output *if_link)  in qed_fill_link()  argument
2079 memset(if_link, 0, sizeof(*if_link)); in qed_fill_link()
2089 if_link->link_up = true; in qed_fill_link()
2093 phylink_set(if_link->supported_caps, Autoneg); in qed_fill_link()
2095 linkmode_copy(if_link->advertised_caps, if_link->supported_caps); in qed_fill_link()
2098 phylink_set(if_link->advertised_caps, Autoneg); in qed_fill_link()
2100 phylink_clear(if_link->advertised_caps, Autoneg); in qed_fill_link()
2104 if_link->advertised_caps); in qed_fill_link()
2107 phylink_set(if_link->supported_caps, Autoneg); in qed_fill_link()
2109 linkmode_copy(if_link->advertised_caps, if_link->supported_caps); in qed_fill_link()
2112 phylink_set(if_link->advertised_caps, Autoneg); in qed_fill_link()
2114 phylink_clear(if_link->advertised_caps, Autoneg); in qed_fill_link()
2119 phylink_set(if_link->supported_caps, Asym_Pause); in qed_fill_link()
2122 phylink_set(if_link->supported_caps, Pause); in qed_fill_link()
2124 if_link->sup_fec = link_caps.fec_default; in qed_fill_link()
2125 if_link->active_fec = params.fec; in qed_fill_link()
2129 if_link->advertised_caps); in qed_fill_link()
2133 if_link->supported_caps); in qed_fill_link()
2137 qed_fill_link_capability(hwfn, ptt, speed_mask, if_link->lp_caps); in qed_fill_link()
2140 if_link->speed = link.speed; in qed_fill_link()
2143 if_link->duplex = DUPLEX_FULL; in qed_fill_link()
2145 if_link->port = qed_get_port_type(media_type); in qed_fill_link()
2147 if_link->autoneg = params.speed.autoneg; in qed_fill_link()
2150 if_link->pause_config |= QED_LINK_PAUSE_AUTONEG_ENABLE; in qed_fill_link()
2152 if_link->pause_config |= QED_LINK_PAUSE_RX_ENABLE; in qed_fill_link()
2154 if_link->pause_config |= QED_LINK_PAUSE_TX_ENABLE; in qed_fill_link()
2157 phylink_set(if_link->lp_caps, Autoneg); in qed_fill_link()
2159 phylink_set(if_link->lp_caps, Pause); in qed_fill_link()
2162 phylink_set(if_link->lp_caps, Asym_Pause); in qed_fill_link()
2165 if_link->eee_supported = false; in qed_fill_link()
2167 if_link->eee_supported = true; in qed_fill_link()
2168 if_link->eee_active = link.eee_active; in qed_fill_link()
2169 if_link->sup_caps = link_caps.eee_speed_caps; in qed_fill_link()
2171 if_link->eee.adv_caps = link.eee_adv_caps ? link.eee_adv_caps : in qed_fill_link()
2173 if_link->eee.lp_adv_caps = link.eee_lp_adv_caps; in qed_fill_link()
2174 if_link->eee.enable = params.eee.enable; in qed_fill_link()
2175 if_link->eee.tx_lpi_enable = params.eee.tx_lpi_enable; in qed_fill_link()
2176 if_link->eee.tx_lpi_timer = params.eee.tx_lpi_timer; in qed_fill_link()
2181 struct qed_link_output *if_link) in qed_get_current_link() argument
2191 qed_fill_link(hwfn, ptt, if_link); in qed_get_current_link()
2197 qed_fill_link(hwfn, NULL, if_link); in qed_get_current_link()
2208 struct qed_link_output if_link; in qed_link_update() local
2210 qed_fill_link(hwfn, ptt, &if_link); in qed_link_update()
2214 op->link_update(cookie, &if_link); in qed_link_update()