Lines Matching full:param

191 		if (req->msg.param[i].tqp_index >= vport->nic.kinfo.rss_size) {  in hclge_get_ring_chain_from_mbx()
193 req->msg.param[i].tqp_index, in hclge_get_ring_chain_from_mbx()
200 req->msg.param[0].ring_type); in hclge_get_ring_chain_from_mbx()
203 [req->msg.param[0].tqp_index]); in hclge_get_ring_chain_from_mbx()
205 HNAE3_RING_GL_IDX_S, req->msg.param[0].int_gl_index); in hclge_get_ring_chain_from_mbx()
215 req->msg.param[i].ring_type); in hclge_get_ring_chain_from_mbx()
219 [req->msg.param[i].tqp_index]); in hclge_get_ring_chain_from_mbx()
223 req->msg.param[i].int_gl_index); in hclge_get_ring_chain_from_mbx()
318 resp->data[HCLGE_RING_TYPE_OFFSET] = req->msg.param[0].ring_type; in hclge_get_vf_ring_vector_map()
319 resp->data[HCLGE_TQP_INDEX_OFFSET] = req->msg.param[0].tqp_index; in hclge_get_vf_ring_vector_map()
783 hclge_mbx_map_ring_to_vector_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_map_ring_to_vector_handler() argument
785 return hclge_map_unmap_ring_to_vf_vector(param->vport, true, in hclge_mbx_map_ring_to_vector_handler()
786 param->req); in hclge_mbx_map_ring_to_vector_handler()
790 hclge_mbx_unmap_ring_to_vector_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_unmap_ring_to_vector_handler() argument
792 return hclge_map_unmap_ring_to_vf_vector(param->vport, false, in hclge_mbx_unmap_ring_to_vector_handler()
793 param->req); in hclge_mbx_unmap_ring_to_vector_handler()
797 hclge_mbx_get_ring_vector_map_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_ring_vector_map_handler() argument
801 ret = hclge_get_vf_ring_vector_map(param->vport, param->req, in hclge_mbx_get_ring_vector_map_handler()
802 param->resp_msg); in hclge_mbx_get_ring_vector_map_handler()
804 dev_err(&param->vport->back->pdev->dev, in hclge_mbx_get_ring_vector_map_handler()
810 static int hclge_mbx_set_promisc_mode_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_promisc_mode_handler() argument
812 hclge_set_vf_promisc_mode(param->vport, param->req); in hclge_mbx_set_promisc_mode_handler()
816 static int hclge_mbx_set_unicast_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_unicast_handler() argument
820 ret = hclge_set_vf_uc_mac_addr(param->vport, param->req); in hclge_mbx_set_unicast_handler()
822 dev_err(&param->vport->back->pdev->dev, in hclge_mbx_set_unicast_handler()
828 static int hclge_mbx_set_multicast_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_multicast_handler() argument
832 ret = hclge_set_vf_mc_mac_addr(param->vport, param->req); in hclge_mbx_set_multicast_handler()
834 dev_err(&param->vport->back->pdev->dev, in hclge_mbx_set_multicast_handler()
840 static int hclge_mbx_set_vlan_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_vlan_handler() argument
844 ret = hclge_set_vf_vlan_cfg(param->vport, param->req, param->resp_msg); in hclge_mbx_set_vlan_handler()
846 dev_err(&param->vport->back->pdev->dev, in hclge_mbx_set_vlan_handler()
852 static int hclge_mbx_set_alive_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_alive_handler() argument
856 ret = hclge_set_vf_alive(param->vport, param->req); in hclge_mbx_set_alive_handler()
858 dev_err(&param->vport->back->pdev->dev, in hclge_mbx_set_alive_handler()
864 static int hclge_mbx_get_qinfo_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_qinfo_handler() argument
866 hclge_get_vf_queue_info(param->vport, param->resp_msg); in hclge_mbx_get_qinfo_handler()
870 static int hclge_mbx_get_qdepth_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_qdepth_handler() argument
872 hclge_get_vf_queue_depth(param->vport, param->resp_msg); in hclge_mbx_get_qdepth_handler()
876 static int hclge_mbx_get_basic_info_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_basic_info_handler() argument
878 hclge_get_basic_info(param->vport, param->resp_msg); in hclge_mbx_get_basic_info_handler()
882 static int hclge_mbx_get_link_status_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_link_status_handler() argument
886 ret = hclge_push_vf_link_status(param->vport); in hclge_mbx_get_link_status_handler()
888 dev_err(&param->vport->back->pdev->dev, in hclge_mbx_get_link_status_handler()
894 static int hclge_mbx_queue_reset_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_queue_reset_handler() argument
896 return hclge_mbx_reset_vf_queue(param->vport, param->req, in hclge_mbx_queue_reset_handler()
897 param->resp_msg); in hclge_mbx_queue_reset_handler()
900 static int hclge_mbx_reset_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_reset_handler() argument
902 return hclge_reset_vf(param->vport); in hclge_mbx_reset_handler()
905 static int hclge_mbx_keep_alive_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_keep_alive_handler() argument
907 hclge_vf_keep_alive(param->vport); in hclge_mbx_keep_alive_handler()
911 static int hclge_mbx_set_mtu_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_set_mtu_handler() argument
915 ret = hclge_set_vf_mtu(param->vport, param->req); in hclge_mbx_set_mtu_handler()
917 dev_err(&param->vport->back->pdev->dev, in hclge_mbx_set_mtu_handler()
922 static int hclge_mbx_get_qid_in_pf_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_qid_in_pf_handler() argument
924 return hclge_get_queue_id_in_pf(param->vport, param->req, in hclge_mbx_get_qid_in_pf_handler()
925 param->resp_msg); in hclge_mbx_get_qid_in_pf_handler()
928 static int hclge_mbx_get_rss_key_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_rss_key_handler() argument
930 return hclge_get_rss_key(param->vport, param->req, param->resp_msg); in hclge_mbx_get_rss_key_handler()
933 static int hclge_mbx_get_link_mode_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_link_mode_handler() argument
935 hclge_get_link_mode(param->vport, param->req); in hclge_mbx_get_link_mode_handler()
940 hclge_mbx_get_vf_flr_status_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_vf_flr_status_handler() argument
942 hclge_rm_vport_all_mac_table(param->vport, false, in hclge_mbx_get_vf_flr_status_handler()
944 hclge_rm_vport_all_mac_table(param->vport, false, in hclge_mbx_get_vf_flr_status_handler()
946 hclge_rm_vport_all_vlan_table(param->vport, false); in hclge_mbx_get_vf_flr_status_handler()
950 static int hclge_mbx_vf_uninit_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_vf_uninit_handler() argument
952 hclge_rm_vport_all_mac_table(param->vport, true, in hclge_mbx_vf_uninit_handler()
954 hclge_rm_vport_all_mac_table(param->vport, true, in hclge_mbx_vf_uninit_handler()
956 hclge_rm_vport_all_vlan_table(param->vport, true); in hclge_mbx_vf_uninit_handler()
960 static int hclge_mbx_get_media_type_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_media_type_handler() argument
962 hclge_get_vf_media_type(param->vport, param->resp_msg); in hclge_mbx_get_media_type_handler()
966 static int hclge_mbx_push_link_status_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_push_link_status_handler() argument
968 hclge_handle_link_change_event(param->vport->back, param->req); in hclge_mbx_push_link_status_handler()
972 static int hclge_mbx_get_mac_addr_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_get_mac_addr_handler() argument
974 hclge_get_vf_mac_addr(param->vport, param->resp_msg); in hclge_mbx_get_mac_addr_handler()
978 static int hclge_mbx_ncsi_error_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_ncsi_error_handler() argument
980 hclge_handle_ncsi_error(param->vport->back); in hclge_mbx_ncsi_error_handler()
984 static int hclge_mbx_handle_vf_tbl_handler(struct hclge_mbx_ops_param *param) in hclge_mbx_handle_vf_tbl_handler() argument
986 hclge_handle_vf_tbl(param->vport, param->req); in hclge_mbx_handle_vf_tbl_handler()
1019 static void hclge_mbx_request_handling(struct hclge_mbx_ops_param *param) in hclge_mbx_request_handling() argument
1025 hdev = param->vport->back; in hclge_mbx_request_handling()
1026 cmd_func = hclge_mbx_ops_list[param->req->msg.code]; in hclge_mbx_request_handling()
1028 ret = cmd_func(param); in hclge_mbx_request_handling()
1032 param->req->msg.code); in hclge_mbx_request_handling()
1035 if (hnae3_get_bit(param->req->mbx_need_resp, HCLGE_MBX_NEED_RESP_B) && in hclge_mbx_request_handling()
1036 param->req->msg.code < HCLGE_MBX_GET_VF_FLR_STATUS) { in hclge_mbx_request_handling()
1037 param->resp_msg->status = ret; in hclge_mbx_request_handling()
1042 param->req->mbx_src_vfid, in hclge_mbx_request_handling()
1043 param->req->msg.code, in hclge_mbx_request_handling()
1044 param->req->msg.subcode); in hclge_mbx_request_handling()
1046 hclge_gen_resp_to_vf(param->vport, param->req, param->resp_msg); in hclge_mbx_request_handling()
1055 struct hclge_mbx_ops_param param; in hclge_mbx_handler() local
1059 param.resp_msg = &resp_msg; in hclge_mbx_handler()
1088 param.vport = &hdev->vport[req->mbx_src_vfid]; in hclge_mbx_handler()
1089 param.req = req; in hclge_mbx_handler()
1090 hclge_mbx_request_handling(&param); in hclge_mbx_handler()