Lines Matching refs:ret_code
52 enum i40iw_status_code ret_code = I40IW_ERR_NOT_READY; in vchnl_vf_send_get_ver_req() local
56 return ret_code; in vchnl_vf_send_get_ver_req()
63 ret_code = dev->vchnl_if.vchnl_send(dev, 0, (u8 *)vchnl_msg, vchnl_msg->iw_chnl_buf_len); in vchnl_vf_send_get_ver_req()
64 if (ret_code) in vchnl_vf_send_get_ver_req()
66 "%s: virt channel send failed 0x%x\n", __func__, ret_code); in vchnl_vf_send_get_ver_req()
67 return ret_code; in vchnl_vf_send_get_ver_req()
78 enum i40iw_status_code ret_code = I40IW_ERR_NOT_READY; in vchnl_vf_send_get_hmc_fcn_req() local
82 return ret_code; in vchnl_vf_send_get_hmc_fcn_req()
89 ret_code = dev->vchnl_if.vchnl_send(dev, 0, (u8 *)vchnl_msg, vchnl_msg->iw_chnl_buf_len); in vchnl_vf_send_get_hmc_fcn_req()
90 if (ret_code) in vchnl_vf_send_get_hmc_fcn_req()
92 "%s: virt channel send failed 0x%x\n", __func__, ret_code); in vchnl_vf_send_get_hmc_fcn_req()
93 return ret_code; in vchnl_vf_send_get_hmc_fcn_req()
104 enum i40iw_status_code ret_code = I40IW_ERR_NOT_READY; in vchnl_vf_send_get_pe_stats_req() local
108 return ret_code; in vchnl_vf_send_get_pe_stats_req()
115 ret_code = dev->vchnl_if.vchnl_send(dev, 0, (u8 *)vchnl_msg, vchnl_msg->iw_chnl_buf_len); in vchnl_vf_send_get_pe_stats_req()
116 if (ret_code) in vchnl_vf_send_get_pe_stats_req()
118 "%s: virt channel send failed 0x%x\n", __func__, ret_code); in vchnl_vf_send_get_pe_stats_req()
119 return ret_code; in vchnl_vf_send_get_pe_stats_req()
133 enum i40iw_status_code ret_code = I40IW_ERR_NOT_READY; in vchnl_vf_send_add_hmc_objs_req() local
138 return ret_code; in vchnl_vf_send_add_hmc_objs_req()
150 ret_code = dev->vchnl_if.vchnl_send(dev, 0, (u8 *)vchnl_msg, vchnl_msg->iw_chnl_buf_len); in vchnl_vf_send_add_hmc_objs_req()
151 if (ret_code) in vchnl_vf_send_add_hmc_objs_req()
153 "%s: virt channel send failed 0x%x\n", __func__, ret_code); in vchnl_vf_send_add_hmc_objs_req()
154 return ret_code; in vchnl_vf_send_add_hmc_objs_req()
171 enum i40iw_status_code ret_code = I40IW_ERR_NOT_READY; in vchnl_vf_send_del_hmc_objs_req() local
176 return ret_code; in vchnl_vf_send_del_hmc_objs_req()
188 ret_code = dev->vchnl_if.vchnl_send(dev, 0, (u8 *)vchnl_msg, vchnl_msg->iw_chnl_buf_len); in vchnl_vf_send_del_hmc_objs_req()
189 if (ret_code) in vchnl_vf_send_del_hmc_objs_req()
191 "%s: virt channel send failed 0x%x\n", __func__, ret_code); in vchnl_vf_send_del_hmc_objs_req()
192 return ret_code; in vchnl_vf_send_del_hmc_objs_req()
205 enum i40iw_status_code ret_code; in vchnl_pf_send_get_ver_resp() local
214 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_get_ver_resp()
215 if (ret_code) in vchnl_pf_send_get_ver_resp()
217 "%s: virt channel send failed 0x%x\n", __func__, ret_code); in vchnl_pf_send_get_ver_resp()
231 enum i40iw_status_code ret_code; in vchnl_pf_send_get_hmc_fcn_resp() local
240 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_get_hmc_fcn_resp()
241 if (ret_code) in vchnl_pf_send_get_hmc_fcn_resp()
243 "%s: virt channel send failed 0x%x\n", __func__, ret_code); in vchnl_pf_send_get_hmc_fcn_resp()
259 enum i40iw_status_code ret_code; in vchnl_pf_send_get_pe_stats_resp() local
268 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_get_pe_stats_resp()
269 if (ret_code) in vchnl_pf_send_get_pe_stats_resp()
271 "%s: virt channel send failed 0x%x\n", __func__, ret_code); in vchnl_pf_send_get_pe_stats_resp()
284 enum i40iw_status_code ret_code; in vchnl_pf_send_error_resp() local
292 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_error_resp()
293 if (ret_code) in vchnl_pf_send_error_resp()
295 "%s: virt channel send failed 0x%x\n", __func__, ret_code); in vchnl_pf_send_error_resp()
343 enum i40iw_status_code ret_code; in pf_add_hmc_obj_callback() local
346 ret_code = i40iw_pf_init_vfhmc(vf_dev->pf_dev, (u8)vf_dev->pmf_index, NULL); in pf_add_hmc_obj_callback()
347 if (ret_code) in pf_add_hmc_obj_callback()
364 ret_code = i40iw_sc_create_hmc_obj(vf_dev->pf_dev, &info); in pf_add_hmc_obj_callback()
365 if (!ret_code) in pf_add_hmc_obj_callback()
369 vchnl_pf_send_error_resp(vf_dev->pf_dev, vf_dev->vf_id, vchnl_msg, (u16)ret_code); in pf_add_hmc_obj_callback()
383 enum i40iw_status_code ret_code = I40IW_SUCCESS; in pf_del_hmc_obj_callback() local
399 ret_code = i40iw_sc_del_hmc_obj(vf_dev->pf_dev, &info, false); in pf_del_hmc_obj_callback()
402 vchnl_pf_send_error_resp(vf_dev->pf_dev, vf_dev->vf_id, vchnl_msg, (u16)ret_code); in pf_del_hmc_obj_callback()
438 enum i40iw_status_code ret_code; in i40iw_vchnl_recv_pf() local
474 ret_code = i40iw_allocate_virt_mem(dev->hw, &vf_dev_mem, sizeof(struct i40iw_vfdev) + in i40iw_vchnl_recv_pf()
476 if (!ret_code) { in i40iw_vchnl_recv_pf()
503 ret_code = i40iw_cqp_manage_hmc_fcn_cmd(dev, &hmc_fcn_info); in i40iw_vchnl_recv_pf()
504 if (ret_code) in i40iw_vchnl_recv_pf()
570 vchnl_req->ret_code = (enum i40iw_status_code)vchnl_msg_resp->iw_op_ret_code; in i40iw_vchnl_recv_vf()
595 enum i40iw_status_code ret_code; in i40iw_vchnl_vf_get_ver() local
605 ret_code = vchnl_vf_send_get_ver_req(dev, &vchnl_req); in i40iw_vchnl_vf_get_ver()
606 if (ret_code) { in i40iw_vchnl_vf_get_ver()
608 "%s Send message failed 0x%0x\n", __func__, ret_code); in i40iw_vchnl_vf_get_ver()
609 return ret_code; in i40iw_vchnl_vf_get_ver()
611 ret_code = i40iw_vf_wait_vchnl_resp(dev); in i40iw_vchnl_vf_get_ver()
612 if (ret_code) in i40iw_vchnl_vf_get_ver()
613 return ret_code; in i40iw_vchnl_vf_get_ver()
615 return vchnl_req.ret_code; in i40iw_vchnl_vf_get_ver()
627 enum i40iw_status_code ret_code; in i40iw_vchnl_vf_get_hmc_fcn() local
637 ret_code = vchnl_vf_send_get_hmc_fcn_req(dev, &vchnl_req); in i40iw_vchnl_vf_get_hmc_fcn()
638 if (ret_code) { in i40iw_vchnl_vf_get_hmc_fcn()
640 "%s Send message failed 0x%0x\n", __func__, ret_code); in i40iw_vchnl_vf_get_hmc_fcn()
641 return ret_code; in i40iw_vchnl_vf_get_hmc_fcn()
643 ret_code = i40iw_vf_wait_vchnl_resp(dev); in i40iw_vchnl_vf_get_hmc_fcn()
644 if (ret_code) in i40iw_vchnl_vf_get_hmc_fcn()
645 return ret_code; in i40iw_vchnl_vf_get_hmc_fcn()
647 return vchnl_req.ret_code; in i40iw_vchnl_vf_get_hmc_fcn()
663 enum i40iw_status_code ret_code; in i40iw_vchnl_vf_add_hmc_objs() local
671 ret_code = vchnl_vf_send_add_hmc_objs_req(dev, in i40iw_vchnl_vf_add_hmc_objs()
676 if (ret_code) { in i40iw_vchnl_vf_add_hmc_objs()
678 "%s Send message failed 0x%0x\n", __func__, ret_code); in i40iw_vchnl_vf_add_hmc_objs()
679 return ret_code; in i40iw_vchnl_vf_add_hmc_objs()
681 ret_code = i40iw_vf_wait_vchnl_resp(dev); in i40iw_vchnl_vf_add_hmc_objs()
682 if (ret_code) in i40iw_vchnl_vf_add_hmc_objs()
683 return ret_code; in i40iw_vchnl_vf_add_hmc_objs()
685 return vchnl_req.ret_code; in i40iw_vchnl_vf_add_hmc_objs()
701 enum i40iw_status_code ret_code; in i40iw_vchnl_vf_del_hmc_obj() local
709 ret_code = vchnl_vf_send_del_hmc_objs_req(dev, in i40iw_vchnl_vf_del_hmc_obj()
714 if (ret_code) { in i40iw_vchnl_vf_del_hmc_obj()
716 "%s Send message failed 0x%0x\n", __func__, ret_code); in i40iw_vchnl_vf_del_hmc_obj()
717 return ret_code; in i40iw_vchnl_vf_del_hmc_obj()
719 ret_code = i40iw_vf_wait_vchnl_resp(dev); in i40iw_vchnl_vf_del_hmc_obj()
720 if (ret_code) in i40iw_vchnl_vf_del_hmc_obj()
721 return ret_code; in i40iw_vchnl_vf_del_hmc_obj()
723 return vchnl_req.ret_code; in i40iw_vchnl_vf_del_hmc_obj()
735 enum i40iw_status_code ret_code; in i40iw_vchnl_vf_get_pe_stats() local
745 ret_code = vchnl_vf_send_get_pe_stats_req(dev, &vchnl_req); in i40iw_vchnl_vf_get_pe_stats()
746 if (ret_code) { in i40iw_vchnl_vf_get_pe_stats()
748 "%s Send message failed 0x%0x\n", __func__, ret_code); in i40iw_vchnl_vf_get_pe_stats()
749 return ret_code; in i40iw_vchnl_vf_get_pe_stats()
751 ret_code = i40iw_vf_wait_vchnl_resp(dev); in i40iw_vchnl_vf_get_pe_stats()
752 if (ret_code) in i40iw_vchnl_vf_get_pe_stats()
753 return ret_code; in i40iw_vchnl_vf_get_pe_stats()
755 return vchnl_req.ret_code; in i40iw_vchnl_vf_get_pe_stats()