Lines Matching refs:cmd
84 struct ethtool_link_ksettings *cmd) in netxen_nic_get_link_ksettings() argument
104 cmd->base.port = PORT_TP; in netxen_nic_get_link_ksettings()
106 cmd->base.speed = adapter->link_speed; in netxen_nic_get_link_ksettings()
107 cmd->base.duplex = adapter->link_duplex; in netxen_nic_get_link_ksettings()
108 cmd->base.autoneg = adapter->link_autoneg; in netxen_nic_get_link_ksettings()
123 cmd->base.speed = adapter->link_speed; in netxen_nic_get_link_ksettings()
124 cmd->base.autoneg = adapter->link_autoneg; in netxen_nic_get_link_ksettings()
125 cmd->base.duplex = adapter->link_duplex; in netxen_nic_get_link_ksettings()
129 cmd->base.port = PORT_TP; in netxen_nic_get_link_ksettings()
135 cmd->base.speed = P3_LINK_SPEED_MHZ * in netxen_nic_get_link_ksettings()
138 cmd->base.speed = SPEED_10000; in netxen_nic_get_link_ksettings()
140 cmd->base.duplex = DUPLEX_FULL; in netxen_nic_get_link_ksettings()
141 cmd->base.autoneg = AUTONEG_DISABLE; in netxen_nic_get_link_ksettings()
146 cmd->base.phy_address = adapter->physical_port; in netxen_nic_get_link_ksettings()
163 cmd->base.port = PORT_TP; in netxen_nic_get_link_ksettings()
164 cmd->base.autoneg = (adapter->ahw.board_type == in netxen_nic_get_link_ksettings()
175 cmd->base.port = PORT_MII; in netxen_nic_get_link_ksettings()
176 cmd->base.autoneg = AUTONEG_DISABLE; in netxen_nic_get_link_ksettings()
190 cmd->base.port = PORT_FIBRE; in netxen_nic_get_link_ksettings()
191 cmd->base.autoneg = AUTONEG_DISABLE; in netxen_nic_get_link_ksettings()
195 cmd->base.autoneg = AUTONEG_DISABLE; in netxen_nic_get_link_ksettings()
199 cmd->base.port = PORT_FIBRE; in netxen_nic_get_link_ksettings()
206 cmd->base.port = PORT_TP; in netxen_nic_get_link_ksettings()
221 cmd->base.port = PORT_FIBRE; in netxen_nic_get_link_ksettings()
226 cmd->base.port = PORT_TP; in netxen_nic_get_link_ksettings()
229 cmd->base.port = -1; in netxen_nic_get_link_ksettings()
234 cmd->base.duplex = DUPLEX_UNKNOWN; in netxen_nic_get_link_ksettings()
235 cmd->base.speed = SPEED_UNKNOWN; in netxen_nic_get_link_ksettings()
238 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in netxen_nic_get_link_ksettings()
240 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in netxen_nic_get_link_ksettings()
248 const struct ethtool_link_ksettings *cmd) in netxen_nic_set_link_ksettings() argument
251 u32 speed = cmd->base.speed; in netxen_nic_set_link_ksettings()
260 ret = nx_fw_cmd_set_gbe_port(adapter, speed, cmd->base.duplex, in netxen_nic_set_link_ksettings()
261 cmd->base.autoneg); in netxen_nic_set_link_ksettings()
268 adapter->link_duplex = cmd->base.duplex; in netxen_nic_set_link_ksettings()
269 adapter->link_autoneg = cmd->base.autoneg; in netxen_nic_set_link_ksettings()