Lines Matching refs:mbx
9 struct cpt_mbox *mbx) in cpt_send_msg_to_vf() argument
13 mbx->data); in cpt_send_msg_to_vf()
14 cpt_write_csr64(cpt->reg_base, CPTX_PF_VFX_MBOXX(0, vf, 0), mbx->msg); in cpt_send_msg_to_vf()
21 struct cpt_mbox *mbx) in cpt_mbox_send_ack() argument
23 mbx->data = 0ull; in cpt_mbox_send_ack()
24 mbx->msg = CPT_MBOX_MSG_TYPE_ACK; in cpt_mbox_send_ack()
25 cpt_send_msg_to_vf(cpt, vf, mbx); in cpt_mbox_send_ack()
89 struct cpt_mbox mbx = {}; in cpt_handle_mbox_intr() local
96 mbx.msg = cpt_read_csr64(cpt->reg_base, CPTX_PF_VFX_MBOXX(0, vf, 0)); in cpt_handle_mbox_intr()
97 mbx.data = cpt_read_csr64(cpt->reg_base, CPTX_PF_VFX_MBOXX(0, vf, 1)); in cpt_handle_mbox_intr()
98 dev_dbg(dev, "%s: Mailbox msg 0x%llx from VF%d", __func__, mbx.msg, vf); in cpt_handle_mbox_intr()
99 switch (mbx.msg) { in cpt_handle_mbox_intr()
103 cpt_mbox_send_ack(cpt, vf, &mbx); in cpt_handle_mbox_intr()
106 mbx.msg = CPT_MSG_READY; in cpt_handle_mbox_intr()
107 mbx.data = vf; in cpt_handle_mbox_intr()
108 cpt_send_msg_to_vf(cpt, vf, &mbx); in cpt_handle_mbox_intr()
114 cpt_mbox_send_ack(cpt, vf, &mbx); in cpt_handle_mbox_intr()
117 vfx->qlen = mbx.data; in cpt_handle_mbox_intr()
119 cpt_mbox_send_ack(cpt, vf, &mbx); in cpt_handle_mbox_intr()
122 vftype = cpt_bind_vq_to_grp(cpt, vf, (u8)mbx.data); in cpt_handle_mbox_intr()
125 vf, mbx.data); in cpt_handle_mbox_intr()
128 vf, mbx.data); in cpt_handle_mbox_intr()
129 mbx.msg = CPT_MSG_QBIND_GRP; in cpt_handle_mbox_intr()
130 mbx.data = vftype; in cpt_handle_mbox_intr()
131 cpt_send_msg_to_vf(cpt, vf, &mbx); in cpt_handle_mbox_intr()
135 vfx->priority = mbx.data; in cpt_handle_mbox_intr()
137 cpt_mbox_send_ack(cpt, vf, &mbx); in cpt_handle_mbox_intr()
141 vf, mbx.msg); in cpt_handle_mbox_intr()
146 void cpt_mbox_intr_handler (struct cpt_device *cpt, int mbx) in cpt_mbox_intr_handler() argument
152 dev_dbg(&cpt->pdev->dev, "PF interrupt Mbox%d 0x%llx\n", mbx, intr); in cpt_mbox_intr_handler()