Lines Matching refs:cmd

272 	struct ice_aqc_manage_mac_read *cmd;  in ice_aq_manage_mac_read()  local
278 cmd = &desc.params.mac_read; in ice_aq_manage_mac_read()
290 flags = le16_to_cpu(cmd->flags) & ICE_AQC_MAN_MAC_READ_M; in ice_aq_manage_mac_read()
298 for (i = 0; i < cmd->num_addr; i++) in ice_aq_manage_mac_read()
325 struct ice_aqc_get_phy_caps *cmd; in ice_aq_get_phy_caps() local
332 cmd = &desc.params.get_phy; in ice_aq_get_phy_caps()
345 cmd->param0 |= cpu_to_le16(ICE_AQC_GET_PHY_RQM); in ice_aq_get_phy_caps()
347 cmd->param0 |= cpu_to_le16(report_mode); in ice_aq_get_phy_caps()
420 struct ice_aqc_get_link_topo *cmd; in ice_aq_get_link_topo_handle() local
423 cmd = &desc.params.get_link_topo; in ice_aq_get_link_topo_handle()
427 cmd->addr.topo_params.node_type_ctx = in ice_aq_get_link_topo_handle()
432 cmd->addr.topo_params.node_type_ctx |= in ice_aq_get_link_topo_handle()
685 struct ice_aqc_set_mac_cfg *cmd) in ice_fill_tx_timer_and_fc_thresh() argument
703 cmd->tx_tmr_value = cpu_to_le16(tx_timer_val); in ice_fill_tx_timer_and_fc_thresh()
709 cmd->fc_refresh_threshold = cpu_to_le16(fc_thres_val); in ice_fill_tx_timer_and_fc_thresh()
723 struct ice_aqc_set_mac_cfg *cmd; in ice_aq_set_mac_cfg() local
726 cmd = &desc.params.set_mac_cfg; in ice_aq_set_mac_cfg()
733 cmd->max_frame_size = cpu_to_le16(max_frame_size); in ice_aq_set_mac_cfg()
735 ice_fill_tx_timer_and_fc_thresh(hw, cmd); in ice_aq_set_mac_cfg()
903 struct ice_aqc_fw_logging *cmd; in ice_cfg_fw_log() local
925 cmd = &desc.params.fw_logging; in ice_cfg_fw_log()
929 cmd->log_ctrl_valid |= ICE_AQC_FW_LOG_AQ_VALID; in ice_cfg_fw_log()
932 cmd->log_ctrl_valid |= ICE_AQC_FW_LOG_UART_VALID; in ice_cfg_fw_log()
971 cmd->log_ctrl |= ICE_AQC_FW_LOG_AQ_EN; in ice_cfg_fw_log()
974 cmd->log_ctrl |= ICE_AQC_FW_LOG_UART_EN; in ice_cfg_fw_log()
1666 struct ice_aqc_req_res *cmd = &desc->params.res_owner; in ice_aq_send_cmd() local
1695 if (le16_to_cpu(cmd->res_id) == ICE_AQC_RES_ID_GLBL_LOCK) in ice_aq_send_cmd()
1757 struct ice_aqc_driver_ver *cmd; in ice_aq_send_driver_ver() local
1761 cmd = &desc.params.driver_ver; in ice_aq_send_driver_ver()
1769 cmd->major_ver = dv->major_ver; in ice_aq_send_driver_ver()
1770 cmd->minor_ver = dv->minor_ver; in ice_aq_send_driver_ver()
1771 cmd->build_ver = dv->build_ver; in ice_aq_send_driver_ver()
1772 cmd->subbuild_ver = dv->subbuild_ver; in ice_aq_send_driver_ver()
1792 struct ice_aqc_q_shutdown *cmd; in ice_aq_q_shutdown() local
1795 cmd = &desc.params.q_shutdown; in ice_aq_q_shutdown()
1800 cmd->driver_unloading = ICE_AQC_DRIVER_UNLOADING; in ice_aq_q_shutdown()
1904 struct ice_aqc_req_res *cmd; in ice_aq_release_res() local
1907 cmd = &desc.params.res_owner; in ice_aq_release_res()
1911 cmd->res_id = cpu_to_le16(res); in ice_aq_release_res()
1912 cmd->res_number = cpu_to_le32(sdp_number); in ice_aq_release_res()
2013 struct ice_aqc_alloc_free_res_cmd *cmd; in ice_aq_alloc_free_res() local
2016 cmd = &desc.params.sw_res_ctrl; in ice_aq_alloc_free_res()
2025 cmd->num_entries = cpu_to_le16(1); in ice_aq_alloc_free_res()
2665 ice_aq_get_netlist_node(struct ice_hw *hw, struct ice_aqc_get_link_topo *cmd, in ice_aq_get_netlist_node() argument
2671 desc.params.get_link_topo = *cmd; in ice_aq_get_netlist_node()
2690 struct ice_aqc_get_link_topo cmd = {}; in ice_is_pf_c827() local
2701 cmd.addr.topo_params.node_type_ctx = in ice_is_pf_c827()
2704 cmd.addr.topo_params.index = 0; in ice_is_pf_c827()
2706 status = ice_aq_get_netlist_node(hw, &cmd, &node_part_number, in ice_is_pf_c827()
2741 struct ice_aqc_list_caps *cmd; in ice_aq_list_caps() local
2745 cmd = &desc.params.get_cap; in ice_aq_list_caps()
2755 *cap_count = le32_to_cpu(cmd->count); in ice_aq_list_caps()
2925 struct ice_aqc_manage_mac_write *cmd; in ice_aq_manage_mac_write() local
2928 cmd = &desc.params.mac_write; in ice_aq_manage_mac_write()
2931 cmd->flags = flags; in ice_aq_manage_mac_write()
2932 ether_addr_copy(cmd->mac_addr, mac_addr); in ice_aq_manage_mac_write()
2979 struct ice_aqc_set_port_params *cmd; in ice_aq_set_port_params() local
2984 cmd = &desc.params.set_port_params; in ice_aq_set_port_params()
2989 cmd->cmd_flags = cpu_to_le16(cmd_flags); in ice_aq_set_port_params()
3679 struct ice_aqc_restart_an *cmd; in ice_aq_set_link_restart_an() local
3682 cmd = &desc.params.restart_an; in ice_aq_set_link_restart_an()
3686 cmd->cmd_flags = ICE_AQC_RESTART_AN_LINK_RESTART; in ice_aq_set_link_restart_an()
3687 cmd->lport_num = pi->lport; in ice_aq_set_link_restart_an()
3689 cmd->cmd_flags |= ICE_AQC_RESTART_AN_LINK_ENABLE; in ice_aq_set_link_restart_an()
3691 cmd->cmd_flags &= ~ICE_AQC_RESTART_AN_LINK_ENABLE; in ice_aq_set_link_restart_an()
3709 struct ice_aqc_set_event_mask *cmd; in ice_aq_set_event_mask() local
3712 cmd = &desc.params.set_event_mask; in ice_aq_set_event_mask()
3716 cmd->lport_num = port_num; in ice_aq_set_event_mask()
3718 cmd->event_mask = cpu_to_le16(mask); in ice_aq_set_event_mask()
3733 struct ice_aqc_set_mac_lb *cmd; in ice_aq_set_mac_loopback() local
3736 cmd = &desc.params.set_mac_lb; in ice_aq_set_mac_loopback()
3740 cmd->lb_mode = ICE_AQ_MAC_LB_EN; in ice_aq_set_mac_loopback()
3757 struct ice_aqc_set_port_id_led *cmd; in ice_aq_set_port_id_led() local
3761 cmd = &desc.params.set_port_id_led; in ice_aq_set_port_id_led()
3766 cmd->ident_mode = ICE_AQC_PORT_IDENT_LED_ORIG; in ice_aq_set_port_id_led()
3768 cmd->ident_mode = ICE_AQC_PORT_IDENT_LED_BLINK; in ice_aq_set_port_id_led()
3796 struct ice_aqc_get_port_options *cmd; in ice_aq_get_port_options() local
3805 cmd = &desc.params.get_port_options; in ice_aq_get_port_options()
3809 cmd->lport_num = lport; in ice_aq_get_port_options()
3810 cmd->lport_num_valid = lport_valid; in ice_aq_get_port_options()
3819 cmd->port_options_count); in ice_aq_get_port_options()
3822 cmd->port_options); in ice_aq_get_port_options()
3825 cmd->port_options); in ice_aq_get_port_options()
3833 cmd->pending_port_option_status); in ice_aq_get_port_options()
3836 cmd->pending_port_option_status); in ice_aq_get_port_options()
3870 struct ice_aqc_set_port_option *cmd; in ice_aq_set_port_option() local
3876 cmd = &desc.params.set_port_option; in ice_aq_set_port_option()
3880 cmd->lport_num = lport; in ice_aq_set_port_option()
3882 cmd->lport_num_valid = lport_valid; in ice_aq_set_port_option()
3883 cmd->selected_port_option = new_option; in ice_aq_set_port_option()
3908 struct ice_aqc_sff_eeprom *cmd; in ice_aq_sff_eeprom() local
3916 cmd = &desc.params.read_write_sff_param; in ice_aq_sff_eeprom()
3918 cmd->lport_num = (u8)(lport & 0xff); in ice_aq_sff_eeprom()
3919 cmd->lport_num_valid = (u8)((lport >> 8) & 0x01); in ice_aq_sff_eeprom()
3920 cmd->i2c_bus_addr = cpu_to_le16(((bus_addr >> 1) & in ice_aq_sff_eeprom()
3925 cmd->i2c_mem_addr = cpu_to_le16(mem_addr & 0xff); in ice_aq_sff_eeprom()
3926 cmd->eeprom_page = cpu_to_le16((u16)page << ICE_AQC_SFF_EEPROM_PAGE_S); in ice_aq_sff_eeprom()
3928 cmd->i2c_bus_addr |= cpu_to_le16(ICE_AQC_SFF_IS_WRITE); in ice_aq_sff_eeprom()
4132 struct ice_aqc_add_txqs *cmd; in ice_aq_add_lan_txq() local
4136 cmd = &desc.params.add_txqs; in ice_aq_add_lan_txq()
4157 cmd->num_qgrps = num_qgrps; in ice_aq_add_lan_txq()
4181 struct ice_aqc_dis_txqs *cmd; in ice_aq_dis_lan_txq() local
4186 cmd = &desc.params.dis_txqs; in ice_aq_dis_lan_txq()
4196 cmd->num_entries = num_qgrps; in ice_aq_dis_lan_txq()
4198 cmd->vmvf_and_timeout = cpu_to_le16((5 << ICE_AQC_Q_DIS_TIMEOUT_S) & in ice_aq_dis_lan_txq()
4203 cmd->cmd_type = ICE_AQC_Q_DIS_CMD_VM_RESET; in ice_aq_dis_lan_txq()
4204 cmd->vmvf_and_timeout |= in ice_aq_dis_lan_txq()
4208 cmd->cmd_type = ICE_AQC_Q_DIS_CMD_VF_RESET; in ice_aq_dis_lan_txq()
4210 cmd->vmvf_and_timeout |= in ice_aq_dis_lan_txq()
4220 cmd->cmd_type |= ICE_AQC_Q_DIS_CMD_FLUSH_PIPE; in ice_aq_dis_lan_txq()
4279 struct ice_aqc_cfg_txqs *cmd; in ice_aq_cfg_lan_txq() local
4283 cmd = &desc.params.cfg_txqs; in ice_aq_cfg_lan_txq()
4290 cmd->cmd_type = ICE_AQC_Q_CFG_TC_CHNG; in ice_aq_cfg_lan_txq()
4291 cmd->num_qs = num_qs; in ice_aq_cfg_lan_txq()
4292 cmd->port_num_chng = (oldport & ICE_AQC_Q_CFG_SRC_PRT_M); in ice_aq_cfg_lan_txq()
4293 cmd->port_num_chng |= (newport << ICE_AQC_Q_CFG_DST_PRT_S) & in ice_aq_cfg_lan_txq()
4295 cmd->time_out = (5 << ICE_AQC_Q_CFG_TIMEOUT_S) & in ice_aq_cfg_lan_txq()
4297 cmd->blocked_cgds = 0; in ice_aq_cfg_lan_txq()
4322 struct ice_aqc_add_rdma_qset *cmd; in ice_aq_add_rdma_qsets() local
4326 cmd = &desc.params.add_rdma_qset; in ice_aq_add_rdma_qsets()
4346 cmd->num_qset_grps = num_qset_grps; in ice_aq_add_rdma_qsets()
5193 struct ice_aqc_i2c *cmd; in ice_aq_read_i2c() local
5198 cmd = &desc.params.read_write_i2c; in ice_aq_read_i2c()
5205 cmd->i2c_bus_addr = cpu_to_le16(bus_addr); in ice_aq_read_i2c()
5206 cmd->topo_addr = topo_addr; in ice_aq_read_i2c()
5207 cmd->i2c_params = params; in ice_aq_read_i2c()
5208 cmd->i2c_addr = addr; in ice_aq_read_i2c()
5248 struct ice_aqc_i2c *cmd; in ice_aq_write_i2c() local
5252 cmd = &desc.params.read_write_i2c; in ice_aq_write_i2c()
5260 cmd->i2c_bus_addr = cpu_to_le16(bus_addr); in ice_aq_write_i2c()
5261 cmd->topo_addr = topo_addr; in ice_aq_write_i2c()
5262 cmd->i2c_params = params; in ice_aq_write_i2c()
5263 cmd->i2c_addr = addr; in ice_aq_write_i2c()
5265 memcpy(cmd->i2c_data, data, data_size); in ice_aq_write_i2c()
5289 struct ice_aqc_driver_shared_params *cmd; in ice_aq_set_driver_param() local
5295 cmd = &desc.params.drv_shared_params; in ice_aq_set_driver_param()
5299 cmd->set_or_get_op = ICE_AQC_DRIVER_PARAM_SET; in ice_aq_set_driver_param()
5300 cmd->param_indx = idx; in ice_aq_set_driver_param()
5301 cmd->param_val = cpu_to_le32(value); in ice_aq_set_driver_param()
5322 struct ice_aqc_driver_shared_params *cmd; in ice_aq_get_driver_param() local
5329 cmd = &desc.params.drv_shared_params; in ice_aq_get_driver_param()
5333 cmd->set_or_get_op = ICE_AQC_DRIVER_PARAM_GET; in ice_aq_get_driver_param()
5334 cmd->param_indx = idx; in ice_aq_get_driver_param()
5340 *value = le32_to_cpu(cmd->param_val); in ice_aq_get_driver_param()
5359 struct ice_aqc_gpio *cmd; in ice_aq_set_gpio() local
5363 cmd = &desc.params.read_write_gpio; in ice_aq_set_gpio()
5364 cmd->gpio_ctrl_handle = cpu_to_le16(gpio_ctrl_handle); in ice_aq_set_gpio()
5365 cmd->gpio_num = pin_idx; in ice_aq_set_gpio()
5366 cmd->gpio_val = value ? 1 : 0; in ice_aq_set_gpio()
5386 struct ice_aqc_gpio *cmd; in ice_aq_get_gpio() local
5391 cmd = &desc.params.read_write_gpio; in ice_aq_get_gpio()
5392 cmd->gpio_ctrl_handle = cpu_to_le16(gpio_ctrl_handle); in ice_aq_get_gpio()
5393 cmd->gpio_num = pin_idx; in ice_aq_get_gpio()
5399 *value = !!cmd->gpio_val; in ice_aq_get_gpio()
5541 struct ice_aqc_lldp_set_local_mib *cmd; in ice_aq_set_lldp_mib() local
5544 cmd = &desc.params.lldp_set_mib; in ice_aq_set_lldp_mib()
5554 cmd->type = mib_type; in ice_aq_set_lldp_mib()
5555 cmd->length = cpu_to_le16(buf_size); in ice_aq_set_lldp_mib()
5583 struct ice_aqc_lldp_filter_ctrl *cmd; in ice_lldp_fltr_add_remove() local
5586 cmd = &desc.params.lldp_filter_ctrl; in ice_lldp_fltr_add_remove()
5591 cmd->cmd_flags = ICE_AQC_LLDP_FILTER_ACTION_ADD; in ice_lldp_fltr_add_remove()
5593 cmd->cmd_flags = ICE_AQC_LLDP_FILTER_ACTION_DELETE; in ice_lldp_fltr_add_remove()
5595 cmd->vsi_num = cpu_to_le16(vsi_num); in ice_lldp_fltr_add_remove()