Lines Matching refs:cmd
331 switch (info->cmd) { in bnx2_drv_ctl()
444 info.cmd = CNIC_CTL_STOP_CMD; in bnx2_cnic_stop()
465 info.cmd = CNIC_CTL_START_CMD; in bnx2_cnic_start()
3777 u32 val, cmd, addr; in load_rv2p_fw() local
3785 cmd = BNX2_RV2P_PROC1_ADDR_CMD_RDWR; in load_rv2p_fw()
3788 cmd = BNX2_RV2P_PROC2_ADDR_CMD_RDWR; in load_rv2p_fw()
3798 val = (i / 8) | cmd; in load_rv2p_fw()
3814 val = (loc / 2) | cmd; in load_rv2p_fw()
4190 u32 cmd; in bnx2_nvram_erase_page() local
4198 cmd = BNX2_NVM_COMMAND_ERASE | BNX2_NVM_COMMAND_WR | in bnx2_nvram_erase_page()
4208 BNX2_WR(bp, BNX2_NVM_COMMAND, cmd); in bnx2_nvram_erase_page()
4230 u32 cmd; in bnx2_nvram_read_dword() local
4234 cmd = BNX2_NVM_COMMAND_DOIT | cmd_flags; in bnx2_nvram_read_dword()
4250 BNX2_WR(bp, BNX2_NVM_COMMAND, cmd); in bnx2_nvram_read_dword()
4275 u32 cmd; in bnx2_nvram_write_dword() local
4280 cmd = BNX2_NVM_COMMAND_DOIT | BNX2_NVM_COMMAND_WR | cmd_flags; in bnx2_nvram_write_dword()
4301 BNX2_WR(bp, BNX2_NVM_COMMAND, cmd); in bnx2_nvram_write_dword()
6876 struct ethtool_link_ksettings *cmd) in bnx2_get_link_ksettings() argument
6907 cmd->base.port = bp->phy_port; in bnx2_get_link_ksettings()
6911 cmd->base.autoneg = AUTONEG_ENABLE; in bnx2_get_link_ksettings()
6913 cmd->base.autoneg = AUTONEG_DISABLE; in bnx2_get_link_ksettings()
6917 cmd->base.speed = bp->line_speed; in bnx2_get_link_ksettings()
6918 cmd->base.duplex = bp->duplex; in bnx2_get_link_ksettings()
6921 cmd->base.eth_tp_mdix = ETH_TP_MDI_X; in bnx2_get_link_ksettings()
6923 cmd->base.eth_tp_mdix = ETH_TP_MDI; in bnx2_get_link_ksettings()
6927 cmd->base.speed = SPEED_UNKNOWN; in bnx2_get_link_ksettings()
6928 cmd->base.duplex = DUPLEX_UNKNOWN; in bnx2_get_link_ksettings()
6932 cmd->base.phy_address = bp->phy_addr; in bnx2_get_link_ksettings()
6934 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in bnx2_get_link_ksettings()
6936 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in bnx2_get_link_ksettings()
6944 const struct ethtool_link_ksettings *cmd) in bnx2_set_link_ksettings() argument
6955 if (cmd->base.port != PORT_TP && cmd->base.port != PORT_FIBRE) in bnx2_set_link_ksettings()
6958 if (cmd->base.port != bp->phy_port && in bnx2_set_link_ksettings()
6965 if (!netif_running(dev) && cmd->base.port != bp->phy_port) in bnx2_set_link_ksettings()
6968 if (cmd->base.autoneg == AUTONEG_ENABLE) { in bnx2_set_link_ksettings()
6972 &advertising, cmd->link_modes.advertising); in bnx2_set_link_ksettings()
6974 if (cmd->base.port == PORT_TP) { in bnx2_set_link_ksettings()
6986 u32 speed = cmd->base.speed; in bnx2_set_link_ksettings()
6988 if (cmd->base.port == PORT_FIBRE) { in bnx2_set_link_ksettings()
6991 (cmd->base.duplex != DUPLEX_FULL)) in bnx2_set_link_ksettings()
7002 req_duplex = cmd->base.duplex; in bnx2_set_link_ksettings()
7016 err = bnx2_setup_phy(bp, cmd->base.port); in bnx2_set_link_ksettings()
7842 bnx2_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in bnx2_ioctl() argument
7848 switch(cmd) { in bnx2_ioctl()