Lines Matching full:param
196 if (req->msg.param[i].tqp_index >= vport->nic.kinfo.rss_size) { in hclge_get_ring_chain_from_mbx()
198 req->msg.param[i].tqp_index, in hclge_get_ring_chain_from_mbx()
205 req->msg.param[0].ring_type); in hclge_get_ring_chain_from_mbx()
208 [req->msg.param[0].tqp_index]); in hclge_get_ring_chain_from_mbx()
210 HNAE3_RING_GL_IDX_S, req->msg.param[0].int_gl_index); in hclge_get_ring_chain_from_mbx()
220 req->msg.param[i].ring_type); in hclge_get_ring_chain_from_mbx()
224 [req->msg.param[i].tqp_index]); in hclge_get_ring_chain_from_mbx()
228 req->msg.param[i].int_gl_index); in hclge_get_ring_chain_from_mbx()
323 resp->data[HCLGE_RING_TYPE_OFFSET] = req->msg.param[0].ring_type; in hclge_get_vf_ring_vector_map()
324 resp->data[HCLGE_TQP_INDEX_OFFSET] = req->msg.param[0].tqp_index; in hclge_get_vf_ring_vector_map()
835 hclge_mbx_map_ring_to_vector_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_map_ring_to_vector_handler() argument
837 return hclge_map_unmap_ring_to_vf_vector(param->vport, true, in hclge_mbx_map_ring_to_vector_handler()
838 param->req); in hclge_mbx_map_ring_to_vector_handler()
842 hclge_mbx_unmap_ring_to_vector_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_unmap_ring_to_vector_handler() argument
844 return hclge_map_unmap_ring_to_vf_vector(param->vport, false, in hclge_mbx_unmap_ring_to_vector_handler()
845 param->req); in hclge_mbx_unmap_ring_to_vector_handler()
849 hclge_mbx_get_ring_vector_map_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_ring_vector_map_handler() argument
853 ret = hclge_get_vf_ring_vector_map(param->vport, param->req, in hclge_mbx_get_ring_vector_map_handler()
854 param->resp_msg); in hclge_mbx_get_ring_vector_map_handler()
856 dev_err(¶m->vport->back->pdev->dev, in hclge_mbx_get_ring_vector_map_handler()
862 static int hclge_mbx_set_promisc_mode_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_promisc_mode_handler() argument
864 hclge_set_vf_promisc_mode(param->vport, param->req); in hclge_mbx_set_promisc_mode_handler()
868 static int hclge_mbx_set_unicast_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_unicast_handler() argument
872 ret = hclge_set_vf_uc_mac_addr(param->vport, param->req); in hclge_mbx_set_unicast_handler()
874 dev_err(¶m->vport->back->pdev->dev, in hclge_mbx_set_unicast_handler()
880 static int hclge_mbx_set_multicast_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_multicast_handler() argument
884 ret = hclge_set_vf_mc_mac_addr(param->vport, param->req); in hclge_mbx_set_multicast_handler()
886 dev_err(¶m->vport->back->pdev->dev, in hclge_mbx_set_multicast_handler()
892 static int hclge_mbx_set_vlan_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_vlan_handler() argument
896 ret = hclge_set_vf_vlan_cfg(param->vport, param->req, param->resp_msg); in hclge_mbx_set_vlan_handler()
898 dev_err(¶m->vport->back->pdev->dev, in hclge_mbx_set_vlan_handler()
904 static int hclge_mbx_set_alive_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_alive_handler() argument
908 ret = hclge_set_vf_alive(param->vport, param->req); in hclge_mbx_set_alive_handler()
910 dev_err(¶m->vport->back->pdev->dev, in hclge_mbx_set_alive_handler()
916 static int hclge_mbx_get_qinfo_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_qinfo_handler() argument
918 hclge_get_vf_queue_info(param->vport, param->resp_msg); in hclge_mbx_get_qinfo_handler()
922 static int hclge_mbx_get_qdepth_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_qdepth_handler() argument
924 hclge_get_vf_queue_depth(param->vport, param->resp_msg); in hclge_mbx_get_qdepth_handler()
928 static int hclge_mbx_get_basic_info_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_basic_info_handler() argument
930 hclge_get_basic_info(param->vport, param->resp_msg); in hclge_mbx_get_basic_info_handler()
934 static int hclge_mbx_get_link_status_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_link_status_handler() argument
938 ret = hclge_push_vf_link_status(param->vport); in hclge_mbx_get_link_status_handler()
940 dev_err(¶m->vport->back->pdev->dev, in hclge_mbx_get_link_status_handler()
946 static int hclge_mbx_queue_reset_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_queue_reset_handler() argument
948 return hclge_mbx_reset_vf_queue(param->vport, param->req, in hclge_mbx_queue_reset_handler()
949 param->resp_msg); in hclge_mbx_queue_reset_handler()
952 static int hclge_mbx_reset_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_reset_handler() argument
954 return hclge_reset_vf(param->vport); in hclge_mbx_reset_handler()
957 static int hclge_mbx_keep_alive_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_keep_alive_handler() argument
959 hclge_vf_keep_alive(param->vport); in hclge_mbx_keep_alive_handler()
963 static int hclge_mbx_set_mtu_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_mtu_handler() argument
967 ret = hclge_set_vf_mtu(param->vport, param->req); in hclge_mbx_set_mtu_handler()
969 dev_err(¶m->vport->back->pdev->dev, in hclge_mbx_set_mtu_handler()
974 static int hclge_mbx_get_qid_in_pf_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_qid_in_pf_handler() argument
976 return hclge_get_queue_id_in_pf(param->vport, param->req, in hclge_mbx_get_qid_in_pf_handler()
977 param->resp_msg); in hclge_mbx_get_qid_in_pf_handler()
980 static int hclge_mbx_get_rss_key_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_rss_key_handler() argument
982 return hclge_get_rss_key(param->vport, param->req, param->resp_msg); in hclge_mbx_get_rss_key_handler()
985 static int hclge_mbx_get_link_mode_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_link_mode_handler() argument
987 hclge_get_link_mode(param->vport, param->req); in hclge_mbx_get_link_mode_handler()
992 hclge_mbx_get_vf_flr_status_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_vf_flr_status_handler() argument
994 hclge_rm_vport_all_mac_table(param->vport, false, in hclge_mbx_get_vf_flr_status_handler()
996 hclge_rm_vport_all_mac_table(param->vport, false, in hclge_mbx_get_vf_flr_status_handler()
998 hclge_rm_vport_all_vlan_table(param->vport, false); in hclge_mbx_get_vf_flr_status_handler()
1002 static int hclge_mbx_vf_uninit_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_vf_uninit_handler() argument
1004 hclge_rm_vport_all_mac_table(param->vport, true, in hclge_mbx_vf_uninit_handler()
1006 hclge_rm_vport_all_mac_table(param->vport, true, in hclge_mbx_vf_uninit_handler()
1008 hclge_rm_vport_all_vlan_table(param->vport, true); in hclge_mbx_vf_uninit_handler()
1009 param->vport->mps = 0; in hclge_mbx_vf_uninit_handler()
1013 static int hclge_mbx_get_media_type_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_media_type_handler() argument
1015 hclge_get_vf_media_type(param->vport, param->resp_msg); in hclge_mbx_get_media_type_handler()
1019 static int hclge_mbx_push_link_status_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_push_link_status_handler() argument
1021 hclge_handle_link_change_event(param->vport->back, param->req); in hclge_mbx_push_link_status_handler()
1025 static int hclge_mbx_get_mac_addr_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_mac_addr_handler() argument
1027 hclge_get_vf_mac_addr(param->vport, param->resp_msg); in hclge_mbx_get_mac_addr_handler()
1031 static int hclge_mbx_ncsi_error_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_ncsi_error_handler() argument
1033 hclge_handle_ncsi_error(param->vport->back); in hclge_mbx_ncsi_error_handler()
1037 static int hclge_mbx_handle_vf_tbl_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_handle_vf_tbl_handler() argument
1039 hclge_handle_vf_tbl(param->vport, param->req); in hclge_mbx_handle_vf_tbl_handler()
1072 static void hclge_mbx_request_handling(struct hclge_mbx_ops_param *param) in hclge_mbx_request_handling() argument
1078 hdev = param->vport->back; in hclge_mbx_request_handling()
1079 cmd_func = hclge_mbx_ops_list[param->req->msg.code]; in hclge_mbx_request_handling()
1083 param->req->msg.code); in hclge_mbx_request_handling()
1086 ret = cmd_func(param); in hclge_mbx_request_handling()
1089 if (hnae3_get_bit(param->req->mbx_need_resp, HCLGE_MBX_NEED_RESP_B) && in hclge_mbx_request_handling()
1090 param->req->msg.code < HCLGE_MBX_GET_VF_FLR_STATUS) { in hclge_mbx_request_handling()
1091 param->resp_msg->status = ret; in hclge_mbx_request_handling()
1096 param->req->mbx_src_vfid, in hclge_mbx_request_handling()
1097 param->req->msg.code, in hclge_mbx_request_handling()
1098 param->req->msg.subcode); in hclge_mbx_request_handling()
1100 hclge_gen_resp_to_vf(param->vport, param->req, param->resp_msg); in hclge_mbx_request_handling()
1109 struct hclge_mbx_ops_param param; in hclge_mbx_handler() local
1113 param.resp_msg = &resp_msg; in hclge_mbx_handler()
1143 param.vport = &hdev->vport[req->mbx_src_vfid]; in hclge_mbx_handler()
1144 param.req = req; in hclge_mbx_handler()
1145 hclge_mbx_request_handling(¶m); in hclge_mbx_handler()