Lines Matching refs:send_msg
161 struct hclge_vf_to_pf_msg send_msg; in hclgevf_get_basic_info() local
165 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_GET_BASIC_INFO, 0); in hclgevf_get_basic_info()
166 status = hclgevf_send_mbx_msg(hdev, &send_msg, true, resp_msg, in hclgevf_get_basic_info()
188 struct hclge_vf_to_pf_msg send_msg; in hclgevf_get_port_base_vlan_filter_state() local
192 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_SET_VLAN, in hclgevf_get_port_base_vlan_filter_state()
194 ret = hclgevf_send_mbx_msg(hdev, &send_msg, true, &resp_msg, in hclgevf_get_port_base_vlan_filter_state()
214 struct hclge_vf_to_pf_msg send_msg; in hclgevf_get_queue_info() local
217 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_GET_QINFO, 0); in hclgevf_get_queue_info()
218 status = hclgevf_send_mbx_msg(hdev, &send_msg, true, resp_msg, in hclgevf_get_queue_info()
241 struct hclge_vf_to_pf_msg send_msg; in hclgevf_get_queue_depth() local
244 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_GET_QDEPTH, 0); in hclgevf_get_queue_depth()
245 ret = hclgevf_send_mbx_msg(hdev, &send_msg, true, resp_msg, in hclgevf_get_queue_depth()
264 struct hclge_vf_to_pf_msg send_msg; in hclgevf_get_qid_global() local
269 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_GET_QID_IN_PF, 0); in hclgevf_get_qid_global()
270 *(__le16 *)send_msg.data = cpu_to_le16(queue_id); in hclgevf_get_qid_global()
271 ret = hclgevf_send_mbx_msg(hdev, &send_msg, true, resp_data, in hclgevf_get_qid_global()
281 struct hclge_vf_to_pf_msg send_msg; in hclgevf_get_pf_media_type() local
285 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_GET_MEDIA_TYPE, 0); in hclgevf_get_pf_media_type()
286 ret = hclgevf_send_mbx_msg(hdev, &send_msg, true, resp_msg, in hclgevf_get_pf_media_type()
396 struct hclge_vf_to_pf_msg send_msg; in hclgevf_request_link_info() local
399 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_GET_LINK_STATUS, 0); in hclgevf_request_link_info()
400 status = hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_request_link_info()
436 struct hclge_vf_to_pf_msg send_msg; in hclgevf_update_link_mode() local
438 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_GET_LINK_MODE, 0); in hclgevf_update_link_mode()
439 send_msg.data[0] = HCLGEVF_ADVERTISING; in hclgevf_update_link_mode()
440 hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_update_link_mode()
441 send_msg.data[0] = HCLGEVF_SUPPORTED; in hclgevf_update_link_mode()
442 hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_update_link_mode()
528 struct hclge_vf_to_pf_msg send_msg; in hclgevf_get_rss_hash_key() local
533 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_GET_RSS_KEY, 0); in hclgevf_get_rss_hash_key()
537 send_msg.data[0] = index; in hclgevf_get_rss_hash_key()
538 ret = hclgevf_send_mbx_msg(hdev, &send_msg, true, resp_msg, in hclgevf_get_rss_hash_key()
663 struct hclge_vf_to_pf_msg send_msg; in hclgevf_bind_ring_to_vector() local
668 memset(&send_msg, 0, sizeof(send_msg)); in hclgevf_bind_ring_to_vector()
669 send_msg.code = en ? HCLGE_MBX_MAP_RING_TO_VECTOR : in hclgevf_bind_ring_to_vector()
671 send_msg.vector_id = vector_id; in hclgevf_bind_ring_to_vector()
674 send_msg.param[i].ring_type = in hclgevf_bind_ring_to_vector()
677 send_msg.param[i].tqp_index = node->tqp_index; in hclgevf_bind_ring_to_vector()
678 send_msg.param[i].int_gl_index = in hclgevf_bind_ring_to_vector()
685 send_msg.ring_num = i; in hclgevf_bind_ring_to_vector()
687 status = hclgevf_send_mbx_msg(hdev, &send_msg, false, in hclgevf_bind_ring_to_vector()
769 struct hclge_vf_to_pf_msg send_msg; in hclgevf_cmd_set_promisc_mode() local
772 memset(&send_msg, 0, sizeof(send_msg)); in hclgevf_cmd_set_promisc_mode()
773 send_msg.code = HCLGE_MBX_SET_PROMISC_MODE; in hclgevf_cmd_set_promisc_mode()
774 send_msg.en_bc = en_bc_pmc ? 1 : 0; in hclgevf_cmd_set_promisc_mode()
775 send_msg.en_uc = en_uc_pmc ? 1 : 0; in hclgevf_cmd_set_promisc_mode()
776 send_msg.en_mc = en_mc_pmc ? 1 : 0; in hclgevf_cmd_set_promisc_mode()
777 send_msg.en_limit_promisc = test_bit(HNAE3_PFLAG_LIMIT_PROMISC, in hclgevf_cmd_set_promisc_mode()
780 ret = hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_cmd_set_promisc_mode()
856 struct hclge_vf_to_pf_msg send_msg; in hclgevf_get_host_mac_addr() local
860 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_GET_MAC_ADDR, 0); in hclgevf_get_host_mac_addr()
861 status = hclgevf_send_mbx_msg(hdev, &send_msg, true, host_mac, in hclgevf_get_host_mac_addr()
894 struct hclge_vf_to_pf_msg send_msg; in hclgevf_set_mac_addr() local
898 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_SET_UNICAST, 0); in hclgevf_set_mac_addr()
899 send_msg.subcode = HCLGE_MBX_MAC_VLAN_UC_MODIFY; in hclgevf_set_mac_addr()
900 ether_addr_copy(send_msg.data, new_mac_addr); in hclgevf_set_mac_addr()
902 eth_zero_addr(&send_msg.data[ETH_ALEN]); in hclgevf_set_mac_addr()
904 ether_addr_copy(&send_msg.data[ETH_ALEN], old_mac_addr); in hclgevf_set_mac_addr()
905 status = hclgevf_send_mbx_msg(hdev, &send_msg, true, NULL, 0); in hclgevf_set_mac_addr()
1028 struct hclge_vf_to_pf_msg send_msg; in hclgevf_add_del_mac_addr() local
1045 hclgevf_build_send_msg(&send_msg, code, subcode); in hclgevf_add_del_mac_addr()
1046 ether_addr_copy(send_msg.data, mac_node->mac_addr); in hclgevf_add_del_mac_addr()
1047 return hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_add_del_mac_addr()
1212 struct hclge_vf_to_pf_msg send_msg; in hclgevf_enable_vlan_filter() local
1217 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_SET_VLAN, in hclgevf_enable_vlan_filter()
1219 send_msg.data[0] = enable ? 1 : 0; in hclgevf_enable_vlan_filter()
1221 return hclgevf_send_mbx_msg(hdev, &send_msg, true, NULL, 0); in hclgevf_enable_vlan_filter()
1230 struct hclge_vf_to_pf_msg send_msg; in hclgevf_set_vlan_filter() local
1251 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_SET_VLAN, in hclgevf_set_vlan_filter()
1253 vlan_filter = (struct hclge_mbx_vlan_filter *)send_msg.data; in hclgevf_set_vlan_filter()
1262 ret = hclgevf_send_mbx_msg(hdev, &send_msg, true, NULL, 0); in hclgevf_set_vlan_filter()
1300 struct hclge_vf_to_pf_msg send_msg; in hclgevf_en_hw_strip_rxvtag() local
1302 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_SET_VLAN, in hclgevf_en_hw_strip_rxvtag()
1304 send_msg.data[0] = enable ? 1 : 0; in hclgevf_en_hw_strip_rxvtag()
1305 return hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_en_hw_strip_rxvtag()
1312 struct hclge_vf_to_pf_msg send_msg; in hclgevf_reset_tqp() local
1325 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_QUEUE_RESET, 0); in hclgevf_reset_tqp()
1327 ret = hclgevf_send_mbx_msg(hdev, &send_msg, true, &return_status, in hclgevf_reset_tqp()
1333 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_QUEUE_RESET, 0); in hclgevf_reset_tqp()
1334 *(__le16 *)send_msg.data = cpu_to_le16(i); in hclgevf_reset_tqp()
1335 ret = hclgevf_send_mbx_msg(hdev, &send_msg, true, NULL, 0); in hclgevf_reset_tqp()
1347 struct hclge_vf_to_pf_msg send_msg; in hclgevf_set_mtu() local
1349 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_SET_MTU, 0); in hclgevf_set_mtu()
1350 mtu_info = (struct hclge_mbx_mtu_info *)send_msg.data; in hclgevf_set_mtu()
1353 return hclgevf_send_mbx_msg(hdev, &send_msg, true, NULL, 0); in hclgevf_set_mtu()
1488 struct hclge_vf_to_pf_msg send_msg; in hclgevf_reset_prepare_wait() local
1491 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_RESET, 0); in hclgevf_reset_prepare_wait()
1492 ret = hclgevf_send_mbx_msg(hdev, &send_msg, true, NULL, 0); in hclgevf_reset_prepare_wait()
1885 struct hclge_vf_to_pf_msg send_msg; in hclgevf_keep_alive() local
1891 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_KEEP_ALIVE, 0); in hclgevf_keep_alive()
1892 ret = hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_keep_alive()
2261 struct hclge_vf_to_pf_msg send_msg; in hclgevf_set_alive() local
2263 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_SET_ALIVE, 0); in hclgevf_set_alive()
2264 send_msg.data[0] = alive ? HCLGEVF_STATE_ALIVE : in hclgevf_set_alive()
2266 return hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_set_alive()
2805 struct hclge_vf_to_pf_msg send_msg; in hclgevf_clear_vport_list() local
2807 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_HANDLE_VF_TBL, in hclgevf_clear_vport_list()
2809 return hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_clear_vport_list()
3010 struct hclge_vf_to_pf_msg send_msg; in hclgevf_uninit_hdev() local
3015 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_VF_UNINIT, 0); in hclgevf_uninit_hdev()
3016 hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_uninit_hdev()
3272 struct hclge_vf_to_pf_msg send_msg; in hclgevf_update_port_base_vlan_info() local
3292 hclgevf_build_send_msg(&send_msg, HCLGE_MBX_SET_VLAN, in hclgevf_update_port_base_vlan_info()
3294 memcpy(send_msg.data, port_base_vlan, sizeof(*port_base_vlan)); in hclgevf_update_port_base_vlan_info()
3295 ret = hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0); in hclgevf_update_port_base_vlan_info()