Lines Matching refs:new_advert
300 static int fun_change_advert(struct funeth_priv *fp, u64 new_advert) in fun_change_advert() argument
304 if (new_advert == fp->advertising) in fun_change_advert()
307 err = fun_port_write_cmd(fp, FUN_ADMIN_PORT_KEY_ADVERT, new_advert); in fun_change_advert()
309 fp->advertising = new_advert; in fun_change_advert()
321 u64 new_advert; in fun_set_link_ksettings() local
341 new_advert = fun_advert_modes(ks) | FUN_PORT_CAP_AUTONEG; in fun_set_link_ksettings()
343 new_advert = fun_speed_to_link_mode(ks->base.speed); in fun_set_link_ksettings()
344 new_advert &= fp->port_caps; in fun_set_link_ksettings()
345 if (!new_advert) in fun_set_link_ksettings()
348 new_advert |= fp->advertising & in fun_set_link_ksettings()
351 return fun_change_advert(fp, new_advert); in fun_set_link_ksettings()
369 u64 new_advert; in fun_set_pauseparam() local
383 new_advert = fp->advertising & ~FUN_PORT_CAP_PAUSE_MASK; in fun_set_pauseparam()
385 new_advert |= FUN_PORT_CAP_TX_PAUSE; in fun_set_pauseparam()
387 new_advert |= FUN_PORT_CAP_RX_PAUSE; in fun_set_pauseparam()
389 return fun_change_advert(fp, new_advert); in fun_set_pauseparam()