Lines Matching refs:mb_params

645 	struct qed_mcp_mb_params mb_params;  in qed_mcp_cmd()  local
648 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_cmd()
649 mb_params.cmd = cmd; in qed_mcp_cmd()
650 mb_params.param = param; in qed_mcp_cmd()
652 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_cmd()
656 *o_mcp_resp = mb_params.mcp_resp; in qed_mcp_cmd()
657 *o_mcp_param = mb_params.mcp_param; in qed_mcp_cmd()
670 struct qed_mcp_mb_params mb_params; in qed_mcp_nvm_wr_cmd() local
673 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_nvm_wr_cmd()
674 mb_params.cmd = cmd; in qed_mcp_nvm_wr_cmd()
675 mb_params.param = param; in qed_mcp_nvm_wr_cmd()
676 mb_params.p_data_src = i_buf; in qed_mcp_nvm_wr_cmd()
677 mb_params.data_src_size = (u8)i_txn_size; in qed_mcp_nvm_wr_cmd()
678 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_nvm_wr_cmd()
682 *o_mcp_resp = mb_params.mcp_resp; in qed_mcp_nvm_wr_cmd()
683 *o_mcp_param = mb_params.mcp_param; in qed_mcp_nvm_wr_cmd()
698 struct qed_mcp_mb_params mb_params; in qed_mcp_nvm_rd_cmd() local
702 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_nvm_rd_cmd()
703 mb_params.cmd = cmd; in qed_mcp_nvm_rd_cmd()
704 mb_params.param = param; in qed_mcp_nvm_rd_cmd()
705 mb_params.p_data_dst = raw_data; in qed_mcp_nvm_rd_cmd()
708 mb_params.data_dst_size = MCP_DRV_NVM_BUF_LEN; in qed_mcp_nvm_rd_cmd()
710 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_nvm_rd_cmd()
714 *o_mcp_resp = mb_params.mcp_resp; in qed_mcp_nvm_rd_cmd()
715 *o_mcp_param = mb_params.mcp_param; in qed_mcp_nvm_rd_cmd()
824 struct qed_mcp_mb_params mb_params; in __qed_mcp_load_req() local
846 memset(&mb_params, 0, sizeof(mb_params)); in __qed_mcp_load_req()
847 mb_params.cmd = DRV_MSG_CODE_LOAD_REQ; in __qed_mcp_load_req()
848 mb_params.param = PDA_COMP | hsi_ver | p_hwfn->cdev->drv_type; in __qed_mcp_load_req()
849 mb_params.p_data_src = &load_req; in __qed_mcp_load_req()
850 mb_params.data_src_size = sizeof(load_req); in __qed_mcp_load_req()
851 mb_params.p_data_dst = &load_rsp; in __qed_mcp_load_req()
852 mb_params.data_dst_size = sizeof(load_rsp); in __qed_mcp_load_req()
853 mb_params.flags = QED_MB_FLAG_CAN_SLEEP | QED_MB_FLAG_AVOID_BLOCK; in __qed_mcp_load_req()
857 mb_params.param, in __qed_mcp_load_req()
858 QED_MFW_GET_FIELD(mb_params.param, DRV_ID_DRV_INIT_HW), in __qed_mcp_load_req()
859 QED_MFW_GET_FIELD(mb_params.param, DRV_ID_DRV_TYPE), in __qed_mcp_load_req()
860 QED_MFW_GET_FIELD(mb_params.param, DRV_ID_MCP_HSI_VER), in __qed_mcp_load_req()
861 QED_MFW_GET_FIELD(mb_params.param, DRV_ID_PDA_COMP_VER)); in __qed_mcp_load_req()
877 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in __qed_mcp_load_req()
884 "Load Response: resp 0x%08x\n", mb_params.mcp_resp); in __qed_mcp_load_req()
885 p_out_params->load_code = mb_params.mcp_resp; in __qed_mcp_load_req()
1096 struct qed_mcp_mb_params mb_params; in qed_mcp_unload_req() local
1115 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_unload_req()
1116 mb_params.cmd = DRV_MSG_CODE_UNLOAD_REQ; in qed_mcp_unload_req()
1117 mb_params.param = wol_param; in qed_mcp_unload_req()
1118 mb_params.flags = QED_MB_FLAG_CAN_SLEEP | QED_MB_FLAG_AVOID_BLOCK; in qed_mcp_unload_req()
1120 return qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_unload_req()
1125 struct qed_mcp_mb_params mb_params; in qed_mcp_unload_done() local
1128 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_unload_done()
1129 mb_params.cmd = DRV_MSG_CODE_UNLOAD_DONE; in qed_mcp_unload_done()
1145 mb_params.p_data_src = &wol_mac; in qed_mcp_unload_done()
1146 mb_params.data_src_size = sizeof(wol_mac); in qed_mcp_unload_done()
1149 return qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_unload_done()
1191 struct qed_mcp_mb_params mb_params; in qed_mcp_ack_vf_flr() local
1200 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_ack_vf_flr()
1201 mb_params.cmd = DRV_MSG_CODE_VF_DISABLED_DONE; in qed_mcp_ack_vf_flr()
1202 mb_params.p_data_src = vfs_to_ack; in qed_mcp_ack_vf_flr()
1203 mb_params.data_src_size = VF_MAX_STATIC / 8; in qed_mcp_ack_vf_flr()
1204 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_ack_vf_flr()
1479 struct qed_mcp_mb_params mb_params; in qed_mcp_set_link() local
1529 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_set_link()
1530 mb_params.cmd = cmd; in qed_mcp_set_link()
1531 mb_params.p_data_src = &phy_cfg; in qed_mcp_set_link()
1532 mb_params.data_src_size = sizeof(phy_cfg); in qed_mcp_set_link()
1533 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_set_link()
1612 struct qed_mcp_mb_params mb_params; in qed_mcp_send_protocol_stats() local
1639 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_send_protocol_stats()
1640 mb_params.cmd = DRV_MSG_CODE_GET_STATS; in qed_mcp_send_protocol_stats()
1641 mb_params.param = hsi_param; in qed_mcp_send_protocol_stats()
1642 mb_params.p_data_src = &stats; in qed_mcp_send_protocol_stats()
1643 mb_params.data_src_size = sizeof(stats); in qed_mcp_send_protocol_stats()
1644 qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_send_protocol_stats()
2488 struct qed_mcp_mb_params mb_params; in qed_mcp_send_drv_version() local
2501 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_send_drv_version()
2502 mb_params.cmd = DRV_MSG_CODE_SET_VERSION; in qed_mcp_send_drv_version()
2503 mb_params.p_data_src = &drv_version; in qed_mcp_send_drv_version()
2504 mb_params.data_src_size = sizeof(drv_version); in qed_mcp_send_drv_version()
2505 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_send_drv_version()
2654 struct qed_mcp_mb_params mb_params; in qed_mcp_ov_update_mac() local
2658 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_ov_update_mac()
2659 mb_params.cmd = DRV_MSG_CODE_SET_VMAC; in qed_mcp_ov_update_mac()
2660 mb_params.param = DRV_MSG_CODE_VMAC_TYPE_MAC << in qed_mcp_ov_update_mac()
2662 mb_params.param |= MCP_PF_ID(p_hwfn); in qed_mcp_ov_update_mac()
2672 mb_params.p_data_src = (u8 *)mfw_mac; in qed_mcp_ov_update_mac()
2673 mb_params.data_src_size = 8; in qed_mcp_ov_update_mac()
2674 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_ov_update_mac()
3315 struct qed_mcp_mb_params mb_params; in qed_mcp_resc_allocation_msg() local
3342 memset(&mb_params, 0, sizeof(mb_params)); in qed_mcp_resc_allocation_msg()
3343 mb_params.cmd = p_in_params->cmd; in qed_mcp_resc_allocation_msg()
3344 mb_params.param = QED_RESC_ALLOC_VERSION; in qed_mcp_resc_allocation_msg()
3345 mb_params.p_data_src = &mfw_resc_info; in qed_mcp_resc_allocation_msg()
3346 mb_params.data_src_size = sizeof(mfw_resc_info); in qed_mcp_resc_allocation_msg()
3347 mb_params.p_data_dst = mb_params.p_data_src; in qed_mcp_resc_allocation_msg()
3348 mb_params.data_dst_size = mb_params.data_src_size; in qed_mcp_resc_allocation_msg()
3356 QED_MFW_GET_FIELD(mb_params.param, in qed_mcp_resc_allocation_msg()
3358 QED_MFW_GET_FIELD(mb_params.param, in qed_mcp_resc_allocation_msg()
3362 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_resc_allocation_msg()
3366 p_out_params->mcp_resp = mb_params.mcp_resp; in qed_mcp_resc_allocation_msg()
3367 p_out_params->mcp_param = mb_params.mcp_param; in qed_mcp_resc_allocation_msg()
3691 struct qed_mcp_mb_params mb_params = {0}; in qed_mcp_get_engine_config() local
3696 mb_params.cmd = DRV_MSG_CODE_GET_ENGINE_CONFIG; in qed_mcp_get_engine_config()
3697 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_get_engine_config()
3701 if (mb_params.mcp_resp == FW_MSG_CODE_UNSUPPORTED) { in qed_mcp_get_engine_config()
3707 fir_valid = QED_MFW_GET_FIELD(mb_params.mcp_param, in qed_mcp_get_engine_config()
3711 QED_MFW_GET_FIELD(mb_params.mcp_param, in qed_mcp_get_engine_config()
3714 l2_valid = QED_MFW_GET_FIELD(mb_params.mcp_param, in qed_mcp_get_engine_config()
3718 QED_MFW_GET_FIELD(mb_params.mcp_param, in qed_mcp_get_engine_config()
3730 struct qed_mcp_mb_params mb_params = {0}; in qed_mcp_get_ppfid_bitmap() local
3734 mb_params.cmd = DRV_MSG_CODE_GET_PPFID_BITMAP; in qed_mcp_get_ppfid_bitmap()
3735 rc = qed_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params); in qed_mcp_get_ppfid_bitmap()
3739 if (mb_params.mcp_resp == FW_MSG_CODE_UNSUPPORTED) { in qed_mcp_get_ppfid_bitmap()
3745 cdev->ppfid_bitmap = QED_MFW_GET_FIELD(mb_params.mcp_param, in qed_mcp_get_ppfid_bitmap()