Lines Matching full:ks

124 				    struct ethtool_link_ksettings *ks)  in ionic_get_link_ksettings()  argument
130 ethtool_link_ksettings_zero_link_mode(ks, supported); in ionic_get_link_ksettings()
145 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
150 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
157 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
163 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
171 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
177 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
181 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
186 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
190 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
196 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
200 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
204 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
208 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
212 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
216 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
220 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
233 linkmode_copy(ks->link_modes.advertising, ks->link_modes.supported); in ionic_get_link_ksettings()
235 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_BASER); in ionic_get_link_ksettings()
236 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_RS); in ionic_get_link_ksettings()
238 ethtool_link_ksettings_add_link_mode(ks, advertising, FEC_BASER); in ionic_get_link_ksettings()
240 ethtool_link_ksettings_add_link_mode(ks, advertising, FEC_RS); in ionic_get_link_ksettings()
242 ethtool_link_ksettings_add_link_mode(ks, supported, FIBRE); in ionic_get_link_ksettings()
243 ethtool_link_ksettings_add_link_mode(ks, supported, Pause); in ionic_get_link_ksettings()
247 ks->base.port = PORT_DA; in ionic_get_link_ksettings()
249 ks->base.port = PORT_FIBRE; in ionic_get_link_ksettings()
251 ks->base.port = PORT_NONE; in ionic_get_link_ksettings()
253 if (ks->base.port != PORT_NONE) { in ionic_get_link_ksettings()
254 ks->base.speed = le32_to_cpu(lif->info->status.link_speed); in ionic_get_link_ksettings()
257 ks->base.duplex = DUPLEX_FULL; in ionic_get_link_ksettings()
259 ks->base.duplex = DUPLEX_UNKNOWN; in ionic_get_link_ksettings()
261 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in ionic_get_link_ksettings()
264 ethtool_link_ksettings_add_link_mode(ks, advertising, in ionic_get_link_ksettings()
266 ks->base.autoneg = AUTONEG_ENABLE; in ionic_get_link_ksettings()
274 const struct ethtool_link_ksettings *ks) in ionic_set_link_ksettings() argument
285 if (ks->base.autoneg != idev->port_info->config.an_enable) { in ionic_set_link_ksettings()
287 ionic_dev_cmd_port_autoneg(idev, ks->base.autoneg); in ionic_set_link_ksettings()
295 if (ks->base.speed != le32_to_cpu(idev->port_info->config.speed)) { in ionic_set_link_ksettings()
297 ionic_dev_cmd_port_speed(idev, ks->base.speed); in ionic_set_link_ksettings()