Lines Matching refs:desc
141 void i40e_debug_aq(struct i40e_hw *hw, enum i40e_debug_mask mask, void *desc, in i40e_debug_aq() argument
144 struct i40e_aq_desc *aq_desc = (struct i40e_aq_desc *)desc; in i40e_debug_aq()
150 if (!effective_mask || !desc) in i40e_debug_aq()
217 struct i40e_aq_desc desc; in i40e_aq_queue_shutdown() local
219 (struct i40e_aqc_queue_shutdown *)&desc.params.raw; in i40e_aq_queue_shutdown()
222 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_queue_shutdown()
227 status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); in i40e_aq_queue_shutdown()
248 struct i40e_aq_desc desc; in i40e_aq_get_set_rss_lut() local
250 (struct i40e_aqc_get_set_rss_lut *)&desc.params.raw; in i40e_aq_get_set_rss_lut()
254 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_set_rss_lut()
257 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_set_rss_lut()
261 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_set_rss_lut()
262 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); in i40e_aq_get_set_rss_lut()
281 status = i40e_asq_send_command(hw, &desc, lut, lut_size, NULL); in i40e_aq_get_set_rss_lut()
333 struct i40e_aq_desc desc; in i40e_aq_get_set_rss_key() local
335 (struct i40e_aqc_get_set_rss_key *)&desc.params.raw; in i40e_aq_get_set_rss_key()
340 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_set_rss_key()
343 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_set_rss_key()
347 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_set_rss_key()
348 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); in i40e_aq_get_set_rss_key()
356 status = i40e_asq_send_command(hw, &desc, key, key_size, NULL); in i40e_aq_get_set_rss_key()
701 struct i40e_aq_desc desc; in i40e_aq_mac_address_read() local
703 (struct i40e_aqc_mac_address_read *)&desc.params.raw; in i40e_aq_mac_address_read()
706 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_mac_address_read); in i40e_aq_mac_address_read()
707 desc.flags |= cpu_to_le16(I40E_AQ_FLAG_BUF); in i40e_aq_mac_address_read()
709 status = i40e_asq_send_command(hw, &desc, addrs, in i40e_aq_mac_address_read()
727 struct i40e_aq_desc desc; in i40e_aq_mac_address_write() local
729 (struct i40e_aqc_mac_address_write *)&desc.params.raw; in i40e_aq_mac_address_write()
732 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_mac_address_write()
741 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_mac_address_write()
1321 struct i40e_aq_desc desc; in i40e_aq_get_phy_capabilities() local
1328 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_phy_capabilities()
1331 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_phy_capabilities()
1333 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_get_phy_capabilities()
1336 desc.params.external.param0 |= in i40e_aq_get_phy_capabilities()
1340 desc.params.external.param0 |= in i40e_aq_get_phy_capabilities()
1343 status = i40e_asq_send_command(hw, &desc, abilities, in i40e_aq_get_phy_capabilities()
1397 struct i40e_aq_desc desc; in i40e_aq_set_phy_config() local
1399 (struct i40e_aq_set_phy_config *)&desc.params.raw; in i40e_aq_set_phy_config()
1405 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_phy_config()
1410 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_phy_config()
1519 struct i40e_aq_desc desc; in i40e_aq_clear_pxe_mode() local
1521 (struct i40e_aqc_clear_pxe *)&desc.params.raw; in i40e_aq_clear_pxe_mode()
1524 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_clear_pxe_mode()
1529 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_clear_pxe_mode()
1548 struct i40e_aq_desc desc; in i40e_aq_set_link_restart_an() local
1550 (struct i40e_aqc_set_link_restart_an *)&desc.params.raw; in i40e_aq_set_link_restart_an()
1553 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_link_restart_an()
1562 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_link_restart_an()
1580 struct i40e_aq_desc desc; in i40e_aq_get_link_info() local
1582 (struct i40e_aqc_get_link_status *)&desc.params.raw; in i40e_aq_get_link_info()
1588 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_get_link_status); in i40e_aq_get_link_info()
1596 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_link_info()
1676 struct i40e_aq_desc desc; in i40e_aq_set_phy_int_mask() local
1678 (struct i40e_aqc_set_phy_int_mask *)&desc.params.raw; in i40e_aq_set_phy_int_mask()
1681 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_phy_int_mask()
1686 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_phy_int_mask()
1702 struct i40e_aq_desc desc; in i40e_aq_set_mac_loopback() local
1704 (struct i40e_aqc_set_lb_mode *)&desc.params.raw; in i40e_aq_set_mac_loopback()
1706 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_set_lb_modes); in i40e_aq_set_mac_loopback()
1714 return i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_mac_loopback()
1728 struct i40e_aq_desc desc; in i40e_aq_set_phy_debug() local
1730 (struct i40e_aqc_set_phy_debug *)&desc.params.raw; in i40e_aq_set_phy_debug()
1733 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_phy_debug()
1738 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_phy_debug()
1770 struct i40e_aq_desc desc; in i40e_aq_add_vsi() local
1772 (struct i40e_aqc_add_get_update_vsi *)&desc.params.raw; in i40e_aq_add_vsi()
1775 &desc.params.raw; in i40e_aq_add_vsi()
1778 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_vsi()
1786 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_add_vsi()
1788 status = i40e_asq_send_command_atomic(hw, &desc, &vsi_ctx->info, in i40e_aq_add_vsi()
1814 struct i40e_aq_desc desc; in i40e_aq_set_default_vsi() local
1817 &desc.params.raw; in i40e_aq_set_default_vsi()
1820 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_default_vsi()
1827 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_default_vsi()
1842 struct i40e_aq_desc desc; in i40e_aq_clear_default_vsi() local
1845 &desc.params.raw; in i40e_aq_clear_default_vsi()
1848 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_clear_default_vsi()
1855 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_clear_default_vsi()
1873 struct i40e_aq_desc desc; in i40e_aq_set_vsi_unicast_promiscuous() local
1875 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_unicast_promiscuous()
1879 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_unicast_promiscuous()
1896 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_unicast_promiscuous()
1912 struct i40e_aq_desc desc; in i40e_aq_set_vsi_multicast_promiscuous() local
1914 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_multicast_promiscuous()
1918 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_multicast_promiscuous()
1929 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_multicast_promiscuous()
1947 struct i40e_aq_desc desc; in i40e_aq_set_vsi_mc_promisc_on_vlan() local
1949 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_mc_promisc_on_vlan()
1953 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_mc_promisc_on_vlan()
1964 status = i40e_asq_send_command_atomic(hw, &desc, NULL, 0, in i40e_aq_set_vsi_mc_promisc_on_vlan()
1983 struct i40e_aq_desc desc; in i40e_aq_set_vsi_uc_promisc_on_vlan() local
1985 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_uc_promisc_on_vlan()
1989 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_uc_promisc_on_vlan()
2006 status = i40e_asq_send_command_atomic(hw, &desc, NULL, 0, in i40e_aq_set_vsi_uc_promisc_on_vlan()
2024 struct i40e_aq_desc desc; in i40e_aq_set_vsi_bc_promisc_on_vlan() local
2026 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_bc_promisc_on_vlan()
2030 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_bc_promisc_on_vlan()
2041 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_bc_promisc_on_vlan()
2059 struct i40e_aq_desc desc; in i40e_aq_set_vsi_broadcast() local
2061 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_broadcast()
2064 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_broadcast()
2076 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_broadcast()
2092 struct i40e_aq_desc desc; in i40e_aq_set_vsi_vlan_promisc() local
2094 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_vlan_promisc()
2098 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_vlan_promisc()
2107 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_vlan_promisc()
2122 struct i40e_aq_desc desc; in i40e_aq_get_vsi_params() local
2124 (struct i40e_aqc_add_get_update_vsi *)&desc.params.raw; in i40e_aq_get_vsi_params()
2127 &desc.params.raw; in i40e_aq_get_vsi_params()
2130 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_vsi_params()
2135 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_vsi_params()
2137 status = i40e_asq_send_command(hw, &desc, &vsi_ctx->info, in i40e_aq_get_vsi_params()
2164 struct i40e_aq_desc desc; in i40e_aq_update_vsi_params() local
2166 (struct i40e_aqc_add_get_update_vsi *)&desc.params.raw; in i40e_aq_update_vsi_params()
2169 &desc.params.raw; in i40e_aq_update_vsi_params()
2172 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_update_vsi_params()
2176 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_update_vsi_params()
2178 status = i40e_asq_send_command_atomic(hw, &desc, &vsi_ctx->info, in i40e_aq_update_vsi_params()
2203 struct i40e_aq_desc desc; in i40e_aq_get_switch_config() local
2205 (struct i40e_aqc_switch_seid *)&desc.params.raw; in i40e_aq_get_switch_config()
2208 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_switch_config()
2210 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_switch_config()
2212 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_get_switch_config()
2215 status = i40e_asq_send_command(hw, &desc, buf, buf_size, cmd_details); in i40e_aq_get_switch_config()
2237 struct i40e_aq_desc desc; in i40e_aq_set_switch_config() local
2239 (struct i40e_aqc_set_switch_config *)&desc.params.raw; in i40e_aq_set_switch_config()
2242 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_switch_config()
2252 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_switch_config()
2275 struct i40e_aq_desc desc; in i40e_aq_get_firmware_version() local
2277 (struct i40e_aqc_get_version *)&desc.params.raw; in i40e_aq_get_firmware_version()
2280 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_get_version); in i40e_aq_get_firmware_version()
2282 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_firmware_version()
2312 struct i40e_aq_desc desc; in i40e_aq_send_driver_version() local
2314 (struct i40e_aqc_driver_version *)&desc.params.raw; in i40e_aq_send_driver_version()
2321 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_driver_version); in i40e_aq_send_driver_version()
2323 desc.flags |= cpu_to_le16(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD); in i40e_aq_send_driver_version()
2334 status = i40e_asq_send_command(hw, &desc, dv->driver_string, in i40e_aq_send_driver_version()
2427 struct i40e_aq_desc desc; in i40e_aq_add_veb() local
2429 (struct i40e_aqc_add_veb *)&desc.params.raw; in i40e_aq_add_veb()
2431 (struct i40e_aqc_add_veb_completion *)&desc.params.raw; in i40e_aq_add_veb()
2439 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_veb); in i40e_aq_add_veb()
2457 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_add_veb()
2485 struct i40e_aq_desc desc; in i40e_aq_get_veb_parameters() local
2488 &desc.params.raw; in i40e_aq_get_veb_parameters()
2494 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_veb_parameters()
2498 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_veb_parameters()
2535 struct i40e_aq_desc *desc, u16 count, u16 seid) in i40e_prepare_add_macvlan() argument
2538 (struct i40e_aqc_macvlan *)&desc->params.raw; in i40e_prepare_add_macvlan()
2545 i40e_fill_default_direct_cmd_desc(desc, i40e_aqc_opc_add_macvlan); in i40e_prepare_add_macvlan()
2556 desc->flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_prepare_add_macvlan()
2558 desc->flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_prepare_add_macvlan()
2578 struct i40e_aq_desc desc; in i40e_aq_add_macvlan() local
2584 buf_size = i40e_prepare_add_macvlan(mv_list, &desc, count, seid); in i40e_aq_add_macvlan()
2586 return i40e_asq_send_command_atomic(hw, &desc, mv_list, buf_size, in i40e_aq_add_macvlan()
2611 struct i40e_aq_desc desc; in i40e_aq_add_macvlan_v2() local
2617 buf_size = i40e_prepare_add_macvlan(mv_list, &desc, count, seid); in i40e_aq_add_macvlan_v2()
2619 return i40e_asq_send_command_atomic_v2(hw, &desc, mv_list, buf_size, in i40e_aq_add_macvlan_v2()
2638 struct i40e_aq_desc desc; in i40e_aq_remove_macvlan() local
2640 (struct i40e_aqc_macvlan *)&desc.params.raw; in i40e_aq_remove_macvlan()
2650 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_remove_macvlan); in i40e_aq_remove_macvlan()
2656 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_remove_macvlan()
2658 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_remove_macvlan()
2660 status = i40e_asq_send_command_atomic(hw, &desc, mv_list, buf_size, in i40e_aq_remove_macvlan()
2688 struct i40e_aq_desc desc; in i40e_aq_remove_macvlan_v2() local
2697 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_remove_macvlan); in i40e_aq_remove_macvlan_v2()
2698 cmd = (struct i40e_aqc_macvlan *)&desc.params.raw; in i40e_aq_remove_macvlan_v2()
2704 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_remove_macvlan_v2()
2706 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_remove_macvlan_v2()
2708 return i40e_asq_send_command_atomic_v2(hw, &desc, mv_list, buf_size, in i40e_aq_remove_macvlan_v2()
2735 struct i40e_aq_desc desc; in i40e_mirrorrule_op() local
2737 (struct i40e_aqc_add_delete_mirror_rule *)&desc.params.raw; in i40e_mirrorrule_op()
2739 (struct i40e_aqc_add_delete_mirror_rule_completion *)&desc.params.raw; in i40e_mirrorrule_op()
2746 i40e_fill_default_direct_cmd_desc(&desc, opcode); in i40e_mirrorrule_op()
2754 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | in i40e_mirrorrule_op()
2757 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_mirrorrule_op()
2760 status = i40e_asq_send_command(hw, &desc, mr_list, buf_size, in i40e_mirrorrule_op()
2858 struct i40e_aq_desc desc; in i40e_aq_send_msg_to_vf() local
2860 (struct i40e_aqc_pf_vf_message *)&desc.params.raw; in i40e_aq_send_msg_to_vf()
2863 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_send_msg_to_vf); in i40e_aq_send_msg_to_vf()
2865 desc.cookie_high = cpu_to_le32(v_opcode); in i40e_aq_send_msg_to_vf()
2866 desc.cookie_low = cpu_to_le32(v_retval); in i40e_aq_send_msg_to_vf()
2867 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_SI); in i40e_aq_send_msg_to_vf()
2869 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | in i40e_aq_send_msg_to_vf()
2872 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_send_msg_to_vf()
2873 desc.datalen = cpu_to_le16(msglen); in i40e_aq_send_msg_to_vf()
2875 status = i40e_asq_send_command(hw, &desc, msg, msglen, cmd_details); in i40e_aq_send_msg_to_vf()
2893 struct i40e_aq_desc desc; in i40e_aq_debug_read_register() local
2895 (struct i40e_aqc_debug_reg_read_write *)&desc.params.raw; in i40e_aq_debug_read_register()
2901 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_debug_read_reg); in i40e_aq_debug_read_register()
2905 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_debug_read_register()
2928 struct i40e_aq_desc desc; in i40e_aq_debug_write_register() local
2930 (struct i40e_aqc_debug_reg_read_write *)&desc.params.raw; in i40e_aq_debug_write_register()
2933 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_debug_write_reg); in i40e_aq_debug_write_register()
2939 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_debug_write_register()
2961 struct i40e_aq_desc desc; in i40e_aq_request_resource() local
2963 (struct i40e_aqc_request_resource *)&desc.params.raw; in i40e_aq_request_resource()
2966 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_request_resource); in i40e_aq_request_resource()
2972 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_request_resource()
2999 struct i40e_aq_desc desc; in i40e_aq_release_resource() local
3001 (struct i40e_aqc_request_resource *)&desc.params.raw; in i40e_aq_release_resource()
3004 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_release_resource); in i40e_aq_release_resource()
3009 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_release_resource()
3031 struct i40e_aq_desc desc; in i40e_aq_read_nvm() local
3033 (struct i40e_aqc_nvm_update *)&desc.params.raw; in i40e_aq_read_nvm()
3042 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_nvm_read); in i40e_aq_read_nvm()
3051 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_read_nvm()
3053 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_read_nvm()
3055 status = i40e_asq_send_command(hw, &desc, data, length, cmd_details); in i40e_aq_read_nvm()
3076 struct i40e_aq_desc desc; in i40e_aq_erase_nvm() local
3078 (struct i40e_aqc_nvm_update *)&desc.params.raw; in i40e_aq_erase_nvm()
3087 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_nvm_erase); in i40e_aq_erase_nvm()
3096 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_erase_nvm()
3368 struct i40e_aq_desc desc; in i40e_aq_discover_capabilities() local
3371 cmd = (struct i40e_aqc_list_capabilites *)&desc.params.raw; in i40e_aq_discover_capabilities()
3379 i40e_fill_default_direct_cmd_desc(&desc, list_type_opc); in i40e_aq_discover_capabilities()
3381 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_discover_capabilities()
3383 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_discover_capabilities()
3385 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_discover_capabilities()
3386 *data_size = le16_to_cpu(desc.datalen); in i40e_aq_discover_capabilities()
3416 struct i40e_aq_desc desc; in i40e_aq_update_nvm() local
3418 (struct i40e_aqc_nvm_update *)&desc.params.raw; in i40e_aq_update_nvm()
3427 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_nvm_update); in i40e_aq_update_nvm()
3446 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_update_nvm()
3448 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_update_nvm()
3450 status = i40e_asq_send_command(hw, &desc, data, length, cmd_details); in i40e_aq_update_nvm()
3469 struct i40e_aq_desc desc; in i40e_aq_rearrange_nvm() local
3472 cmd = (struct i40e_aqc_nvm_update *)&desc.params.raw; in i40e_aq_rearrange_nvm()
3474 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_nvm_update); in i40e_aq_rearrange_nvm()
3485 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_rearrange_nvm()
3509 struct i40e_aq_desc desc; in i40e_aq_get_lldp_mib() local
3511 (struct i40e_aqc_lldp_get_mib *)&desc.params.raw; in i40e_aq_get_lldp_mib()
3513 (struct i40e_aqc_lldp_get_mib *)&desc.params.raw; in i40e_aq_get_lldp_mib()
3519 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_get_mib); in i40e_aq_get_lldp_mib()
3521 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_lldp_mib()
3527 desc.datalen = cpu_to_le16(buff_size); in i40e_aq_get_lldp_mib()
3529 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_lldp_mib()
3531 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_get_lldp_mib()
3533 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_get_lldp_mib()
3560 struct i40e_aq_desc desc; 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()
3567 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_lldp_mib()
3570 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_set_lldp_mib()
3572 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_set_lldp_mib()
3573 desc.datalen = cpu_to_le16(buff_size); in i40e_aq_set_lldp_mib()
3580 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_set_lldp_mib()
3597 struct i40e_aq_desc desc; in i40e_aq_cfg_lldp_mib_change_event() local
3599 (struct i40e_aqc_lldp_update_mib *)&desc.params.raw; in i40e_aq_cfg_lldp_mib_change_event()
3602 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_update_mib); in i40e_aq_cfg_lldp_mib_change_event()
3607 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_cfg_lldp_mib_change_event()
3626 struct i40e_aq_desc desc; in i40e_aq_restore_lldp() local
3628 (struct i40e_aqc_lldp_restore *)&desc.params.raw; in i40e_aq_restore_lldp()
3637 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_restore); in i40e_aq_restore_lldp()
3642 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_restore_lldp()
3663 struct i40e_aq_desc desc; in i40e_aq_stop_lldp() local
3665 (struct i40e_aqc_lldp_stop *)&desc.params.raw; in i40e_aq_stop_lldp()
3668 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_stop); in i40e_aq_stop_lldp()
3681 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_stop_lldp()
3697 struct i40e_aq_desc desc; in i40e_aq_start_lldp() local
3699 (struct i40e_aqc_lldp_start *)&desc.params.raw; in i40e_aq_start_lldp()
3702 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_start); in i40e_aq_start_lldp()
3714 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_start_lldp()
3730 struct i40e_aq_desc desc; in i40e_aq_set_dcb_parameters() local
3732 (struct i40e_aqc_set_dcb_parameters *)&desc.params.raw; in i40e_aq_set_dcb_parameters()
3738 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_dcb_parameters()
3745 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_dcb_parameters()
3763 struct i40e_aq_desc desc; in i40e_aq_get_cee_dcb_config() local
3769 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_get_cee_dcb_cfg); in i40e_aq_get_cee_dcb_config()
3771 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_cee_dcb_config()
3772 status = i40e_asq_send_command(hw, &desc, (void *)buff, buff_size, in i40e_aq_get_cee_dcb_config()
3795 struct i40e_aq_desc desc; in i40e_aq_add_udp_tunnel() local
3797 (struct i40e_aqc_add_udp_tunnel *)&desc.params.raw; in i40e_aq_add_udp_tunnel()
3799 (struct i40e_aqc_del_udp_tunnel_completion *)&desc.params.raw; in i40e_aq_add_udp_tunnel()
3802 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_udp_tunnel); in i40e_aq_add_udp_tunnel()
3807 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_add_udp_tunnel()
3824 struct i40e_aq_desc desc; in i40e_aq_del_udp_tunnel() local
3826 (struct i40e_aqc_remove_udp_tunnel *)&desc.params.raw; in i40e_aq_del_udp_tunnel()
3829 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_del_udp_tunnel); in i40e_aq_del_udp_tunnel()
3833 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_del_udp_tunnel()
3849 struct i40e_aq_desc desc; in i40e_aq_delete_element() local
3851 (struct i40e_aqc_switch_seid *)&desc.params.raw; in i40e_aq_delete_element()
3857 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_delete_element); in i40e_aq_delete_element()
3861 status = i40e_asq_send_command_atomic(hw, &desc, NULL, 0, in i40e_aq_delete_element()
3879 struct i40e_aq_desc desc; in i40e_aq_dcb_updated() local
3882 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_dcb_updated); in i40e_aq_dcb_updated()
3884 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_dcb_updated()
3905 struct i40e_aq_desc desc; in i40e_aq_tx_sched_cmd() local
3907 (struct i40e_aqc_tx_sched_ind *)&desc.params.raw; in i40e_aq_tx_sched_cmd()
3932 i40e_fill_default_direct_cmd_desc(&desc, opcode); in i40e_aq_tx_sched_cmd()
3935 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_tx_sched_cmd()
3937 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); in i40e_aq_tx_sched_cmd()
3939 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_tx_sched_cmd()
3941 desc.datalen = cpu_to_le16(buff_size); in i40e_aq_tx_sched_cmd()
3945 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_tx_sched_cmd()
3962 struct i40e_aq_desc desc; in i40e_aq_config_vsi_bw_limit() local
3964 (struct i40e_aqc_configure_vsi_bw_limit *)&desc.params.raw; in i40e_aq_config_vsi_bw_limit()
3967 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_config_vsi_bw_limit()
3974 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_config_vsi_bw_limit()
4303 struct i40e_aq_desc desc; in i40e_aq_add_rem_control_packet_filter() local
4306 &desc.params.raw; in i40e_aq_add_rem_control_packet_filter()
4309 &desc.params.raw; in i40e_aq_add_rem_control_packet_filter()
4316 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_rem_control_packet_filter()
4320 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_rem_control_packet_filter()
4331 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_add_rem_control_packet_filter()
4382 struct i40e_aq_desc desc; in i40e_aq_alternate_read() local
4384 (struct i40e_aqc_alternate_write *)&desc.params.raw; in i40e_aq_alternate_read()
4390 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_alternate_read); in i40e_aq_alternate_read()
4394 status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); in i40e_aq_alternate_read()
4418 struct i40e_aq_desc desc; in i40e_aq_suspend_port_tx() local
4421 cmd = (struct i40e_aqc_tx_sched_ind *)&desc.params.raw; in i40e_aq_suspend_port_tx()
4422 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_suspend_port_tx); in i40e_aq_suspend_port_tx()
4424 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_suspend_port_tx()
4439 struct i40e_aq_desc desc; in i40e_aq_resume_port_tx() local
4442 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_resume_port_tx); in i40e_aq_resume_port_tx()
4444 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_resume_port_tx()
4516 struct i40e_aq_desc desc; in i40e_aq_debug_dump() local
4518 (struct i40e_aqc_debug_dump_internals *)&desc.params.raw; in i40e_aq_debug_dump()
4520 (struct i40e_aqc_debug_dump_internals *)&desc.params.raw; in i40e_aq_debug_dump()
4526 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_debug_dump()
4529 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_debug_dump()
4531 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_debug_dump()
4537 desc.datalen = cpu_to_le16(buff_size); in i40e_aq_debug_dump()
4539 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_debug_dump()
4542 *ret_buff_size = le16_to_cpu(desc.datalen); in i40e_aq_debug_dump()
4608 struct i40e_aq_desc desc; in i40e_aq_configure_partition_bw() local
4611 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_configure_partition_bw()
4615 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_configure_partition_bw()
4616 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); in i40e_aq_configure_partition_bw()
4619 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_configure_partition_bw()
4621 desc.datalen = cpu_to_le16(bwd_size); in i40e_aq_configure_partition_bw()
4623 status = i40e_asq_send_command(hw, &desc, bw_data, bwd_size, in i40e_aq_configure_partition_bw()
5205 struct i40e_aq_desc desc; in i40e_aq_rx_ctl_read_register() local
5207 (struct i40e_aqc_rx_ctl_reg_read_write *)&desc.params.raw; in i40e_aq_rx_ctl_read_register()
5213 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_rx_ctl_reg_read); in i40e_aq_rx_ctl_read_register()
5217 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_rx_ctl_read_register()
5271 struct i40e_aq_desc desc; in i40e_aq_rx_ctl_write_register() local
5273 (struct i40e_aqc_rx_ctl_reg_read_write *)&desc.params.raw; in i40e_aq_rx_ctl_write_register()
5276 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_rx_ctl_reg_write); in i40e_aq_rx_ctl_write_register()
5281 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_rx_ctl_write_register()
5363 struct i40e_aq_desc desc; in i40e_aq_set_phy_register_ext() local
5365 (struct i40e_aqc_phy_register_access *)&desc.params.raw; in i40e_aq_set_phy_register_ext()
5368 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_phy_register_ext()
5381 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_phy_register_ext()
5408 struct i40e_aq_desc desc; in i40e_aq_get_phy_register_ext() local
5410 (struct i40e_aqc_phy_register_access *)&desc.params.raw; in i40e_aq_get_phy_register_ext()
5413 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_phy_register_ext()
5425 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_phy_register_ext()
5447 struct i40e_aq_desc desc; in i40e_aq_write_ddp() local
5450 &desc.params.raw; in i40e_aq_write_ddp()
5454 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_write_ddp()
5457 desc.flags |= cpu_to_le16(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD); in i40e_aq_write_ddp()
5459 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_write_ddp()
5461 desc.datalen = cpu_to_le16(buff_size); in i40e_aq_write_ddp()
5465 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_write_ddp()
5467 resp = (struct i40e_aqc_write_ddp_resp *)&desc.params.raw; in i40e_aq_write_ddp()
5489 struct i40e_aq_desc desc; in i40e_aq_get_ddp_list() local
5491 (struct i40e_aqc_get_applied_profiles *)&desc.params.raw; in i40e_aq_get_ddp_list()
5494 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_ddp_list()
5497 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_ddp_list()
5499 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_get_ddp_list()
5500 desc.datalen = cpu_to_le16(buff_size); in i40e_aq_get_ddp_list()
5504 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_get_ddp_list()
5594 struct i40e_aq_desc desc; in i40e_ddp_exec_aq_section() local
5599 i40e_fill_default_direct_cmd_desc(&desc, aq->opcode); in i40e_ddp_exec_aq_section()
5600 desc.flags |= cpu_to_le16(aq->flags); in i40e_ddp_exec_aq_section()
5601 memcpy(desc.params.raw, aq->param, sizeof(desc.params.raw)); in i40e_ddp_exec_aq_section()
5605 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | in i40e_ddp_exec_aq_section()
5608 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_ddp_exec_aq_section()
5609 desc.datalen = cpu_to_le16(msglen); in i40e_ddp_exec_aq_section()
5613 status = i40e_asq_send_command(hw, &desc, msg, msglen, NULL); in i40e_ddp_exec_aq_section()
5623 memcpy(aq->param, desc.params.raw, sizeof(desc.params.raw)); in i40e_ddp_exec_aq_section()
5864 struct i40e_aq_desc desc; in i40e_aq_add_cloud_filters() local
5866 (struct i40e_aqc_add_remove_cloud_filters *)&desc.params.raw; in i40e_aq_add_cloud_filters()
5870 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_cloud_filters()
5874 desc.datalen = cpu_to_le16(buff_len); in i40e_aq_add_cloud_filters()
5875 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_add_cloud_filters()
5879 status = i40e_asq_send_command(hw, &desc, filters, buff_len, NULL); in i40e_aq_add_cloud_filters()
5901 struct i40e_aq_desc desc; in i40e_aq_add_cloud_filters_bb() local
5903 (struct i40e_aqc_add_remove_cloud_filters *)&desc.params.raw; in i40e_aq_add_cloud_filters_bb()
5908 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_cloud_filters_bb()
5912 desc.datalen = cpu_to_le16(buff_len); in i40e_aq_add_cloud_filters_bb()
5913 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_add_cloud_filters_bb()
5936 status = i40e_asq_send_command(hw, &desc, filters, buff_len, NULL); in i40e_aq_add_cloud_filters_bb()
5958 struct i40e_aq_desc desc; in i40e_aq_rem_cloud_filters() local
5960 (struct i40e_aqc_add_remove_cloud_filters *)&desc.params.raw; in i40e_aq_rem_cloud_filters()
5964 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_rem_cloud_filters()
5968 desc.datalen = cpu_to_le16(buff_len); in i40e_aq_rem_cloud_filters()
5969 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_rem_cloud_filters()
5973 status = i40e_asq_send_command(hw, &desc, filters, buff_len, NULL); in i40e_aq_rem_cloud_filters()
5995 struct i40e_aq_desc desc; in i40e_aq_rem_cloud_filters_bb() local
5997 (struct i40e_aqc_add_remove_cloud_filters *)&desc.params.raw; in i40e_aq_rem_cloud_filters_bb()
6002 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_rem_cloud_filters_bb()
6006 desc.datalen = cpu_to_le16(buff_len); in i40e_aq_rem_cloud_filters_bb()
6007 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_rem_cloud_filters_bb()
6030 status = i40e_asq_send_command(hw, &desc, filters, buff_len, NULL); in i40e_aq_rem_cloud_filters_bb()