Lines Matching refs:desc

324 void i40e_debug_aq(struct i40e_hw *hw, enum i40e_debug_mask mask, void *desc,  in i40e_debug_aq()  argument
327 struct i40e_aq_desc *aq_desc = (struct i40e_aq_desc *)desc; in i40e_debug_aq()
333 if (!effective_mask || !desc) in i40e_debug_aq()
419 struct i40e_aq_desc desc; in i40e_aq_queue_shutdown() local
421 (struct i40e_aqc_queue_shutdown *)&desc.params.raw; in i40e_aq_queue_shutdown()
424 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_queue_shutdown()
429 status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); in i40e_aq_queue_shutdown()
451 struct i40e_aq_desc desc; in i40e_aq_get_set_rss_lut() local
453 (struct i40e_aqc_get_set_rss_lut *)&desc.params.raw; in i40e_aq_get_set_rss_lut()
456 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_set_rss_lut()
459 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_set_rss_lut()
463 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_set_rss_lut()
464 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_RD); in i40e_aq_get_set_rss_lut()
483 status = i40e_asq_send_command(hw, &desc, lut, lut_size, NULL); in i40e_aq_get_set_rss_lut()
536 struct i40e_aq_desc desc; in i40e_aq_get_set_rss_key() local
538 (struct i40e_aqc_get_set_rss_key *)&desc.params.raw; in i40e_aq_get_set_rss_key()
542 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_set_rss_key()
545 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_set_rss_key()
549 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_set_rss_key()
550 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_RD); in i40e_aq_get_set_rss_key()
558 status = i40e_asq_send_command(hw, &desc, key, key_size, NULL); in i40e_aq_get_set_rss_key()
1053 struct i40e_aq_desc desc; in i40e_aq_mac_address_read() local
1055 (struct i40e_aqc_mac_address_read *)&desc.params.raw; in i40e_aq_mac_address_read()
1058 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_mac_address_read); in i40e_aq_mac_address_read()
1059 desc.flags |= CPU_TO_LE16(I40E_AQ_FLAG_BUF); in i40e_aq_mac_address_read()
1061 status = i40e_asq_send_command(hw, &desc, addrs, in i40e_aq_mac_address_read()
1079 struct i40e_aq_desc desc; in i40e_aq_mac_address_write() local
1081 (struct i40e_aqc_mac_address_write *)&desc.params.raw; in i40e_aq_mac_address_write()
1084 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_mac_address_write()
1093 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_mac_address_write()
1660 struct i40e_aq_desc desc; in i40e_aq_get_phy_capabilities() local
1669 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_phy_capabilities()
1672 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_phy_capabilities()
1674 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_get_phy_capabilities()
1677 desc.params.external.param0 |= in i40e_aq_get_phy_capabilities()
1681 desc.params.external.param0 |= in i40e_aq_get_phy_capabilities()
1684 status = i40e_asq_send_command(hw, &desc, abilities, in i40e_aq_get_phy_capabilities()
1738 struct i40e_aq_desc desc; in i40e_aq_set_phy_config() local
1740 (struct i40e_aq_set_phy_config *)&desc.params.raw; in i40e_aq_set_phy_config()
1746 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_phy_config()
1751 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_phy_config()
1857 struct i40e_aq_desc desc; in i40e_aq_set_mac_config() local
1859 (struct i40e_aq_set_mac_config *)&desc.params.raw; in i40e_aq_set_mac_config()
1865 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_mac_config()
1886 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_mac_config()
1902 struct i40e_aq_desc desc; in i40e_aq_clear_pxe_mode() local
1904 (struct i40e_aqc_clear_pxe *)&desc.params.raw; in i40e_aq_clear_pxe_mode()
1906 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_clear_pxe_mode()
1911 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_clear_pxe_mode()
1929 struct i40e_aq_desc desc; in i40e_aq_set_link_restart_an() local
1931 (struct i40e_aqc_set_link_restart_an *)&desc.params.raw; in i40e_aq_set_link_restart_an()
1934 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_link_restart_an()
1943 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_link_restart_an()
1961 struct i40e_aq_desc desc; in i40e_aq_get_link_info() local
1963 (struct i40e_aqc_get_link_status *)&desc.params.raw; in i40e_aq_get_link_info()
1969 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_get_link_status); in i40e_aq_get_link_info()
1977 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_link_info()
2063 struct i40e_aq_desc desc; in i40e_aq_set_phy_int_mask() local
2065 (struct i40e_aqc_set_phy_int_mask *)&desc.params.raw; in i40e_aq_set_phy_int_mask()
2068 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_phy_int_mask()
2073 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_phy_int_mask()
2090 struct i40e_aq_desc desc; in i40e_aq_get_local_advt_reg() local
2092 (struct i40e_aqc_an_advt_reg *)&desc.params.raw; in i40e_aq_get_local_advt_reg()
2095 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_local_advt_reg()
2098 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_local_advt_reg()
2122 struct i40e_aq_desc desc; in i40e_aq_set_local_advt_reg() local
2124 (struct i40e_aqc_an_advt_reg *)&desc.params.raw; in i40e_aq_set_local_advt_reg()
2127 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_local_advt_reg()
2133 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_local_advt_reg()
2150 struct i40e_aq_desc desc; in i40e_aq_get_partner_advt() local
2152 (struct i40e_aqc_an_advt_reg *)&desc.params.raw; in i40e_aq_get_partner_advt()
2155 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_partner_advt()
2158 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_partner_advt()
2182 struct i40e_aq_desc desc; in i40e_aq_set_lb_modes() local
2184 (struct i40e_aqc_set_lb_mode *)&desc.params.raw; in i40e_aq_set_lb_modes()
2187 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_lb_modes()
2196 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_lb_modes()
2212 struct i40e_aq_desc desc; in i40e_aq_set_phy_debug() local
2214 (struct i40e_aqc_set_phy_debug *)&desc.params.raw; in i40e_aq_set_phy_debug()
2217 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_phy_debug()
2222 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_phy_debug()
2255 struct i40e_aq_desc desc; in i40e_aq_add_vsi() local
2257 (struct i40e_aqc_add_get_update_vsi *)&desc.params.raw; in i40e_aq_add_vsi()
2260 &desc.params.raw; in i40e_aq_add_vsi()
2263 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_vsi()
2271 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_add_vsi()
2273 status = i40e_asq_send_command(hw, &desc, &vsi_ctx->info, in i40e_aq_add_vsi()
2298 struct i40e_aq_desc desc; in i40e_aq_set_default_vsi() local
2301 &desc.params.raw; in i40e_aq_set_default_vsi()
2304 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_default_vsi()
2311 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_default_vsi()
2326 struct i40e_aq_desc desc; in i40e_aq_clear_default_vsi() local
2329 &desc.params.raw; in i40e_aq_clear_default_vsi()
2332 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_clear_default_vsi()
2339 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_clear_default_vsi()
2357 struct i40e_aq_desc desc; in i40e_aq_set_vsi_unicast_promiscuous() local
2359 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_unicast_promiscuous()
2363 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_unicast_promiscuous()
2380 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_unicast_promiscuous()
2395 struct i40e_aq_desc desc; in i40e_aq_set_vsi_multicast_promiscuous() local
2397 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_multicast_promiscuous()
2401 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_multicast_promiscuous()
2412 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_multicast_promiscuous()
2428 struct i40e_aq_desc desc; in i40e_aq_set_vsi_full_promiscuous() local
2430 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_full_promiscuous()
2434 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_full_promiscuous()
2449 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_full_promiscuous()
2466 struct i40e_aq_desc desc; in i40e_aq_set_vsi_mc_promisc_on_vlan() local
2468 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_mc_promisc_on_vlan()
2472 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_mc_promisc_on_vlan()
2483 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_mc_promisc_on_vlan()
2500 struct i40e_aq_desc desc; in i40e_aq_set_vsi_uc_promisc_on_vlan() local
2502 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_uc_promisc_on_vlan()
2506 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_uc_promisc_on_vlan()
2523 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_uc_promisc_on_vlan()
2540 struct i40e_aq_desc desc; in i40e_aq_set_vsi_bc_promisc_on_vlan() local
2542 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_bc_promisc_on_vlan()
2546 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_bc_promisc_on_vlan()
2557 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_bc_promisc_on_vlan()
2575 struct i40e_aq_desc desc; in i40e_aq_set_vsi_broadcast() local
2577 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_broadcast()
2580 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_broadcast()
2592 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_broadcast()
2608 struct i40e_aq_desc desc; in i40e_aq_set_vsi_vlan_promisc() local
2610 (struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw; in i40e_aq_set_vsi_vlan_promisc()
2614 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_vsi_vlan_promisc()
2623 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_vsi_vlan_promisc()
2638 struct i40e_aq_desc desc; in i40e_aq_get_vsi_params() local
2640 (struct i40e_aqc_add_get_update_vsi *)&desc.params.raw; in i40e_aq_get_vsi_params()
2643 &desc.params.raw; in i40e_aq_get_vsi_params()
2646 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_vsi_params()
2651 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_vsi_params()
2653 status = i40e_asq_send_command(hw, &desc, &vsi_ctx->info, in i40e_aq_get_vsi_params()
2680 struct i40e_aq_desc desc; in i40e_aq_update_vsi_params() local
2682 (struct i40e_aqc_add_get_update_vsi *)&desc.params.raw; in i40e_aq_update_vsi_params()
2685 &desc.params.raw; in i40e_aq_update_vsi_params()
2688 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_update_vsi_params()
2692 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_update_vsi_params()
2694 status = i40e_asq_send_command(hw, &desc, &vsi_ctx->info, in i40e_aq_update_vsi_params()
2718 struct i40e_aq_desc desc; in i40e_aq_get_switch_config() local
2720 (struct i40e_aqc_switch_seid *)&desc.params.raw; in i40e_aq_get_switch_config()
2723 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_switch_config()
2725 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_switch_config()
2727 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_get_switch_config()
2730 status = i40e_asq_send_command(hw, &desc, buf, buf_size, cmd_details); in i40e_aq_get_switch_config()
2750 struct i40e_aq_desc desc; in i40e_aq_set_switch_config() local
2752 (struct i40e_aqc_set_switch_config *)&desc.params.raw; in i40e_aq_set_switch_config()
2755 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_switch_config()
2765 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_switch_config()
2788 struct i40e_aq_desc desc; in i40e_aq_get_firmware_version() local
2790 (struct i40e_aqc_get_version *)&desc.params.raw; in i40e_aq_get_firmware_version()
2793 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_get_version); in i40e_aq_get_firmware_version()
2795 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_firmware_version()
2833 struct i40e_aq_desc desc; in i40e_aq_send_driver_version() local
2835 (struct i40e_aqc_driver_version *)&desc.params.raw; in i40e_aq_send_driver_version()
2842 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_driver_version); in i40e_aq_send_driver_version()
2844 desc.flags |= CPU_TO_LE16(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD); in i40e_aq_send_driver_version()
2855 status = i40e_asq_send_command(hw, &desc, dv->driver_string, in i40e_aq_send_driver_version()
2975 struct i40e_aq_desc desc; in i40e_aq_add_veb() local
2977 (struct i40e_aqc_add_veb *)&desc.params.raw; in i40e_aq_add_veb()
2979 (struct i40e_aqc_add_veb_completion *)&desc.params.raw; in i40e_aq_add_veb()
2987 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_veb); in i40e_aq_add_veb()
3005 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_add_veb()
3033 struct i40e_aq_desc desc; in i40e_aq_get_veb_parameters() local
3036 &desc.params.raw; in i40e_aq_get_veb_parameters()
3042 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_veb_parameters()
3046 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_veb_parameters()
3085 struct i40e_aq_desc desc; in i40e_aq_add_macvlan() local
3087 (struct i40e_aqc_macvlan *)&desc.params.raw; in i40e_aq_add_macvlan()
3098 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_macvlan); in i40e_aq_add_macvlan()
3109 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_add_macvlan()
3111 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_add_macvlan()
3113 status = i40e_asq_send_command(hw, &desc, mv_list, buf_size, in i40e_aq_add_macvlan()
3133 struct i40e_aq_desc desc; in i40e_aq_remove_macvlan() local
3135 (struct i40e_aqc_macvlan *)&desc.params.raw; in i40e_aq_remove_macvlan()
3145 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_remove_macvlan); in i40e_aq_remove_macvlan()
3151 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_remove_macvlan()
3153 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_remove_macvlan()
3155 status = i40e_asq_send_command(hw, &desc, mv_list, buf_size, in i40e_aq_remove_macvlan()
3184 struct i40e_aq_desc desc; in i40e_mirrorrule_op() local
3186 (struct i40e_aqc_add_delete_mirror_rule *)&desc.params.raw; in i40e_mirrorrule_op()
3188 (struct i40e_aqc_add_delete_mirror_rule_completion *)&desc.params.raw; in i40e_mirrorrule_op()
3195 i40e_fill_default_direct_cmd_desc(&desc, opcode); in i40e_mirrorrule_op()
3203 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | in i40e_mirrorrule_op()
3206 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_mirrorrule_op()
3209 status = i40e_asq_send_command(hw, &desc, mr_list, buf_size, in i40e_mirrorrule_op()
3301 struct i40e_aq_desc desc; in i40e_aq_add_vlan() local
3303 (struct i40e_aqc_macvlan *)&desc.params.raw; in i40e_aq_add_vlan()
3313 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_vlan); in i40e_aq_add_vlan()
3319 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_add_vlan()
3321 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_add_vlan()
3323 status = i40e_asq_send_command(hw, &desc, v_list, buf_size, in i40e_aq_add_vlan()
3341 struct i40e_aq_desc desc; in i40e_aq_remove_vlan() local
3343 (struct i40e_aqc_macvlan *)&desc.params.raw; in i40e_aq_remove_vlan()
3353 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_remove_vlan); in i40e_aq_remove_vlan()
3359 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_remove_vlan()
3361 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_remove_vlan()
3363 status = i40e_asq_send_command(hw, &desc, v_list, buf_size, in i40e_aq_remove_vlan()
3385 struct i40e_aq_desc desc; in i40e_aq_send_msg_to_vf() local
3387 (struct i40e_aqc_pf_vf_message *)&desc.params.raw; in i40e_aq_send_msg_to_vf()
3390 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_send_msg_to_vf); in i40e_aq_send_msg_to_vf()
3392 desc.cookie_high = CPU_TO_LE32(v_opcode); in i40e_aq_send_msg_to_vf()
3393 desc.cookie_low = CPU_TO_LE32(v_retval); in i40e_aq_send_msg_to_vf()
3394 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_SI); in i40e_aq_send_msg_to_vf()
3396 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | in i40e_aq_send_msg_to_vf()
3399 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_send_msg_to_vf()
3400 desc.datalen = CPU_TO_LE16(msglen); in i40e_aq_send_msg_to_vf()
3402 status = i40e_asq_send_command(hw, &desc, msg, msglen, cmd_details); in i40e_aq_send_msg_to_vf()
3420 struct i40e_aq_desc desc; in i40e_aq_debug_read_register() local
3422 (struct i40e_aqc_debug_reg_read_write *)&desc.params.raw; in i40e_aq_debug_read_register()
3428 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_debug_read_reg); in i40e_aq_debug_read_register()
3432 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_debug_read_register()
3455 struct i40e_aq_desc desc; in i40e_aq_debug_write_register() local
3457 (struct i40e_aqc_debug_reg_read_write *)&desc.params.raw; in i40e_aq_debug_write_register()
3460 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_debug_write_reg); in i40e_aq_debug_write_register()
3466 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_debug_write_register()
3488 struct i40e_aq_desc desc; in i40e_aq_request_resource() local
3490 (struct i40e_aqc_request_resource *)&desc.params.raw; in i40e_aq_request_resource()
3495 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_request_resource); in i40e_aq_request_resource()
3501 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_request_resource()
3528 struct i40e_aq_desc desc; in i40e_aq_release_resource() local
3530 (struct i40e_aqc_request_resource *)&desc.params.raw; in i40e_aq_release_resource()
3535 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_release_resource); in i40e_aq_release_resource()
3540 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_release_resource()
3562 struct i40e_aq_desc desc; in i40e_aq_read_nvm() local
3564 (struct i40e_aqc_nvm_update *)&desc.params.raw; in i40e_aq_read_nvm()
3575 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_nvm_read); in i40e_aq_read_nvm()
3584 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_read_nvm()
3586 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_read_nvm()
3588 status = i40e_asq_send_command(hw, &desc, data, length, cmd_details); in i40e_aq_read_nvm()
3609 struct i40e_aq_desc desc; in i40e_aq_read_nvm_config() local
3611 (struct i40e_aqc_nvm_config_read *)&desc.params.raw; in i40e_aq_read_nvm_config()
3614 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_nvm_config_read); in i40e_aq_read_nvm_config()
3615 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF)); in i40e_aq_read_nvm_config()
3617 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_read_nvm_config()
3626 status = i40e_asq_send_command(hw, &desc, data, buf_size, cmd_details); in i40e_aq_read_nvm_config()
3648 struct i40e_aq_desc desc; in i40e_aq_write_nvm_config() local
3650 (struct i40e_aqc_nvm_config_write *)&desc.params.raw; in i40e_aq_write_nvm_config()
3653 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_nvm_config_write); in i40e_aq_write_nvm_config()
3654 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_write_nvm_config()
3656 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_write_nvm_config()
3660 status = i40e_asq_send_command(hw, &desc, data, buf_size, cmd_details); in i40e_aq_write_nvm_config()
3677 struct i40e_aq_desc desc; in i40e_aq_nvm_update_in_process() local
3679 (struct i40e_aqc_nvm_update_in_process *)&desc.params.raw; in i40e_aq_nvm_update_in_process()
3682 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_nvm_update_in_process()
3690 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_nvm_update_in_process()
3708 struct i40e_aq_desc desc; in i40e_aq_min_rollback_rev_update() local
3710 (struct i40e_aqc_rollback_revision_update *)&desc.params.raw; in i40e_aq_min_rollback_rev_update()
3713 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_rollback_revision_update); in i40e_aq_min_rollback_rev_update()
3718 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_min_rollback_rev_update()
3734 struct i40e_aq_desc desc; in i40e_aq_oem_post_update() local
3738 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_oem_post_update); in i40e_aq_oem_post_update()
3739 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_oem_post_update()
3740 if (status && LE16_TO_CPU(desc.retval) == I40E_AQ_RC_ESRCH) in i40e_aq_oem_post_update()
3761 struct i40e_aq_desc desc; in i40e_aq_erase_nvm() local
3763 (struct i40e_aqc_nvm_update *)&desc.params.raw; in i40e_aq_erase_nvm()
3774 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_nvm_erase); in i40e_aq_erase_nvm()
3783 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_erase_nvm()
4166 struct i40e_aq_desc desc; in i40e_aq_discover_capabilities() local
4169 cmd = (struct i40e_aqc_list_capabilites *)&desc.params.raw; in i40e_aq_discover_capabilities()
4177 i40e_fill_default_direct_cmd_desc(&desc, list_type_opc); in i40e_aq_discover_capabilities()
4179 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_discover_capabilities()
4181 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_discover_capabilities()
4183 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_discover_capabilities()
4184 *data_size = LE16_TO_CPU(desc.datalen); in i40e_aq_discover_capabilities()
4214 struct i40e_aq_desc desc; in i40e_aq_update_nvm() local
4216 (struct i40e_aqc_nvm_update *)&desc.params.raw; in i40e_aq_update_nvm()
4227 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_nvm_update); in i40e_aq_update_nvm()
4246 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_update_nvm()
4248 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_update_nvm()
4250 status = i40e_asq_send_command(hw, &desc, data, length, cmd_details); in i40e_aq_update_nvm()
4274 struct i40e_aq_desc desc; in i40e_aq_get_lldp_mib() local
4276 (struct i40e_aqc_lldp_get_mib *)&desc.params.raw; in i40e_aq_get_lldp_mib()
4278 (struct i40e_aqc_lldp_get_mib *)&desc.params.raw; in i40e_aq_get_lldp_mib()
4284 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_get_mib); in i40e_aq_get_lldp_mib()
4286 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_lldp_mib()
4292 desc.datalen = CPU_TO_LE16(buff_size); in i40e_aq_get_lldp_mib()
4294 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_lldp_mib()
4296 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_get_lldp_mib()
4298 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_get_lldp_mib()
4323 struct i40e_aq_desc desc; in i40e_aq_set_lldp_mib() local
4325 (struct i40e_aqc_lldp_set_local_mib *)&desc.params.raw; in i40e_aq_set_lldp_mib()
4331 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_lldp_mib()
4334 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_set_lldp_mib()
4336 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_set_lldp_mib()
4337 desc.datalen = CPU_TO_LE16(buff_size); in i40e_aq_set_lldp_mib()
4344 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_set_lldp_mib()
4361 struct i40e_aq_desc desc; in i40e_aq_cfg_lldp_mib_change_event() local
4363 (struct i40e_aqc_lldp_update_mib *)&desc.params.raw; in i40e_aq_cfg_lldp_mib_change_event()
4366 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_update_mib); in i40e_aq_cfg_lldp_mib_change_event()
4371 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_cfg_lldp_mib_change_event()
4390 struct i40e_aq_desc desc; in i40e_aq_restore_lldp() local
4392 (struct i40e_aqc_lldp_restore *)&desc.params.raw; in i40e_aq_restore_lldp()
4401 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_restore); in i40e_aq_restore_lldp()
4406 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_restore_lldp()
4427 struct i40e_aq_desc desc; in i40e_aq_stop_lldp() local
4429 (struct i40e_aqc_lldp_stop *)&desc.params.raw; in i40e_aq_stop_lldp()
4432 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_stop); in i40e_aq_stop_lldp()
4445 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_stop_lldp()
4462 struct i40e_aq_desc desc; in i40e_aq_start_lldp() local
4464 (struct i40e_aqc_lldp_start *)&desc.params.raw; in i40e_aq_start_lldp()
4467 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_start); in i40e_aq_start_lldp()
4479 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_start_lldp()
4495 struct i40e_aq_desc desc; in i40e_aq_set_dcb_parameters() local
4497 (struct i40e_aqc_set_dcb_parameters *)&desc.params.raw; in i40e_aq_set_dcb_parameters()
4503 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_dcb_parameters()
4510 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_dcb_parameters()
4528 struct i40e_aq_desc desc; in i40e_aq_get_cee_dcb_config() local
4534 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_get_cee_dcb_cfg); in i40e_aq_get_cee_dcb_config()
4536 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_cee_dcb_config()
4537 status = i40e_asq_send_command(hw, &desc, (void *)buff, buff_size, in i40e_aq_get_cee_dcb_config()
4556 struct i40e_aq_desc desc; in i40e_aq_start_stop_dcbx() local
4559 &desc.params.raw; in i40e_aq_start_stop_dcbx()
4562 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_start_stop_dcbx()
4568 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_start_stop_dcbx()
4590 struct i40e_aq_desc desc; in i40e_aq_add_udp_tunnel() local
4592 (struct i40e_aqc_add_udp_tunnel *)&desc.params.raw; in i40e_aq_add_udp_tunnel()
4594 (struct i40e_aqc_del_udp_tunnel_completion *)&desc.params.raw; in i40e_aq_add_udp_tunnel()
4597 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_udp_tunnel); in i40e_aq_add_udp_tunnel()
4602 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_add_udp_tunnel()
4619 struct i40e_aq_desc desc; in i40e_aq_del_udp_tunnel() local
4621 (struct i40e_aqc_remove_udp_tunnel *)&desc.params.raw; in i40e_aq_del_udp_tunnel()
4624 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_del_udp_tunnel); in i40e_aq_del_udp_tunnel()
4628 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_del_udp_tunnel()
4651 struct i40e_aq_desc desc; in i40e_aq_get_switch_resource_alloc() local
4653 (struct i40e_aqc_get_switch_resource_alloc *)&desc.params.raw; in i40e_aq_get_switch_resource_alloc()
4657 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_switch_resource_alloc()
4660 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_switch_resource_alloc()
4662 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_get_switch_resource_alloc()
4664 status = i40e_asq_send_command(hw, &desc, buf, length, cmd_details); in i40e_aq_get_switch_resource_alloc()
4683 struct i40e_aq_desc desc; in i40e_aq_delete_element() local
4685 (struct i40e_aqc_switch_seid *)&desc.params.raw; in i40e_aq_delete_element()
4691 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_delete_element); in i40e_aq_delete_element()
4694 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_delete_element()
4715 struct i40e_aq_desc desc; in i40e_aq_add_pvirt() local
4717 (struct i40e_aqc_add_update_pv *)&desc.params.raw; in i40e_aq_add_pvirt()
4719 (struct i40e_aqc_add_update_pv_completion *)&desc.params.raw; in i40e_aq_add_pvirt()
4725 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_pv); in i40e_aq_add_pvirt()
4730 status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); in i40e_aq_add_pvirt()
4757 struct i40e_aq_desc desc; in i40e_aq_add_tag() local
4759 (struct i40e_aqc_add_tag *)&desc.params.raw; in i40e_aq_add_tag()
4761 (struct i40e_aqc_add_remove_tag_completion *)&desc.params.raw; in i40e_aq_add_tag()
4767 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_tag); in i40e_aq_add_tag()
4776 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_add_tag()
4805 struct i40e_aq_desc desc; in i40e_aq_remove_tag() local
4807 (struct i40e_aqc_remove_tag *)&desc.params.raw; in i40e_aq_remove_tag()
4809 (struct i40e_aqc_add_remove_tag_completion *)&desc.params.raw; in i40e_aq_remove_tag()
4815 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_remove_tag); in i40e_aq_remove_tag()
4820 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_remove_tag()
4855 struct i40e_aq_desc desc; in i40e_aq_add_mcast_etag() local
4857 (struct i40e_aqc_add_remove_mcast_etag *)&desc.params.raw; in i40e_aq_add_mcast_etag()
4859 (struct i40e_aqc_add_remove_mcast_etag_completion *)&desc.params.raw; in i40e_aq_add_mcast_etag()
4866 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_mcast_etag()
4873 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_add_mcast_etag()
4875 status = i40e_asq_send_command(hw, &desc, buf, length, cmd_details); in i40e_aq_add_mcast_etag()
4904 struct i40e_aq_desc desc; in i40e_aq_remove_mcast_etag() local
4906 (struct i40e_aqc_add_remove_mcast_etag *)&desc.params.raw; in i40e_aq_remove_mcast_etag()
4908 (struct i40e_aqc_add_remove_mcast_etag_completion *)&desc.params.raw; in i40e_aq_remove_mcast_etag()
4915 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_remove_mcast_etag()
4921 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_remove_mcast_etag()
4952 struct i40e_aq_desc desc; in i40e_aq_update_tag() local
4954 (struct i40e_aqc_update_tag *)&desc.params.raw; in i40e_aq_update_tag()
4956 (struct i40e_aqc_update_tag_completion *)&desc.params.raw; in i40e_aq_update_tag()
4962 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_update_tag); in i40e_aq_update_tag()
4968 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_update_tag()
4995 struct i40e_aq_desc desc; in i40e_aq_dcb_ignore_pfc() local
4997 (struct i40e_aqc_pfc_ignore *)&desc.params.raw; in i40e_aq_dcb_ignore_pfc()
5000 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_dcb_ignore_pfc); in i40e_aq_dcb_ignore_pfc()
5007 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_dcb_ignore_pfc()
5037 struct i40e_aq_desc desc; in i40e_aq_dcb_updated() local
5040 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_dcb_updated); in i40e_aq_dcb_updated()
5042 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_dcb_updated()
5063 struct i40e_aq_desc desc; in i40e_aq_add_statistics() local
5065 (struct i40e_aqc_add_remove_statistics *)&desc.params.raw; in i40e_aq_add_statistics()
5071 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_add_statistics); in i40e_aq_add_statistics()
5076 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_add_statistics()
5100 struct i40e_aq_desc desc; in i40e_aq_remove_statistics() local
5102 (struct i40e_aqc_add_remove_statistics *)&desc.params.raw; in i40e_aq_remove_statistics()
5108 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_remove_statistics()
5115 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_remove_statistics()
5136 struct i40e_aq_desc desc; in i40e_aq_set_port_parameters() local
5139 cmd = (struct i40e_aqc_set_port_parameters *)&desc.params.raw; in i40e_aq_set_port_parameters()
5141 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_port_parameters()
5153 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_port_parameters()
5174 struct i40e_aq_desc desc; in i40e_aq_tx_sched_cmd() local
5176 (struct i40e_aqc_tx_sched_ind *)&desc.params.raw; in i40e_aq_tx_sched_cmd()
5201 i40e_fill_default_direct_cmd_desc(&desc, opcode); in i40e_aq_tx_sched_cmd()
5204 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_tx_sched_cmd()
5206 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_RD); in i40e_aq_tx_sched_cmd()
5208 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_tx_sched_cmd()
5210 desc.datalen = CPU_TO_LE16(buff_size); in i40e_aq_tx_sched_cmd()
5214 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_tx_sched_cmd()
5231 struct i40e_aq_desc desc; in i40e_aq_config_vsi_bw_limit() local
5233 (struct i40e_aqc_configure_vsi_bw_limit *)&desc.params.raw; in i40e_aq_config_vsi_bw_limit()
5236 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_config_vsi_bw_limit()
5243 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_config_vsi_bw_limit()
5260 struct i40e_aq_desc desc; in i40e_aq_config_switch_comp_bw_limit() local
5262 (struct i40e_aqc_configure_switching_comp_bw_limit *)&desc.params.raw; in i40e_aq_config_switch_comp_bw_limit()
5265 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_config_switch_comp_bw_limit()
5272 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_config_switch_comp_bw_limit()
5593 struct i40e_aq_desc desc; in i40e_aq_add_rem_control_packet_filter() local
5596 &desc.params.raw; in i40e_aq_add_rem_control_packet_filter()
5599 &desc.params.raw; in i40e_aq_add_rem_control_packet_filter()
5606 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_rem_control_packet_filter()
5610 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_rem_control_packet_filter()
5622 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_add_rem_control_packet_filter()
5702 struct i40e_aq_desc desc; in i40e_aq_add_cloud_filters() local
5704 (struct i40e_aqc_add_remove_cloud_filters *)&desc.params.raw; in i40e_aq_add_cloud_filters()
5708 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_cloud_filters()
5712 desc.datalen = CPU_TO_LE16(buff_len); in i40e_aq_add_cloud_filters()
5713 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_add_cloud_filters()
5719 status = i40e_asq_send_command(hw, &desc, filters, buff_len, NULL); in i40e_aq_add_cloud_filters()
5741 struct i40e_aq_desc desc; in i40e_aq_add_cloud_filters_bb() local
5743 (struct i40e_aqc_add_remove_cloud_filters *)&desc.params.raw; in i40e_aq_add_cloud_filters_bb()
5748 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_add_cloud_filters_bb()
5752 desc.datalen = CPU_TO_LE16(buff_len); in i40e_aq_add_cloud_filters_bb()
5753 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_add_cloud_filters_bb()
5776 status = i40e_asq_send_command(hw, &desc, filters, buff_len, NULL); in i40e_aq_add_cloud_filters_bb()
5798 struct i40e_aq_desc desc; in i40e_aq_rem_cloud_filters() local
5800 (struct i40e_aqc_add_remove_cloud_filters *)&desc.params.raw; in i40e_aq_rem_cloud_filters()
5804 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_rem_cloud_filters()
5808 desc.datalen = CPU_TO_LE16(buff_len); in i40e_aq_rem_cloud_filters()
5809 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_rem_cloud_filters()
5815 status = i40e_asq_send_command(hw, &desc, filters, buff_len, NULL); in i40e_aq_rem_cloud_filters()
5837 struct i40e_aq_desc desc; in i40e_aq_rem_cloud_filters_bb() local
5839 (struct i40e_aqc_add_remove_cloud_filters *)&desc.params.raw; in i40e_aq_rem_cloud_filters_bb()
5844 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_rem_cloud_filters_bb()
5848 desc.datalen = CPU_TO_LE16(buff_len); in i40e_aq_rem_cloud_filters_bb()
5849 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_rem_cloud_filters_bb()
5872 status = i40e_asq_send_command(hw, &desc, filters, buff_len, NULL); in i40e_aq_rem_cloud_filters_bb()
5889 struct i40e_aq_desc desc; in i40e_aq_replace_cloud_filters() local
5891 (struct i40e_aqc_replace_cloud_filters_cmd *)&desc.params.raw; in i40e_aq_replace_cloud_filters()
5903 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_replace_cloud_filters()
5906 desc.datalen = CPU_TO_LE16(32); in i40e_aq_replace_cloud_filters()
5907 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); in i40e_aq_replace_cloud_filters()
5914 status = i40e_asq_send_command(hw, &desc, cmd_buf, in i40e_aq_replace_cloud_filters()
5945 struct i40e_aq_desc desc; in i40e_aq_alternate_write() local
5947 (struct i40e_aqc_alternate_write *)&desc.params.raw; in i40e_aq_alternate_write()
5950 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_alternate_write); in i40e_aq_alternate_write()
5956 status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); in i40e_aq_alternate_write()
5975 struct i40e_aq_desc desc; in i40e_aq_alternate_write_indirect() local
5977 (struct i40e_aqc_alternate_ind_write *)&desc.params.raw; in i40e_aq_alternate_write_indirect()
5984 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_alternate_write_indirect()
5987 desc.flags |= CPU_TO_LE16(I40E_AQ_FLAG_RD); in i40e_aq_alternate_write_indirect()
5988 desc.flags |= CPU_TO_LE16(I40E_AQ_FLAG_BUF); in i40e_aq_alternate_write_indirect()
5990 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_alternate_write_indirect()
5995 status = i40e_asq_send_command(hw, &desc, buffer, in i40e_aq_alternate_write_indirect()
6018 struct i40e_aq_desc desc; in i40e_aq_alternate_read() local
6020 (struct i40e_aqc_alternate_write *)&desc.params.raw; in i40e_aq_alternate_read()
6026 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_alternate_read); in i40e_aq_alternate_read()
6030 status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); in i40e_aq_alternate_read()
6056 struct i40e_aq_desc desc; in i40e_aq_alternate_read_indirect() local
6058 (struct i40e_aqc_alternate_ind_write *)&desc.params.raw; in i40e_aq_alternate_read_indirect()
6065 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_alternate_read_indirect()
6068 desc.flags |= CPU_TO_LE16(I40E_AQ_FLAG_RD); in i40e_aq_alternate_read_indirect()
6069 desc.flags |= CPU_TO_LE16(I40E_AQ_FLAG_BUF); in i40e_aq_alternate_read_indirect()
6071 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_alternate_read_indirect()
6076 status = i40e_asq_send_command(hw, &desc, buffer, in i40e_aq_alternate_read_indirect()
6092 struct i40e_aq_desc desc; in i40e_aq_alternate_clear() local
6095 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_alternate_clear()
6098 status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); in i40e_aq_alternate_clear()
6115 struct i40e_aq_desc desc; in i40e_aq_alternate_write_done() local
6117 (struct i40e_aqc_alternate_write_done *)&desc.params.raw; in i40e_aq_alternate_write_done()
6123 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_alternate_write_done()
6128 status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); in i40e_aq_alternate_write_done()
6148 struct i40e_aq_desc desc; in i40e_aq_set_oem_mode() local
6150 (struct i40e_aqc_alternate_write_done *)&desc.params.raw; in i40e_aq_set_oem_mode()
6153 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_oem_mode()
6158 status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); in i40e_aq_set_oem_mode()
6173 struct i40e_aq_desc desc; in i40e_aq_resume_port_tx() local
6176 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_resume_port_tx); in i40e_aq_resume_port_tx()
6178 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_resume_port_tx()
6250 struct i40e_aq_desc desc; in i40e_aq_debug_dump() local
6252 (struct i40e_aqc_debug_dump_internals *)&desc.params.raw; in i40e_aq_debug_dump()
6254 (struct i40e_aqc_debug_dump_internals *)&desc.params.raw; in i40e_aq_debug_dump()
6260 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_debug_dump()
6263 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_debug_dump()
6265 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_debug_dump()
6271 desc.datalen = CPU_TO_LE16(buff_size); in i40e_aq_debug_dump()
6273 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_debug_dump()
6276 *ret_buff_size = LE16_TO_CPU(desc.datalen); in i40e_aq_debug_dump()
6406 struct i40e_aq_desc desc; in i40e_aq_configure_partition_bw() local
6409 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_configure_partition_bw()
6413 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_configure_partition_bw()
6414 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_RD); in i40e_aq_configure_partition_bw()
6416 desc.datalen = CPU_TO_LE16(bwd_size); in i40e_aq_configure_partition_bw()
6418 status = i40e_asq_send_command(hw, &desc, bw_data, bwd_size, cmd_details); in i40e_aq_configure_partition_bw()
7180 struct i40e_aq_desc desc; in i40e_aq_rx_ctl_read_register() local
7182 (struct i40e_aqc_rx_ctl_reg_read_write *)&desc.params.raw; in i40e_aq_rx_ctl_read_register()
7188 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_rx_ctl_reg_read); in i40e_aq_rx_ctl_read_register()
7192 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_rx_ctl_read_register()
7246 struct i40e_aq_desc desc; in i40e_aq_rx_ctl_write_register() local
7248 (struct i40e_aqc_rx_ctl_reg_read_write *)&desc.params.raw; in i40e_aq_rx_ctl_write_register()
7251 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_rx_ctl_reg_write); in i40e_aq_rx_ctl_write_register()
7256 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_rx_ctl_write_register()
7339 struct i40e_aq_desc desc; in i40e_aq_set_phy_register_ext() local
7341 (struct i40e_aqc_phy_register_access *)&desc.params.raw; in i40e_aq_set_phy_register_ext()
7344 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_phy_register_ext()
7357 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_set_phy_register_ext()
7385 struct i40e_aq_desc desc; in i40e_aq_get_phy_register_ext() local
7387 (struct i40e_aqc_phy_register_access *)&desc.params.raw; in i40e_aq_get_phy_register_ext()
7390 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_phy_register_ext()
7402 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_phy_register_ext()
7428 struct i40e_aq_desc desc; in i40e_aq_run_phy_activity() local
7430 cmd = (struct i40e_aqc_run_phy_activity *)&desc.params.raw; in i40e_aq_run_phy_activity()
7437 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_run_phy_activity()
7443 retval = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_run_phy_activity()
7474 struct i40e_aq_desc desc; in i40e_aq_send_msg_to_pf() local
7478 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_send_msg_to_pf); in i40e_aq_send_msg_to_pf()
7479 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_SI); in i40e_aq_send_msg_to_pf()
7480 desc.cookie_high = CPU_TO_LE32(v_opcode); in i40e_aq_send_msg_to_pf()
7481 desc.cookie_low = CPU_TO_LE32(v_retval); in i40e_aq_send_msg_to_pf()
7483 desc.flags |= CPU_TO_LE16((u16)(I40E_AQ_FLAG_BUF in i40e_aq_send_msg_to_pf()
7486 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_LB); in i40e_aq_send_msg_to_pf()
7487 desc.datalen = CPU_TO_LE16(msglen); in i40e_aq_send_msg_to_pf()
7494 status = i40e_asq_send_command(hw, (struct i40e_aq_desc *)&desc, msg, in i40e_aq_send_msg_to_pf()
7564 struct i40e_aq_desc desc; in i40e_aq_set_arp_proxy_config() local
7570 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_set_proxy_config); in i40e_aq_set_arp_proxy_config()
7572 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_set_arp_proxy_config()
7573 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_RD); in i40e_aq_set_arp_proxy_config()
7574 desc.params.external.addr_high = in i40e_aq_set_arp_proxy_config()
7576 desc.params.external.addr_low = in i40e_aq_set_arp_proxy_config()
7578 desc.datalen = CPU_TO_LE16(sizeof(struct i40e_aqc_arp_proxy_data)); in i40e_aq_set_arp_proxy_config()
7580 status = i40e_asq_send_command(hw, &desc, proxy_config, in i40e_aq_set_arp_proxy_config()
7600 struct i40e_aq_desc desc; in i40e_aq_set_ns_proxy_table_entry() local
7606 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_set_ns_proxy_table_entry()
7609 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_set_ns_proxy_table_entry()
7610 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_RD); in i40e_aq_set_ns_proxy_table_entry()
7611 desc.params.external.addr_high = in i40e_aq_set_ns_proxy_table_entry()
7613 desc.params.external.addr_low = in i40e_aq_set_ns_proxy_table_entry()
7615 desc.datalen = CPU_TO_LE16(sizeof(struct i40e_aqc_ns_proxy_data)); in i40e_aq_set_ns_proxy_table_entry()
7617 status = i40e_asq_send_command(hw, &desc, ns_proxy_table_entry, in i40e_aq_set_ns_proxy_table_entry()
7645 struct i40e_aq_desc desc; in i40e_aq_set_clear_wol_filter() local
7647 (struct i40e_aqc_set_wol_filter *)&desc.params.raw; in i40e_aq_set_clear_wol_filter()
7653 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_set_wol_filter); in i40e_aq_set_clear_wol_filter()
7678 desc.datalen = CPU_TO_LE16(buff_len); in i40e_aq_set_clear_wol_filter()
7680 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_set_clear_wol_filter()
7681 desc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_RD); in i40e_aq_set_clear_wol_filter()
7686 status = i40e_asq_send_command(hw, &desc, filter, in i40e_aq_set_clear_wol_filter()
7704 struct i40e_aq_desc desc; in i40e_aq_get_wake_event_reason() local
7706 (struct i40e_aqc_get_wake_reason_completion *)&desc.params.raw; in i40e_aq_get_wake_event_reason()
7709 i40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_get_wake_reason); in i40e_aq_get_wake_event_reason()
7711 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_get_wake_event_reason()
7729 struct i40e_aq_desc desc; in i40e_aq_clear_all_wol_filters() local
7732 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_clear_all_wol_filters()
7735 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); in i40e_aq_clear_all_wol_filters()