Lines Matching refs:ctlq_msg
91 struct idpf_ctlq_msg *ctlq_msg) in idpf_recv_event_msg() argument
93 int payload_size = ctlq_msg->ctx.indirect.payload->size; in idpf_recv_event_msg()
99 ctlq_msg->cookie.mbx.chnl_opcode, in idpf_recv_event_msg()
104 v2e = (struct virtchnl2_event *)ctlq_msg->ctx.indirect.payload->va; in idpf_recv_event_msg()
189 struct idpf_ctlq_msg *ctlq_msg) in idpf_prepare_ptp_mb_msg() argument
197 ctlq_msg->opcode = idpf_mbq_opc_send_msg_to_peer_drv; in idpf_prepare_ptp_mb_msg()
198 ctlq_msg->func_id = adapter->ptp->secondary_mbx.peer_mbx_q_id; in idpf_prepare_ptp_mb_msg()
199 ctlq_msg->host_id = adapter->ptp->secondary_mbx.peer_id; in idpf_prepare_ptp_mb_msg()
203 struct idpf_ctlq_msg *ctlq_msg) in idpf_prepare_ptp_mb_msg() argument
222 struct idpf_ctlq_msg *ctlq_msg; in idpf_send_mb_msg() local
238 ctlq_msg = kzalloc(sizeof(*ctlq_msg), GFP_ATOMIC); in idpf_send_mb_msg()
239 if (!ctlq_msg) in idpf_send_mb_msg()
248 ctlq_msg->opcode = idpf_mbq_opc_send_msg_to_cp; in idpf_send_mb_msg()
249 ctlq_msg->func_id = 0; in idpf_send_mb_msg()
251 idpf_prepare_ptp_mb_msg(adapter, op, ctlq_msg); in idpf_send_mb_msg()
253 ctlq_msg->data_len = msg_size; in idpf_send_mb_msg()
254 ctlq_msg->cookie.mbx.chnl_opcode = op; in idpf_send_mb_msg()
255 ctlq_msg->cookie.mbx.chnl_retval = 0; in idpf_send_mb_msg()
267 ctlq_msg->ctx.indirect.payload = dma_mem; in idpf_send_mb_msg()
268 ctlq_msg->ctx.sw_cookie.data = cookie; in idpf_send_mb_msg()
270 err = idpf_ctlq_send(&adapter->hw, adapter->hw.asq, 1, ctlq_msg); in idpf_send_mb_msg()
282 kfree(ctlq_msg); in idpf_send_mb_msg()
534 const struct idpf_ctlq_msg *ctlq_msg) in idpf_vc_xn_forward_async() argument
538 if (ctlq_msg->cookie.mbx.chnl_opcode != xn->vc_op) { in idpf_vc_xn_forward_async()
540 ctlq_msg->cookie.mbx.chnl_opcode, xn->vc_op); in idpf_vc_xn_forward_async()
547 err = xn->async_handler(adapter, xn, ctlq_msg); in idpf_vc_xn_forward_async()
551 if (ctlq_msg->cookie.mbx.chnl_retval) { in idpf_vc_xn_forward_async()
554 ctlq_msg->cookie.mbx.chnl_opcode); in idpf_vc_xn_forward_async()
571 const struct idpf_ctlq_msg *ctlq_msg) in idpf_vc_xn_forward_reply() argument
581 msg_info = ctlq_msg->ctx.sw_cookie.data; in idpf_vc_xn_forward_reply()
594 ctlq_msg->cookie.mbx.chnl_opcode, salt); in idpf_vc_xn_forward_reply()
605 ctlq_msg->cookie.mbx.chnl_opcode); in idpf_vc_xn_forward_reply()
617 err = idpf_vc_xn_forward_async(adapter, xn, ctlq_msg); in idpf_vc_xn_forward_reply()
622 ctlq_msg->cookie.mbx.chnl_opcode); in idpf_vc_xn_forward_reply()
627 if (ctlq_msg->cookie.mbx.chnl_opcode != xn->vc_op) { in idpf_vc_xn_forward_reply()
629 ctlq_msg->cookie.mbx.chnl_opcode, xn->vc_op); in idpf_vc_xn_forward_reply()
636 if (ctlq_msg->cookie.mbx.chnl_retval) { in idpf_vc_xn_forward_reply()
643 if (ctlq_msg->data_len) { in idpf_vc_xn_forward_reply()
644 payload = ctlq_msg->ctx.indirect.payload->va; in idpf_vc_xn_forward_reply()
645 payload_size = ctlq_msg->data_len; in idpf_vc_xn_forward_reply()
672 struct idpf_ctlq_msg ctlq_msg; in idpf_recv_mb_msg() local
682 err = idpf_ctlq_recv(adapter->hw.arq, &num_recv, &ctlq_msg); in idpf_recv_mb_msg()
686 if (ctlq_msg.data_len) { in idpf_recv_mb_msg()
687 dma_mem = ctlq_msg.ctx.indirect.payload; in idpf_recv_mb_msg()
693 if (ctlq_msg.cookie.mbx.chnl_opcode == VIRTCHNL2_OP_EVENT) in idpf_recv_mb_msg()
694 idpf_recv_event_msg(adapter, &ctlq_msg); in idpf_recv_mb_msg()
696 err = idpf_vc_xn_forward_reply(adapter, &ctlq_msg); in idpf_recv_mb_msg()
3782 const struct idpf_ctlq_msg *ctlq_msg) in idpf_mac_filter_async_handler() argument
3794 if (!ctlq_msg->cookie.mbx.chnl_retval) in idpf_mac_filter_async_handler()
3801 ma_list = ctlq_msg->ctx.indirect.payload->va; in idpf_mac_filter_async_handler()