Lines Matching refs:advertising

177 static void set_asym_pause(u64 advertising, struct ethtool_link_ksettings *ks)  in set_asym_pause()  argument
181 rx_pause = advertising & FUN_PORT_CAP_RX_PAUSE; in set_asym_pause()
182 tx_pause = advertising & FUN_PORT_CAP_TX_PAUSE; in set_asym_pause()
184 ethtool_link_ksettings_add_link_mode(ks, advertising, in set_asym_pause()
212 ethtool_link_ksettings_zero_link_mode(ks, advertising); in fun_get_link_ksettings()
234 ks->base.autoneg = (fp->advertising & FUN_PORT_CAP_AUTONEG) ? in fun_get_link_ksettings()
242 fun_link_modes_to_ethtool(fp->advertising, ks->link_modes.advertising); in fun_get_link_ksettings()
243 set_asym_pause(fp->advertising, ks); in fun_get_link_ksettings()
252 ethtool_link_ksettings_test_link_mode(ks, advertising, mode) in fun_advert_modes()
304 if (new_advert == fp->advertising) in fun_change_advert()
309 fp->advertising = new_advert; in fun_change_advert()
334 if (linkmode_empty(ks->link_modes.advertising)) in fun_set_link_ksettings()
338 if (!linkmode_subset(ks->link_modes.advertising, supported)) in fun_set_link_ksettings()
348 new_advert |= fp->advertising & in fun_set_link_ksettings()
362 pause->autoneg = !!(fp->advertising & FUN_PORT_CAP_AUTONEG); in fun_get_pauseparam()
374 if (!pause->autoneg && (fp->advertising & FUN_PORT_CAP_AUTONEG)) in fun_set_pauseparam()
376 if (pause->autoneg && !(fp->advertising & FUN_PORT_CAP_AUTONEG)) in fun_set_pauseparam()
383 new_advert = fp->advertising & ~FUN_PORT_CAP_PAUSE_MASK; in fun_set_pauseparam()
396 if (!(fp->advertising & FUN_PORT_CAP_AUTONEG)) in fun_restart_an()