Lines Matching refs:cmd

310 				   struct ethtool_link_ksettings *cmd)  in xgbe_get_link_ksettings()  argument
315 cmd->base.phy_address = pdata->phy.address; in xgbe_get_link_ksettings()
318 cmd->base.speed = pdata->phy.speed; in xgbe_get_link_ksettings()
319 cmd->base.duplex = pdata->phy.duplex; in xgbe_get_link_ksettings()
321 cmd->base.speed = SPEED_UNKNOWN; in xgbe_get_link_ksettings()
322 cmd->base.duplex = DUPLEX_UNKNOWN; in xgbe_get_link_ksettings()
325 cmd->base.autoneg = pdata->phy.autoneg; in xgbe_get_link_ksettings()
326 cmd->base.port = PORT_NONE; in xgbe_get_link_ksettings()
328 XGBE_LM_COPY(cmd, supported, lks, supported); in xgbe_get_link_ksettings()
329 XGBE_LM_COPY(cmd, advertising, lks, advertising); in xgbe_get_link_ksettings()
330 XGBE_LM_COPY(cmd, lp_advertising, lks, lp_advertising); in xgbe_get_link_ksettings()
336 const struct ethtool_link_ksettings *cmd) in xgbe_set_link_ksettings() argument
344 speed = cmd->base.speed; in xgbe_set_link_ksettings()
346 if (cmd->base.phy_address != pdata->phy.address) { in xgbe_set_link_ksettings()
348 cmd->base.phy_address); in xgbe_set_link_ksettings()
352 if ((cmd->base.autoneg != AUTONEG_ENABLE) && in xgbe_set_link_ksettings()
353 (cmd->base.autoneg != AUTONEG_DISABLE)) { in xgbe_set_link_ksettings()
355 cmd->base.autoneg); in xgbe_set_link_ksettings()
359 if (cmd->base.autoneg == AUTONEG_DISABLE) { in xgbe_set_link_ksettings()
365 if (cmd->base.duplex != DUPLEX_FULL) { in xgbe_set_link_ksettings()
367 cmd->base.duplex); in xgbe_set_link_ksettings()
374 __ETHTOOL_LINK_MODE_MASK_NBITS, cmd->link_modes.advertising, in xgbe_set_link_ksettings()
377 linkmode_and(advertising, cmd->link_modes.advertising, in xgbe_set_link_ksettings()
380 if ((cmd->base.autoneg == AUTONEG_ENABLE) && in xgbe_set_link_ksettings()
388 pdata->phy.autoneg = cmd->base.autoneg; in xgbe_set_link_ksettings()
390 pdata->phy.duplex = cmd->base.duplex; in xgbe_set_link_ksettings()
393 if (cmd->base.autoneg == AUTONEG_ENABLE) in xgbe_set_link_ksettings()
505 switch (rxnfc->cmd) { in xgbe_get_rxnfc()