Lines Matching refs:msg

60 	resp_pf_to_vf->msg.code = cpu_to_le16(HCLGE_MBX_PF_VF_RESP);  in hclge_gen_resp_to_vf()
61 resp_pf_to_vf->msg.vf_mbx_msg_code = in hclge_gen_resp_to_vf()
62 cpu_to_le16(vf_to_pf_req->msg.code); in hclge_gen_resp_to_vf()
63 resp_pf_to_vf->msg.vf_mbx_msg_subcode = in hclge_gen_resp_to_vf()
64 cpu_to_le16(vf_to_pf_req->msg.subcode); in hclge_gen_resp_to_vf()
67 resp_pf_to_vf->msg.resp_status = cpu_to_le16(resp); in hclge_gen_resp_to_vf()
72 resp_pf_to_vf->msg.resp_status = cpu_to_le16(EIO); in hclge_gen_resp_to_vf()
76 memcpy(resp_pf_to_vf->msg.resp_data, resp_msg->data, in hclge_gen_resp_to_vf()
86 vf_to_pf_req->msg.code, vf_to_pf_req->msg.subcode); in hclge_gen_resp_to_vf()
91 static int hclge_send_mbx_msg(struct hclge_vport *vport, u8 *msg, u16 msg_len, in hclge_send_mbx_msg() argument
112 resp_pf_to_vf->msg.code = cpu_to_le16(mbx_opcode); in hclge_send_mbx_msg()
114 memcpy(resp_pf_to_vf->msg.msg_data, msg, msg_len); in hclge_send_mbx_msg()
190 ring_num = req->msg.ring_num; in hclge_get_ring_chain_from_mbx()
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()
244 int vector_id = req->msg.vector_id; in hclge_map_unmap_ring_to_vf_vector()
306 req->msg.ring_num = HCLGE_LIMIT_RING_NUM; in hclge_get_vf_ring_vector_map()
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()
340 vport->vf_info.request_uc_en = req->msg.en_uc; in hclge_set_vf_promisc_mode()
341 vport->vf_info.request_mc_en = req->msg.en_mc; in hclge_set_vf_promisc_mode()
342 vport->vf_info.request_bc_en = req->msg.en_bc; in hclge_set_vf_promisc_mode()
344 if (req->msg.en_limit_promisc) in hclge_set_vf_promisc_mode()
359 const u8 *mac_addr = (const u8 *)(mbx_req->msg.data); in hclge_set_vf_uc_mac_addr()
363 if (mbx_req->msg.subcode == HCLGE_MBX_MAC_VLAN_UC_MODIFY) { in hclge_set_vf_uc_mac_addr()
365 (&mbx_req->msg.data[HCLGE_MBX_VF_OLD_MAC_ADDR_OFFSET]); in hclge_set_vf_uc_mac_addr()
382 } else if (mbx_req->msg.subcode == HCLGE_MBX_MAC_VLAN_UC_ADD) { in hclge_set_vf_uc_mac_addr()
385 } else if (mbx_req->msg.subcode == HCLGE_MBX_MAC_VLAN_UC_REMOVE) { in hclge_set_vf_uc_mac_addr()
391 mbx_req->msg.subcode); in hclge_set_vf_uc_mac_addr()
401 const u8 *mac_addr = (const u8 *)(mbx_req->msg.data); in hclge_set_vf_mc_mac_addr()
404 if (mbx_req->msg.subcode == HCLGE_MBX_MAC_VLAN_MC_ADD) { in hclge_set_vf_mc_mac_addr()
407 } else if (mbx_req->msg.subcode == HCLGE_MBX_MAC_VLAN_MC_REMOVE) { in hclge_set_vf_mc_mac_addr()
413 mbx_req->msg.subcode); in hclge_set_vf_mc_mac_addr()
448 msg_cmd = (struct hclge_vf_vlan_cfg *)&mbx_req->msg; in hclge_set_vf_vlan_cfg()
479 bool alive = !!mbx_req->msg.data[0]; in hclge_set_vf_alive()
613 send_data = mbx_req->msg.data[0] == HCLGE_SUPPORTED ? supported : in hclge_get_link_mode()
615 link_mode.idx = cpu_to_le16((u16)mbx_req->msg.data[0]); in hclge_get_link_mode()
632 queue_id = le16_to_cpu(*(__le16 *)mbx_req->msg.data); in hclge_mbx_reset_vf_queue()
718 mtu_info = (struct hclge_mbx_mtu_info *)mbx_req->msg.data; in hclge_set_vf_mtu()
732 queue_id = le16_to_cpu(*(__le16 *)mbx_req->msg.data); in hclge_get_queue_id_in_pf()
754 index = mbx_req->msg.data[0]; in hclge_get_rss_key()
797 if (!req->msg.subcode) in hclge_handle_link_change_event()
798 hclge_link_fail_parse(hdev, req->msg.data[0]); in hclge_handle_link_change_event()
823 msg_cmd = (struct hclge_vf_vlan_cfg *)&mbx_req->msg; in hclge_handle_vf_tbl()
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()
1090 param->req->msg.code < HCLGE_MBX_GET_VF_FLR_STATUS) { 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()
1131 req->msg.code, req->mbx_src_vfid); in hclge_mbx_handler()