Lines Matching refs:mbx
8 static void cptvf_send_msg_to_pf(struct cpt_vf *cptvf, struct cpt_mbox *mbx)
12 mbx->msg);
14 mbx->data);
20 struct cpt_mbox mbx = {};
26 mbx.msg = cpt_read_csr64(cptvf->reg_base, CPTX_VFX_PF_MBOXX(0, 0, 0));
27 mbx.data = cpt_read_csr64(cptvf->reg_base, CPTX_VFX_PF_MBOXX(0, 0, 1));
29 __func__, mbx.msg);
30 switch (mbx.msg) {
34 cptvf->vfid = mbx.data;
40 cptvf->vftype = mbx.data;
42 cptvf->vfid, ((mbx.data == SE_TYPES) ? "SE" : "AE"),
53 mbx.msg);
59 struct cpt_mbox *mbx)
66 cptvf_send_msg_to_pf(cptvf, mbx);
77 (mbx->msg & 0xFF), cptvf->vfid);
92 struct cpt_mbox mbx = {};
94 mbx.msg = CPT_MSG_READY;
95 if (cptvf_send_msg_to_pf_timeout(cptvf, &mbx)) {
110 struct cpt_mbox mbx = {};
112 mbx.msg = CPT_MSG_QLEN;
113 mbx.data = cptvf->qsize;
114 if (cptvf_send_msg_to_pf_timeout(cptvf, &mbx)) {
128 struct cpt_mbox mbx = {};
130 mbx.msg = CPT_MSG_QBIND_GRP;
132 mbx.data = cptvf->vfgrp;
133 if (cptvf_send_msg_to_pf_timeout(cptvf, &mbx)) {
147 struct cpt_mbox mbx = {};
149 mbx.msg = CPT_MSG_VQ_PRIORITY;
151 mbx.data = cptvf->priority;
152 if (cptvf_send_msg_to_pf_timeout(cptvf, &mbx)) {
165 struct cpt_mbox mbx = {};
167 mbx.msg = CPT_MSG_VF_UP;
168 if (cptvf_send_msg_to_pf_timeout(cptvf, &mbx)) {
182 struct cpt_mbox mbx = {};
184 mbx.msg = CPT_MSG_VF_DOWN;
185 if (cptvf_send_msg_to_pf_timeout(cptvf, &mbx)) {