Lines Matching refs:vchnl_req

50 							struct i40iw_virtchnl_req *vchnl_req)  in vchnl_vf_send_get_ver_req()  argument
53 struct i40iw_virtchnl_op_buf *vchnl_msg = vchnl_req->vchnl_msg; in vchnl_vf_send_get_ver_req()
59 vchnl_msg->iw_chnl_op_ctx = (uintptr_t)vchnl_req; in vchnl_vf_send_get_ver_req()
76 struct i40iw_virtchnl_req *vchnl_req) in vchnl_vf_send_get_hmc_fcn_req() argument
79 struct i40iw_virtchnl_op_buf *vchnl_msg = vchnl_req->vchnl_msg; in vchnl_vf_send_get_hmc_fcn_req()
85 vchnl_msg->iw_chnl_op_ctx = (uintptr_t)vchnl_req; in vchnl_vf_send_get_hmc_fcn_req()
102 struct i40iw_virtchnl_req *vchnl_req) in vchnl_vf_send_get_pe_stats_req() argument
105 struct i40iw_virtchnl_op_buf *vchnl_msg = vchnl_req->vchnl_msg; in vchnl_vf_send_get_pe_stats_req()
111 vchnl_msg->iw_chnl_op_ctx = (uintptr_t)vchnl_req; in vchnl_vf_send_get_pe_stats_req()
128 struct i40iw_virtchnl_req *vchnl_req, in vchnl_vf_send_add_hmc_objs_req() argument
134 struct i40iw_virtchnl_op_buf *vchnl_msg = vchnl_req->vchnl_msg; in vchnl_vf_send_add_hmc_objs_req()
143 vchnl_msg->iw_chnl_op_ctx = (uintptr_t)vchnl_req; in vchnl_vf_send_add_hmc_objs_req()
166 struct i40iw_virtchnl_req *vchnl_req, in vchnl_vf_send_del_hmc_objs_req() argument
172 struct i40iw_virtchnl_op_buf *vchnl_msg = vchnl_req->vchnl_msg; in vchnl_vf_send_del_hmc_objs_req()
181 vchnl_msg->iw_chnl_op_ctx = (uintptr_t)vchnl_req; in vchnl_vf_send_del_hmc_objs_req()
567 struct i40iw_virtchnl_req *vchnl_req; in i40iw_vchnl_recv_vf() local
569 vchnl_req = (struct i40iw_virtchnl_req *)(uintptr_t)vchnl_msg_resp->iw_chnl_op_ctx; in i40iw_vchnl_recv_vf()
570 vchnl_req->ret_code = (enum i40iw_status_code)vchnl_msg_resp->iw_op_ret_code; in i40iw_vchnl_recv_vf()
571 if (len == (sizeof(*vchnl_msg_resp) + vchnl_req->parm_len - 1)) { in i40iw_vchnl_recv_vf()
572 if (vchnl_req->parm_len && vchnl_req->parm) in i40iw_vchnl_recv_vf()
573 memcpy(vchnl_req->parm, vchnl_msg_resp->iw_chnl_buf, vchnl_req->parm_len); in i40iw_vchnl_recv_vf()
576 vchnl_req->parm_len); in i40iw_vchnl_recv_vf()
580 len, (u32)(sizeof(*vchnl_msg_resp) + vchnl_req->parm_len - 1)); in i40iw_vchnl_recv_vf()
594 struct i40iw_virtchnl_req vchnl_req; in i40iw_vchnl_vf_get_ver() local
599 memset(&vchnl_req, 0, sizeof(vchnl_req)); in i40iw_vchnl_vf_get_ver()
600 vchnl_req.dev = dev; in i40iw_vchnl_vf_get_ver()
601 vchnl_req.parm = vchnl_ver; in i40iw_vchnl_vf_get_ver()
602 vchnl_req.parm_len = sizeof(*vchnl_ver); in i40iw_vchnl_vf_get_ver()
603 vchnl_req.vchnl_msg = &dev->vchnl_vf_msg_buf.vchnl_msg; in i40iw_vchnl_vf_get_ver()
605 ret_code = vchnl_vf_send_get_ver_req(dev, &vchnl_req); in i40iw_vchnl_vf_get_ver()
615 return vchnl_req.ret_code; in i40iw_vchnl_vf_get_ver()
626 struct i40iw_virtchnl_req vchnl_req; in i40iw_vchnl_vf_get_hmc_fcn() local
631 memset(&vchnl_req, 0, sizeof(vchnl_req)); in i40iw_vchnl_vf_get_hmc_fcn()
632 vchnl_req.dev = dev; in i40iw_vchnl_vf_get_hmc_fcn()
633 vchnl_req.parm = hmc_fcn; in i40iw_vchnl_vf_get_hmc_fcn()
634 vchnl_req.parm_len = sizeof(*hmc_fcn); in i40iw_vchnl_vf_get_hmc_fcn()
635 vchnl_req.vchnl_msg = &dev->vchnl_vf_msg_buf.vchnl_msg; in i40iw_vchnl_vf_get_hmc_fcn()
637 ret_code = vchnl_vf_send_get_hmc_fcn_req(dev, &vchnl_req); in i40iw_vchnl_vf_get_hmc_fcn()
647 return vchnl_req.ret_code; in i40iw_vchnl_vf_get_hmc_fcn()
662 struct i40iw_virtchnl_req vchnl_req; in i40iw_vchnl_vf_add_hmc_objs() local
667 memset(&vchnl_req, 0, sizeof(vchnl_req)); in i40iw_vchnl_vf_add_hmc_objs()
668 vchnl_req.dev = dev; in i40iw_vchnl_vf_add_hmc_objs()
669 vchnl_req.vchnl_msg = &dev->vchnl_vf_msg_buf.vchnl_msg; in i40iw_vchnl_vf_add_hmc_objs()
672 &vchnl_req, in i40iw_vchnl_vf_add_hmc_objs()
685 return vchnl_req.ret_code; in i40iw_vchnl_vf_add_hmc_objs()
700 struct i40iw_virtchnl_req vchnl_req; in i40iw_vchnl_vf_del_hmc_obj() local
705 memset(&vchnl_req, 0, sizeof(vchnl_req)); in i40iw_vchnl_vf_del_hmc_obj()
706 vchnl_req.dev = dev; in i40iw_vchnl_vf_del_hmc_obj()
707 vchnl_req.vchnl_msg = &dev->vchnl_vf_msg_buf.vchnl_msg; in i40iw_vchnl_vf_del_hmc_obj()
710 &vchnl_req, in i40iw_vchnl_vf_del_hmc_obj()
723 return vchnl_req.ret_code; in i40iw_vchnl_vf_del_hmc_obj()
734 struct i40iw_virtchnl_req vchnl_req; in i40iw_vchnl_vf_get_pe_stats() local
739 memset(&vchnl_req, 0, sizeof(vchnl_req)); in i40iw_vchnl_vf_get_pe_stats()
740 vchnl_req.dev = dev; in i40iw_vchnl_vf_get_pe_stats()
741 vchnl_req.parm = hw_stats; in i40iw_vchnl_vf_get_pe_stats()
742 vchnl_req.parm_len = sizeof(*hw_stats); in i40iw_vchnl_vf_get_pe_stats()
743 vchnl_req.vchnl_msg = &dev->vchnl_vf_msg_buf.vchnl_msg; in i40iw_vchnl_vf_get_pe_stats()
745 ret_code = vchnl_vf_send_get_pe_stats_req(dev, &vchnl_req); in i40iw_vchnl_vf_get_pe_stats()
755 return vchnl_req.ret_code; in i40iw_vchnl_vf_get_pe_stats()