Lines Matching refs:cmd

218 	struct i40e_aqc_queue_shutdown *cmd =  in i40e_aq_queue_shutdown()  local
226 cmd->driver_unloading = cpu_to_le32(I40E_AQ_DRIVER_UNLOADING); in i40e_aq_queue_shutdown()
1398 struct i40e_aq_set_phy_config *cmd = in i40e_aq_set_phy_config() local
1408 *cmd = *config; in i40e_aq_set_phy_config()
1520 struct i40e_aqc_clear_pxe *cmd = in i40e_aq_clear_pxe_mode() local
1527 cmd->rx_cnt = 0x2; in i40e_aq_clear_pxe_mode()
1549 struct i40e_aqc_set_link_restart_an *cmd = in i40e_aq_set_link_restart_an() local
1556 cmd->command = I40E_AQ_PHY_RESTART_AN; in i40e_aq_set_link_restart_an()
1558 cmd->command |= I40E_AQ_PHY_LINK_ENABLE; in i40e_aq_set_link_restart_an()
1560 cmd->command &= ~I40E_AQ_PHY_LINK_ENABLE; in i40e_aq_set_link_restart_an()
1677 struct i40e_aqc_set_phy_int_mask *cmd = in i40e_aq_set_phy_int_mask() local
1684 cmd->event_mask = cpu_to_le16(mask); in i40e_aq_set_phy_int_mask()
1703 struct i40e_aqc_set_lb_mode *cmd = in i40e_aq_set_mac_loopback() local
1709 cmd->lb_mode = cpu_to_le16(I40E_AQ_LB_MAC_LOCAL_LEGACY); in i40e_aq_set_mac_loopback()
1711 cmd->lb_mode = cpu_to_le16(I40E_AQ_LB_MAC_LOCAL); in i40e_aq_set_mac_loopback()
1729 struct i40e_aqc_set_phy_debug *cmd = in i40e_aq_set_phy_debug() local
1736 cmd->command_flags = cmd_flags; in i40e_aq_set_phy_debug()
1771 struct i40e_aqc_add_get_update_vsi *cmd = in i40e_aq_add_vsi() local
1781 cmd->uplink_seid = cpu_to_le16(vsi_ctx->uplink_seid); in i40e_aq_add_vsi()
1782 cmd->connection_type = vsi_ctx->connection_type; in i40e_aq_add_vsi()
1783 cmd->vf_id = vsi_ctx->vf_num; in i40e_aq_add_vsi()
1784 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); in i40e_aq_add_vsi()
1815 struct i40e_aqc_set_vsi_promiscuous_modes *cmd = in i40e_aq_set_default_vsi() local
1823 cmd->promiscuous_flags = cpu_to_le16(I40E_AQC_SET_VSI_DEFAULT); in i40e_aq_set_default_vsi()
1824 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_DEFAULT); in i40e_aq_set_default_vsi()
1825 cmd->seid = cpu_to_le16(seid); in i40e_aq_set_default_vsi()
1843 struct i40e_aqc_set_vsi_promiscuous_modes *cmd = in i40e_aq_clear_default_vsi() local
1851 cmd->promiscuous_flags = cpu_to_le16(0); in i40e_aq_clear_default_vsi()
1852 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_DEFAULT); in i40e_aq_clear_default_vsi()
1853 cmd->seid = cpu_to_le16(seid); in i40e_aq_clear_default_vsi()
1874 struct i40e_aqc_set_vsi_promiscuous_modes *cmd = in i40e_aq_set_vsi_unicast_promiscuous() local
1888 cmd->promiscuous_flags = cpu_to_le16(flags); in i40e_aq_set_vsi_unicast_promiscuous()
1890 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_UNICAST); in i40e_aq_set_vsi_unicast_promiscuous()
1892 cmd->valid_flags |= in i40e_aq_set_vsi_unicast_promiscuous()
1895 cmd->seid = cpu_to_le16(seid); in i40e_aq_set_vsi_unicast_promiscuous()
1913 struct i40e_aqc_set_vsi_promiscuous_modes *cmd = in i40e_aq_set_vsi_multicast_promiscuous() local
1924 cmd->promiscuous_flags = cpu_to_le16(flags); in i40e_aq_set_vsi_multicast_promiscuous()
1926 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_MULTICAST); in i40e_aq_set_vsi_multicast_promiscuous()
1928 cmd->seid = cpu_to_le16(seid); in i40e_aq_set_vsi_multicast_promiscuous()
1948 struct i40e_aqc_set_vsi_promiscuous_modes *cmd = in i40e_aq_set_vsi_mc_promisc_on_vlan() local
1959 cmd->promiscuous_flags = cpu_to_le16(flags); in i40e_aq_set_vsi_mc_promisc_on_vlan()
1960 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_MULTICAST); in i40e_aq_set_vsi_mc_promisc_on_vlan()
1961 cmd->seid = cpu_to_le16(seid); in i40e_aq_set_vsi_mc_promisc_on_vlan()
1962 cmd->vlan_tag = cpu_to_le16(vid | I40E_AQC_SET_VSI_VLAN_VALID); in i40e_aq_set_vsi_mc_promisc_on_vlan()
1984 struct i40e_aqc_set_vsi_promiscuous_modes *cmd = in i40e_aq_set_vsi_uc_promisc_on_vlan() local
1998 cmd->promiscuous_flags = cpu_to_le16(flags); in i40e_aq_set_vsi_uc_promisc_on_vlan()
1999 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_UNICAST); in i40e_aq_set_vsi_uc_promisc_on_vlan()
2001 cmd->valid_flags |= in i40e_aq_set_vsi_uc_promisc_on_vlan()
2003 cmd->seid = cpu_to_le16(seid); in i40e_aq_set_vsi_uc_promisc_on_vlan()
2004 cmd->vlan_tag = cpu_to_le16(vid | I40E_AQC_SET_VSI_VLAN_VALID); in i40e_aq_set_vsi_uc_promisc_on_vlan()
2025 struct i40e_aqc_set_vsi_promiscuous_modes *cmd = in i40e_aq_set_vsi_bc_promisc_on_vlan() local
2036 cmd->promiscuous_flags = cpu_to_le16(flags); in i40e_aq_set_vsi_bc_promisc_on_vlan()
2037 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_BROADCAST); in i40e_aq_set_vsi_bc_promisc_on_vlan()
2038 cmd->seid = cpu_to_le16(seid); in i40e_aq_set_vsi_bc_promisc_on_vlan()
2039 cmd->vlan_tag = cpu_to_le16(vid | I40E_AQC_SET_VSI_VLAN_VALID); in i40e_aq_set_vsi_bc_promisc_on_vlan()
2060 struct i40e_aqc_set_vsi_promiscuous_modes *cmd = in i40e_aq_set_vsi_broadcast() local
2068 cmd->promiscuous_flags in i40e_aq_set_vsi_broadcast()
2071 cmd->promiscuous_flags in i40e_aq_set_vsi_broadcast()
2074 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_BROADCAST); in i40e_aq_set_vsi_broadcast()
2075 cmd->seid = cpu_to_le16(seid); in i40e_aq_set_vsi_broadcast()
2093 struct i40e_aqc_set_vsi_promiscuous_modes *cmd = in i40e_aq_set_vsi_vlan_promisc() local
2103 cmd->promiscuous_flags = cpu_to_le16(flags); in i40e_aq_set_vsi_vlan_promisc()
2104 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_VLAN); in i40e_aq_set_vsi_vlan_promisc()
2105 cmd->seid = cpu_to_le16(seid); in i40e_aq_set_vsi_vlan_promisc()
2123 struct i40e_aqc_add_get_update_vsi *cmd = in i40e_aq_get_vsi_params() local
2133 cmd->uplink_seid = cpu_to_le16(vsi_ctx->seid); in i40e_aq_get_vsi_params()
2165 struct i40e_aqc_add_get_update_vsi *cmd = in i40e_aq_update_vsi_params() local
2174 cmd->uplink_seid = cpu_to_le16(vsi_ctx->seid); in i40e_aq_update_vsi_params()
2313 struct i40e_aqc_driver_version *cmd = in i40e_aq_send_driver_version() local
2324 cmd->driver_major_ver = dv->major_version; in i40e_aq_send_driver_version()
2325 cmd->driver_minor_ver = dv->minor_version; in i40e_aq_send_driver_version()
2326 cmd->driver_build_ver = dv->build_version; in i40e_aq_send_driver_version()
2327 cmd->driver_subbuild_ver = dv->subbuild_version; in i40e_aq_send_driver_version()
2428 struct i40e_aqc_add_veb *cmd = in i40e_aq_add_veb() local
2441 cmd->uplink_seid = cpu_to_le16(uplink_seid); in i40e_aq_add_veb()
2442 cmd->downlink_seid = cpu_to_le16(downlink_seid); in i40e_aq_add_veb()
2443 cmd->enable_tcs = enabled_tc; in i40e_aq_add_veb()
2455 cmd->veb_flags = cpu_to_le16(veb_flags); in i40e_aq_add_veb()
2537 struct i40e_aqc_macvlan *cmd = in i40e_prepare_add_macvlan() local
2546 cmd->num_addresses = cpu_to_le16(count); in i40e_prepare_add_macvlan()
2547 cmd->seid[0] = cpu_to_le16(I40E_AQC_MACVLAN_CMD_SEID_VALID | seid); in i40e_prepare_add_macvlan()
2548 cmd->seid[1] = 0; in i40e_prepare_add_macvlan()
2549 cmd->seid[2] = 0; in i40e_prepare_add_macvlan()
2639 struct i40e_aqc_macvlan *cmd = in i40e_aq_remove_macvlan() local
2651 cmd->num_addresses = cpu_to_le16(count); in i40e_aq_remove_macvlan()
2652 cmd->seid[0] = cpu_to_le16(I40E_AQC_MACVLAN_CMD_SEID_VALID | seid); in i40e_aq_remove_macvlan()
2653 cmd->seid[1] = 0; in i40e_aq_remove_macvlan()
2654 cmd->seid[2] = 0; in i40e_aq_remove_macvlan()
2687 struct i40e_aqc_macvlan *cmd; in i40e_aq_remove_macvlan_v2() local
2698 cmd = (struct i40e_aqc_macvlan *)&desc.params.raw; in i40e_aq_remove_macvlan_v2()
2699 cmd->num_addresses = cpu_to_le16(count); in i40e_aq_remove_macvlan_v2()
2700 cmd->seid[0] = cpu_to_le16(I40E_AQC_MACVLAN_CMD_SEID_VALID | seid); in i40e_aq_remove_macvlan_v2()
2701 cmd->seid[1] = 0; in i40e_aq_remove_macvlan_v2()
2702 cmd->seid[2] = 0; in i40e_aq_remove_macvlan_v2()
2736 struct i40e_aqc_add_delete_mirror_rule *cmd = in i40e_mirrorrule_op() local
2747 cmd->seid = cpu_to_le16(sw_seid); in i40e_mirrorrule_op()
2748 cmd->rule_type = cpu_to_le16(rule_type & in i40e_mirrorrule_op()
2750 cmd->num_entries = cpu_to_le16(count); in i40e_mirrorrule_op()
2752 cmd->destination = cpu_to_le16(id); in i40e_mirrorrule_op()
2859 struct i40e_aqc_pf_vf_message *cmd = in i40e_aq_send_msg_to_vf() local
2864 cmd->id = cpu_to_le32(vfid); in i40e_aq_send_msg_to_vf()
2929 struct i40e_aqc_debug_reg_read_write *cmd = in i40e_aq_debug_write_register() local
2935 cmd->address = cpu_to_le32(reg_addr); in i40e_aq_debug_write_register()
2936 cmd->value_high = cpu_to_le32((u32)(reg_val >> 32)); in i40e_aq_debug_write_register()
2937 cmd->value_low = cpu_to_le32((u32)(reg_val & 0xFFFFFFFF)); in i40e_aq_debug_write_register()
3000 struct i40e_aqc_request_resource *cmd = in i40e_aq_release_resource() local
3006 cmd->resource_id = cpu_to_le16(resource); in i40e_aq_release_resource()
3007 cmd->resource_number = cpu_to_le32(sdp_number); in i40e_aq_release_resource()
3032 struct i40e_aqc_nvm_update *cmd = in i40e_aq_read_nvm() local
3046 cmd->command_flags |= I40E_AQ_NVM_LAST_CMD; in i40e_aq_read_nvm()
3047 cmd->module_pointer = module_pointer; in i40e_aq_read_nvm()
3048 cmd->offset = cpu_to_le32(offset); in i40e_aq_read_nvm()
3049 cmd->length = cpu_to_le16(length); in i40e_aq_read_nvm()
3077 struct i40e_aqc_nvm_update *cmd = in i40e_aq_erase_nvm() local
3091 cmd->command_flags |= I40E_AQ_NVM_LAST_CMD; in i40e_aq_erase_nvm()
3092 cmd->module_pointer = module_pointer; in i40e_aq_erase_nvm()
3093 cmd->offset = cpu_to_le32(offset); in i40e_aq_erase_nvm()
3094 cmd->length = cpu_to_le16(length); in i40e_aq_erase_nvm()
3367 struct i40e_aqc_list_capabilites *cmd; in i40e_aq_discover_capabilities() local
3371 cmd = (struct i40e_aqc_list_capabilites *)&desc.params.raw; in i40e_aq_discover_capabilities()
3391 i40e_parse_discover_capabilities(hw, buff, le32_to_cpu(cmd->count), in i40e_aq_discover_capabilities()
3417 struct i40e_aqc_nvm_update *cmd = in i40e_aq_update_nvm() local
3431 cmd->command_flags |= I40E_AQ_NVM_LAST_CMD; in i40e_aq_update_nvm()
3434 cmd->command_flags |= in i40e_aq_update_nvm()
3438 cmd->command_flags |= in i40e_aq_update_nvm()
3442 cmd->module_pointer = module_pointer; in i40e_aq_update_nvm()
3443 cmd->offset = cpu_to_le32(offset); in i40e_aq_update_nvm()
3444 cmd->length = cpu_to_le16(length); in i40e_aq_update_nvm()
3468 struct i40e_aqc_nvm_update *cmd; in i40e_aq_rearrange_nvm() local
3472 cmd = (struct i40e_aqc_nvm_update *)&desc.params.raw; in i40e_aq_rearrange_nvm()
3484 cmd->command_flags |= rearrange_nvm; in i40e_aq_rearrange_nvm()
3510 struct i40e_aqc_lldp_get_mib *cmd = in i40e_aq_get_lldp_mib() local
3523 cmd->type = mib_type & I40E_AQ_LLDP_MIB_TYPE_MASK; in i40e_aq_get_lldp_mib()
3524 cmd->type |= ((bridge_type << I40E_AQ_LLDP_BRIDGE_TYPE_SHIFT) & in i40e_aq_get_lldp_mib()
3559 struct i40e_aqc_lldp_set_local_mib *cmd; in i40e_aq_set_lldp_mib() local
3563 cmd = (struct i40e_aqc_lldp_set_local_mib *)&desc.params.raw; in i40e_aq_set_lldp_mib()
3575 cmd->type = mib_type; in i40e_aq_set_lldp_mib()
3576 cmd->length = cpu_to_le16(buff_size); in i40e_aq_set_lldp_mib()
3577 cmd->address_high = cpu_to_le32(upper_32_bits((uintptr_t)buff)); in i40e_aq_set_lldp_mib()
3578 cmd->address_low = cpu_to_le32(lower_32_bits((uintptr_t)buff)); in i40e_aq_set_lldp_mib()
3598 struct i40e_aqc_lldp_update_mib *cmd = in i40e_aq_cfg_lldp_mib_change_event() local
3605 cmd->command |= I40E_AQ_LLDP_MIB_UPDATE_DISABLE; in i40e_aq_cfg_lldp_mib_change_event()
3627 struct i40e_aqc_lldp_restore *cmd = in i40e_aq_restore_lldp() local
3640 cmd->command |= I40E_AQ_LLDP_AGENT_RESTORE; in i40e_aq_restore_lldp()
3645 *setting = cmd->command & 1; in i40e_aq_restore_lldp()
3664 struct i40e_aqc_lldp_stop *cmd = in i40e_aq_stop_lldp() local
3671 cmd->command |= I40E_AQ_LLDP_AGENT_SHUTDOWN; in i40e_aq_stop_lldp()
3675 cmd->command |= I40E_AQ_LLDP_AGENT_STOP_PERSIST; in i40e_aq_stop_lldp()
3698 struct i40e_aqc_lldp_start *cmd = in i40e_aq_start_lldp() local
3704 cmd->command = I40E_AQ_LLDP_AGENT_START; in i40e_aq_start_lldp()
3708 cmd->command |= I40E_AQ_LLDP_AGENT_START_PERSIST; in i40e_aq_start_lldp()
3731 struct i40e_aqc_set_dcb_parameters *cmd = in i40e_aq_set_dcb_parameters() local
3742 cmd->valid_flags = I40E_DCB_VALID; in i40e_aq_set_dcb_parameters()
3743 cmd->command = I40E_AQ_DCB_SET_AGENT; in i40e_aq_set_dcb_parameters()
3796 struct i40e_aqc_add_udp_tunnel *cmd = in i40e_aq_add_udp_tunnel() local
3804 cmd->udp_port = cpu_to_le16(udp_port); in i40e_aq_add_udp_tunnel()
3805 cmd->protocol_type = protocol_index; in i40e_aq_add_udp_tunnel()
3825 struct i40e_aqc_remove_udp_tunnel *cmd = in i40e_aq_del_udp_tunnel() local
3831 cmd->index = index; in i40e_aq_del_udp_tunnel()
3850 struct i40e_aqc_switch_seid *cmd = in i40e_aq_delete_element() local
3859 cmd->seid = cpu_to_le16(seid); in i40e_aq_delete_element()
3906 struct i40e_aqc_tx_sched_ind *cmd = in i40e_aq_tx_sched_cmd() local
3943 cmd->vsi_seid = cpu_to_le16(seid); in i40e_aq_tx_sched_cmd()
3963 struct i40e_aqc_configure_vsi_bw_limit *cmd = in i40e_aq_config_vsi_bw_limit() local
3970 cmd->vsi_seid = cpu_to_le16(seid); in i40e_aq_config_vsi_bw_limit()
3971 cmd->credit = cpu_to_le16(credit); in i40e_aq_config_vsi_bw_limit()
3972 cmd->max_credit = max_credit; in i40e_aq_config_vsi_bw_limit()
4304 struct i40e_aqc_add_remove_control_packet_filter *cmd = in i40e_aq_add_rem_control_packet_filter() local
4318 cmd->queue = cpu_to_le16(queue); in i40e_aq_add_rem_control_packet_filter()
4325 ether_addr_copy(cmd->mac, mac_addr); in i40e_aq_add_rem_control_packet_filter()
4327 cmd->etype = cpu_to_le16(ethtype); in i40e_aq_add_rem_control_packet_filter()
4328 cmd->flags = cpu_to_le16(flags); in i40e_aq_add_rem_control_packet_filter()
4329 cmd->seid = cpu_to_le16(vsi_seid); in i40e_aq_add_rem_control_packet_filter()
4417 struct i40e_aqc_tx_sched_ind *cmd; in i40e_aq_suspend_port_tx() local
4421 cmd = (struct i40e_aqc_tx_sched_ind *)&desc.params.raw; in i40e_aq_suspend_port_tx()
4423 cmd->vsi_seid = cpu_to_le16(seid); in i40e_aq_suspend_port_tx()
4517 struct i40e_aqc_debug_dump_internals *cmd = in i40e_aq_debug_dump() local
4533 cmd->cluster_id = cluster_id; in i40e_aq_debug_dump()
4534 cmd->table_id = table_id; in i40e_aq_debug_dump()
4535 cmd->idx = cpu_to_le32(start_index); in i40e_aq_debug_dump()
5272 struct i40e_aqc_rx_ctl_reg_read_write *cmd = in i40e_aq_rx_ctl_write_register() local
5278 cmd->address = cpu_to_le32(reg_addr); in i40e_aq_rx_ctl_write_register()
5279 cmd->value = cpu_to_le32(reg_val); in i40e_aq_rx_ctl_write_register()
5326 struct i40e_aqc_phy_register_access *cmd) in i40e_mdio_if_number_selection() argument
5328 if (set_mdio && cmd->phy_interface == I40E_AQ_PHY_REG_ACCESS_EXTERNAL) { in i40e_mdio_if_number_selection()
5330 cmd->cmd_flags |= in i40e_mdio_if_number_selection()
5364 struct i40e_aqc_phy_register_access *cmd = in i40e_aq_set_phy_register_ext() local
5371 cmd->phy_interface = phy_select; in i40e_aq_set_phy_register_ext()
5372 cmd->dev_address = dev_addr; in i40e_aq_set_phy_register_ext()
5373 cmd->reg_address = cpu_to_le32(reg_addr); in i40e_aq_set_phy_register_ext()
5374 cmd->reg_value = cpu_to_le32(reg_val); in i40e_aq_set_phy_register_ext()
5376 i40e_mdio_if_number_selection(hw, set_mdio, mdio_num, cmd); in i40e_aq_set_phy_register_ext()
5379 cmd->cmd_flags = I40E_AQ_PHY_REG_ACCESS_DONT_CHANGE_QSFP_PAGE; in i40e_aq_set_phy_register_ext()
5409 struct i40e_aqc_phy_register_access *cmd = in i40e_aq_get_phy_register_ext() local
5416 cmd->phy_interface = phy_select; in i40e_aq_get_phy_register_ext()
5417 cmd->dev_address = dev_addr; in i40e_aq_get_phy_register_ext()
5418 cmd->reg_address = cpu_to_le32(reg_addr); in i40e_aq_get_phy_register_ext()
5420 i40e_mdio_if_number_selection(hw, set_mdio, mdio_num, cmd); in i40e_aq_get_phy_register_ext()
5423 cmd->cmd_flags = I40E_AQ_PHY_REG_ACCESS_DONT_CHANGE_QSFP_PAGE; in i40e_aq_get_phy_register_ext()
5427 *reg_val = le32_to_cpu(cmd->reg_value); in i40e_aq_get_phy_register_ext()
5448 struct i40e_aqc_write_personalization_profile *cmd = in i40e_aq_write_ddp() local
5463 cmd->profile_track_id = cpu_to_le32(track_id); in i40e_aq_write_ddp()
5490 struct i40e_aqc_get_applied_profiles *cmd = in i40e_aq_get_ddp_list() local
5502 cmd->flags = flags; in i40e_aq_get_ddp_list()
5865 struct i40e_aqc_add_remove_cloud_filters *cmd = in i40e_aq_add_cloud_filters() local
5876 cmd->num_filters = filter_count; in i40e_aq_add_cloud_filters()
5877 cmd->seid = cpu_to_le16(seid); in i40e_aq_add_cloud_filters()
5902 struct i40e_aqc_add_remove_cloud_filters *cmd = in i40e_aq_add_cloud_filters_bb() local
5914 cmd->num_filters = filter_count; in i40e_aq_add_cloud_filters_bb()
5915 cmd->seid = cpu_to_le16(seid); in i40e_aq_add_cloud_filters_bb()
5916 cmd->big_buffer_flag = I40E_AQC_ADD_CLOUD_CMD_BB; in i40e_aq_add_cloud_filters_bb()
5959 struct i40e_aqc_add_remove_cloud_filters *cmd = in i40e_aq_rem_cloud_filters() local
5970 cmd->num_filters = filter_count; in i40e_aq_rem_cloud_filters()
5971 cmd->seid = cpu_to_le16(seid); in i40e_aq_rem_cloud_filters()
5996 struct i40e_aqc_add_remove_cloud_filters *cmd = in i40e_aq_rem_cloud_filters_bb() local
6008 cmd->num_filters = filter_count; in i40e_aq_rem_cloud_filters_bb()
6009 cmd->seid = cpu_to_le16(seid); in i40e_aq_rem_cloud_filters_bb()
6010 cmd->big_buffer_flag = I40E_AQC_ADD_CLOUD_CMD_BB; in i40e_aq_rem_cloud_filters_bb()