Lines Matching refs:cmd

962 				    struct ethtool_rxnfc *cmd)  in igc_ethtool_get_nfc_rule()  argument
964 struct ethtool_rx_flow_spec *fsp = &cmd->fs; in igc_ethtool_get_nfc_rule()
967 cmd->data = IGC_MAX_RXNFC_RULES; in igc_ethtool_get_nfc_rule()
1022 struct ethtool_rxnfc *cmd, in igc_ethtool_get_nfc_rules() argument
1028 cmd->data = IGC_MAX_RXNFC_RULES; in igc_ethtool_get_nfc_rules()
1033 if (cnt == cmd->rule_cnt) { in igc_ethtool_get_nfc_rules()
1043 cmd->rule_cnt = cnt; in igc_ethtool_get_nfc_rules()
1049 struct ethtool_rxnfc *cmd) in igc_ethtool_get_rss_hash_opts() argument
1051 cmd->data = 0; in igc_ethtool_get_rss_hash_opts()
1054 switch (cmd->flow_type) { in igc_ethtool_get_rss_hash_opts()
1056 cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in igc_ethtool_get_rss_hash_opts()
1060 cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in igc_ethtool_get_rss_hash_opts()
1067 cmd->data |= RXH_IP_SRC | RXH_IP_DST; in igc_ethtool_get_rss_hash_opts()
1070 cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in igc_ethtool_get_rss_hash_opts()
1074 cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; in igc_ethtool_get_rss_hash_opts()
1081 cmd->data |= RXH_IP_SRC | RXH_IP_DST; in igc_ethtool_get_rss_hash_opts()
1091 struct ethtool_rxnfc *cmd, u32 *rule_locs) in igc_ethtool_get_rxnfc() argument
1095 switch (cmd->cmd) { in igc_ethtool_get_rxnfc()
1097 cmd->data = adapter->num_rx_queues; in igc_ethtool_get_rxnfc()
1100 cmd->rule_cnt = adapter->nfc_rule_count; in igc_ethtool_get_rxnfc()
1103 return igc_ethtool_get_nfc_rule(adapter, cmd); in igc_ethtool_get_rxnfc()
1105 return igc_ethtool_get_nfc_rules(adapter, cmd, rule_locs); in igc_ethtool_get_rxnfc()
1107 return igc_ethtool_get_rss_hash_opts(adapter, cmd); in igc_ethtool_get_rxnfc()
1324 struct ethtool_rxnfc *cmd) in igc_ethtool_add_nfc_rule() argument
1328 (struct ethtool_rx_flow_spec *)&cmd->fs; in igc_ethtool_add_nfc_rule()
1402 struct ethtool_rxnfc *cmd) in igc_ethtool_del_nfc_rule() argument
1405 (struct ethtool_rx_flow_spec *)&cmd->fs; in igc_ethtool_del_nfc_rule()
1423 struct ethtool_rxnfc *cmd) in igc_ethtool_set_rxnfc() argument
1427 switch (cmd->cmd) { in igc_ethtool_set_rxnfc()
1429 return igc_ethtool_set_rss_hash_opt(adapter, cmd); in igc_ethtool_set_rxnfc()
1431 return igc_ethtool_add_nfc_rule(adapter, cmd); in igc_ethtool_set_rxnfc()
1433 return igc_ethtool_del_nfc_rule(adapter, cmd); in igc_ethtool_set_rxnfc()
1733 struct ethtool_link_ksettings *cmd) in igc_ethtool_get_link_ksettings() argument
1740 ethtool_link_ksettings_zero_link_mode(cmd, supported); in igc_ethtool_get_link_ksettings()
1741 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in igc_ethtool_get_link_ksettings()
1744 ethtool_link_ksettings_add_link_mode(cmd, supported, 10baseT_Half); in igc_ethtool_get_link_ksettings()
1745 ethtool_link_ksettings_add_link_mode(cmd, supported, 10baseT_Full); in igc_ethtool_get_link_ksettings()
1746 ethtool_link_ksettings_add_link_mode(cmd, supported, 100baseT_Half); in igc_ethtool_get_link_ksettings()
1747 ethtool_link_ksettings_add_link_mode(cmd, supported, 100baseT_Full); in igc_ethtool_get_link_ksettings()
1748 ethtool_link_ksettings_add_link_mode(cmd, supported, 1000baseT_Full); in igc_ethtool_get_link_ksettings()
1749 ethtool_link_ksettings_add_link_mode(cmd, supported, 2500baseT_Full); in igc_ethtool_get_link_ksettings()
1752 cmd->base.port = PORT_TP; in igc_ethtool_get_link_ksettings()
1753 cmd->base.phy_address = hw->phy.addr; in igc_ethtool_get_link_ksettings()
1754 ethtool_link_ksettings_add_link_mode(cmd, supported, TP); in igc_ethtool_get_link_ksettings()
1755 ethtool_link_ksettings_add_link_mode(cmd, advertising, TP); in igc_ethtool_get_link_ksettings()
1759 ethtool_link_ksettings_add_link_mode(cmd, advertising, 10baseT_Half); in igc_ethtool_get_link_ksettings()
1761 ethtool_link_ksettings_add_link_mode(cmd, advertising, 10baseT_Full); in igc_ethtool_get_link_ksettings()
1763 ethtool_link_ksettings_add_link_mode(cmd, advertising, 100baseT_Half); in igc_ethtool_get_link_ksettings()
1765 ethtool_link_ksettings_add_link_mode(cmd, advertising, 100baseT_Full); in igc_ethtool_get_link_ksettings()
1767 ethtool_link_ksettings_add_link_mode(cmd, advertising, 1000baseT_Full); in igc_ethtool_get_link_ksettings()
1769 ethtool_link_ksettings_add_link_mode(cmd, advertising, 2500baseT_Full); in igc_ethtool_get_link_ksettings()
1773 ethtool_link_ksettings_add_link_mode(cmd, supported, Autoneg); in igc_ethtool_get_link_ksettings()
1774 ethtool_link_ksettings_add_link_mode(cmd, advertising, in igc_ethtool_get_link_ksettings()
1779 ethtool_link_ksettings_add_link_mode(cmd, supported, Pause); in igc_ethtool_get_link_ksettings()
1783 ethtool_link_ksettings_add_link_mode(cmd, advertising, Pause); in igc_ethtool_get_link_ksettings()
1786 ethtool_link_ksettings_add_link_mode(cmd, advertising, Pause); in igc_ethtool_get_link_ksettings()
1787 ethtool_link_ksettings_add_link_mode(cmd, advertising, in igc_ethtool_get_link_ksettings()
1791 ethtool_link_ksettings_add_link_mode(cmd, advertising, in igc_ethtool_get_link_ksettings()
1821 cmd->base.duplex = DUPLEX_FULL; in igc_ethtool_get_link_ksettings()
1823 cmd->base.duplex = DUPLEX_HALF; in igc_ethtool_get_link_ksettings()
1826 cmd->base.duplex = DUPLEX_UNKNOWN; in igc_ethtool_get_link_ksettings()
1828 cmd->base.speed = speed; in igc_ethtool_get_link_ksettings()
1830 cmd->base.autoneg = AUTONEG_ENABLE; in igc_ethtool_get_link_ksettings()
1832 cmd->base.autoneg = AUTONEG_DISABLE; in igc_ethtool_get_link_ksettings()
1836 cmd->base.eth_tp_mdix = hw->phy.is_mdix ? ETH_TP_MDI_X : in igc_ethtool_get_link_ksettings()
1839 cmd->base.eth_tp_mdix = ETH_TP_MDI_INVALID; in igc_ethtool_get_link_ksettings()
1842 cmd->base.eth_tp_mdix_ctrl = ETH_TP_MDI_AUTO; in igc_ethtool_get_link_ksettings()
1844 cmd->base.eth_tp_mdix_ctrl = hw->phy.mdix; in igc_ethtool_get_link_ksettings()
1851 const struct ethtool_link_ksettings *cmd) in igc_ethtool_set_link_ksettings() argument
1870 if (cmd->base.eth_tp_mdix_ctrl) { in igc_ethtool_set_link_ksettings()
1871 if (cmd->base.eth_tp_mdix_ctrl != ETH_TP_MDI_AUTO && in igc_ethtool_set_link_ksettings()
1872 cmd->base.autoneg != AUTONEG_ENABLE) { in igc_ethtool_set_link_ksettings()
1881 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in igc_ethtool_set_link_ksettings()
1885 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in igc_ethtool_set_link_ksettings()
1889 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in igc_ethtool_set_link_ksettings()
1893 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in igc_ethtool_set_link_ksettings()
1897 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in igc_ethtool_set_link_ksettings()
1901 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in igc_ethtool_set_link_ksettings()
1905 if (cmd->base.autoneg == AUTONEG_ENABLE) { in igc_ethtool_set_link_ksettings()
1915 if (cmd->base.eth_tp_mdix_ctrl) { in igc_ethtool_set_link_ksettings()
1919 if (cmd->base.eth_tp_mdix_ctrl == ETH_TP_MDI_AUTO) in igc_ethtool_set_link_ksettings()
1922 hw->phy.mdix = cmd->base.eth_tp_mdix_ctrl; in igc_ethtool_set_link_ksettings()