Lines Matching refs:cmd
1270 safe_ks.base.cmd = copy_ks.base.cmd; in i40e_set_link_ksettings()
1871 struct i40e_nvm_access *cmd = (struct i40e_nvm_access *)eeprom; in i40e_get_eeprom() local
1881 ret_val = i40e_nvmupd_command(hw, cmd, bytes, &errno); in i40e_get_eeprom()
1887 (u8)(cmd->config & I40E_NVM_MOD_PNT_MASK), in i40e_get_eeprom()
1888 cmd->offset, cmd->data_size); in i40e_get_eeprom()
1972 struct i40e_nvm_access *cmd = (struct i40e_nvm_access *)eeprom; in i40e_set_eeprom() local
1988 ret_val = i40e_nvmupd_command(hw, cmd, bytes, &errno); in i40e_set_eeprom()
1994 (u8)(cmd->config & I40E_NVM_MOD_PNT_MASK), in i40e_set_eeprom()
1995 cmd->offset, cmd->data_size); in i40e_set_eeprom()
3136 static int i40e_get_rss_hash_opts(struct i40e_pf *pf, struct ethtool_rxnfc *cmd) in i40e_get_rss_hash_opts() argument
3142 cmd->data = 0; in i40e_get_rss_hash_opts()
3144 switch (cmd->flow_type) { in i40e_get_rss_hash_opts()
3168 cmd->data |= RXH_IP_SRC | RXH_IP_DST; in i40e_get_rss_hash_opts()
3185 cmd->data |= RXH_L4_B_0_1; in i40e_get_rss_hash_opts()
3187 cmd->data |= RXH_L4_B_2_3; in i40e_get_rss_hash_opts()
3189 if (cmd->flow_type == TCP_V4_FLOW || in i40e_get_rss_hash_opts()
3190 cmd->flow_type == UDP_V4_FLOW) { in i40e_get_rss_hash_opts()
3193 cmd->data |= RXH_IP_SRC; in i40e_get_rss_hash_opts()
3195 cmd->data |= RXH_IP_DST; in i40e_get_rss_hash_opts()
3198 cmd->data |= RXH_IP_SRC; in i40e_get_rss_hash_opts()
3200 cmd->data |= RXH_IP_DST; in i40e_get_rss_hash_opts()
3202 } else if (cmd->flow_type == TCP_V6_FLOW || in i40e_get_rss_hash_opts()
3203 cmd->flow_type == UDP_V6_FLOW) { in i40e_get_rss_hash_opts()
3205 cmd->data |= RXH_IP_SRC; in i40e_get_rss_hash_opts()
3207 cmd->data |= RXH_IP_DST; in i40e_get_rss_hash_opts()
3323 struct ethtool_rxnfc *cmd, in i40e_get_ethtool_fdir_all() argument
3331 cmd->data = i40e_get_fd_cnt_all(pf); in i40e_get_ethtool_fdir_all()
3335 if (cnt == cmd->rule_cnt) in i40e_get_ethtool_fdir_all()
3342 cmd->rule_cnt = cnt; in i40e_get_ethtool_fdir_all()
3358 struct ethtool_rxnfc *cmd) in i40e_get_ethtool_fdir_entry() argument
3361 (struct ethtool_rx_flow_spec *)&cmd->fs; in i40e_get_ethtool_fdir_entry()
3522 static int i40e_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *cmd, in i40e_get_rxnfc() argument
3530 switch (cmd->cmd) { in i40e_get_rxnfc()
3532 cmd->data = vsi->rss_size; in i40e_get_rxnfc()
3536 ret = i40e_get_rss_hash_opts(pf, cmd); in i40e_get_rxnfc()
3539 cmd->rule_cnt = pf->fdir_pf_active_filters; in i40e_get_rxnfc()
3541 cmd->data = i40e_get_fd_cnt_all(pf); in i40e_get_rxnfc()
3545 ret = i40e_get_ethtool_fdir_entry(pf, cmd); in i40e_get_rxnfc()
3548 ret = i40e_get_ethtool_fdir_all(pf, cmd, rule_locs); in i40e_get_rxnfc()
3742 struct ethtool_rxnfc *cmd) in i40e_update_ethtool_fdir_entry() argument
3867 struct ethtool_rxnfc *cmd) in i40e_del_fdir_entry() argument
3870 (struct ethtool_rx_flow_spec *)&cmd->fs; in i40e_del_fdir_entry()
3881 ret = i40e_update_ethtool_fdir_entry(vsi, NULL, fsp->location, cmd); in i40e_del_fdir_entry()
4790 struct ethtool_rxnfc *cmd) in i40e_add_fdir_ethtool() argument
4817 fsp = (struct ethtool_rx_flow_spec *)&cmd->fs; in i40e_add_fdir_ethtool()
4946 static int i40e_set_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *cmd) in i40e_set_rxnfc() argument
4953 switch (cmd->cmd) { in i40e_set_rxnfc()
4955 ret = i40e_set_rss_hash_opt(pf, cmd); in i40e_set_rxnfc()
4958 ret = i40e_add_fdir_ethtool(vsi, cmd); in i40e_set_rxnfc()
4961 ret = i40e_del_fdir_entry(vsi, cmd); in i40e_set_rxnfc()