Lines Matching refs:cmd

3506 			u32 cmd;  in tg3_nvram_write_block_buffered()  local
3508 cmd = NVRAM_CMD_WREN | NVRAM_CMD_GO | NVRAM_CMD_DONE; in tg3_nvram_write_block_buffered()
3509 ret = tg3_nvram_exec_cmd(tp, cmd); in tg3_nvram_write_block_buffered()
12166 struct ethtool_link_ksettings *cmd) in tg3_get_link_ksettings() argument
12176 phy_ethtool_ksettings_get(phydev, cmd); in tg3_get_link_ksettings()
12193 cmd->base.port = PORT_TP; in tg3_get_link_ksettings()
12196 cmd->base.port = PORT_FIBRE; in tg3_get_link_ksettings()
12198 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in tg3_get_link_ksettings()
12214 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in tg3_get_link_ksettings()
12218 cmd->base.speed = tp->link_config.active_speed; in tg3_get_link_ksettings()
12219 cmd->base.duplex = tp->link_config.active_duplex; in tg3_get_link_ksettings()
12221 cmd->link_modes.lp_advertising, in tg3_get_link_ksettings()
12226 cmd->base.eth_tp_mdix = ETH_TP_MDI_X; in tg3_get_link_ksettings()
12228 cmd->base.eth_tp_mdix = ETH_TP_MDI; in tg3_get_link_ksettings()
12231 cmd->base.speed = SPEED_UNKNOWN; in tg3_get_link_ksettings()
12232 cmd->base.duplex = DUPLEX_UNKNOWN; in tg3_get_link_ksettings()
12233 cmd->base.eth_tp_mdix = ETH_TP_MDI_INVALID; in tg3_get_link_ksettings()
12235 cmd->base.phy_address = tp->phy_addr; in tg3_get_link_ksettings()
12236 cmd->base.autoneg = tp->link_config.autoneg; in tg3_get_link_ksettings()
12241 const struct ethtool_link_ksettings *cmd) in tg3_set_link_ksettings() argument
12244 u32 speed = cmd->base.speed; in tg3_set_link_ksettings()
12252 return phy_ethtool_ksettings_set(phydev, cmd); in tg3_set_link_ksettings()
12255 if (cmd->base.autoneg != AUTONEG_ENABLE && in tg3_set_link_ksettings()
12256 cmd->base.autoneg != AUTONEG_DISABLE) in tg3_set_link_ksettings()
12259 if (cmd->base.autoneg == AUTONEG_DISABLE && in tg3_set_link_ksettings()
12260 cmd->base.duplex != DUPLEX_FULL && in tg3_set_link_ksettings()
12261 cmd->base.duplex != DUPLEX_HALF) in tg3_set_link_ksettings()
12265 cmd->link_modes.advertising); in tg3_set_link_ksettings()
12267 if (cmd->base.autoneg == AUTONEG_ENABLE) { in tg3_set_link_ksettings()
12301 if (cmd->base.duplex != DUPLEX_FULL) in tg3_set_link_ksettings()
12312 tp->link_config.autoneg = cmd->base.autoneg; in tg3_set_link_ksettings()
12313 if (cmd->base.autoneg == AUTONEG_ENABLE) { in tg3_set_link_ksettings()
12321 tp->link_config.duplex = cmd->base.duplex; in tg3_set_link_ksettings()
12640 switch (info->cmd) { in tg3_get_rxnfc()
13978 static int tg3_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in tg3_ioctl() argument
13989 return phy_mii_ioctl(phydev, ifr, cmd); in tg3_ioctl()
13992 switch (cmd) { in tg3_ioctl()
15394 static int tg3_issue_otp_command(struct tg3 *tp, u32 cmd) in tg3_issue_otp_command() argument
15399 tw32(OTP_CTRL, cmd | OTP_CTRL_OTP_CMD_START); in tg3_issue_otp_command()
15400 tw32(OTP_CTRL, cmd); in tg3_issue_otp_command()
17559 ec->cmd = ETHTOOL_GCOALESCE; in tg3_init_coal()