Lines Matching refs:mcr
919 union qm_mc_result **mcr) in qm_mc_result_timeout() argument
924 *mcr = qm_mc_result(portal); in qm_mc_result_timeout()
925 if (*mcr) in qm_mc_result_timeout()
1380 union qm_mc_result *mcr; in qm_congestion_task() local
1386 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qm_congestion_task()
1392 qman_cgrs_and(&rr, (struct qman_cgrs *)&mcr->querycongestion.state, in qm_congestion_task()
1768 union qm_mc_result *mcr; in qman_init_fq() local
1835 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_init_fq()
1841 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == myverb); in qman_init_fq()
1842 res = mcr->result; in qman_init_fq()
1869 union qm_mc_result *mcr; in qman_schedule_fq() local
1889 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_schedule_fq()
1895 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == QM_MCR_VERB_ALTER_SCHED); in qman_schedule_fq()
1896 if (mcr->result != QM_MCR_RESULT_OK) { in qman_schedule_fq()
1910 union qm_mc_result *mcr; in qman_retire_fq() local
1932 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_retire_fq()
1938 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == QM_MCR_VERB_ALTER_RETIRE); in qman_retire_fq()
1939 res = mcr->result; in qman_retire_fq()
1952 if (mcr->alterfq.fqs & QM_MCR_FQS_NOTEMPTY) in qman_retire_fq()
1954 if (mcr->alterfq.fqs & QM_MCR_FQS_ORLPRESENT) in qman_retire_fq()
1972 msg.fq.fqs = mcr->alterfq.fqs; in qman_retire_fq()
1992 union qm_mc_result *mcr; in qman_oos_fq() local
2011 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_oos_fq()
2015 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == QM_MCR_VERB_ALTER_OOS); in qman_oos_fq()
2016 if (mcr->result != QM_MCR_RESULT_OK) { in qman_oos_fq()
2030 union qm_mc_result *mcr; in qman_query_fq() local
2037 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_query_fq()
2042 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == QM_MCR_VERB_QUERYFQ); in qman_query_fq()
2043 if (mcr->result == QM_MCR_RESULT_OK) in qman_query_fq()
2044 *fqd = mcr->queryfq.fqd; in qman_query_fq()
2056 union qm_mc_result *mcr; in qman_query_fq_np() local
2063 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_query_fq_np()
2068 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == QM_MCR_VERB_QUERYFQ_NP); in qman_query_fq_np()
2069 if (mcr->result == QM_MCR_RESULT_OK) in qman_query_fq_np()
2070 *np = mcr->queryfq_np; in qman_query_fq_np()
2071 else if (mcr->result == QM_MCR_RESULT_ERR_FQID) in qman_query_fq_np()
2084 union qm_mc_result *mcr; in qman_query_cgr() local
2091 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_query_cgr()
2095 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == QM_MCC_VERB_QUERYCGR); in qman_query_cgr()
2096 if (mcr->result == QM_MCR_RESULT_OK) in qman_query_cgr()
2097 *cgrd = mcr->querycgr; in qman_query_cgr()
2100 mcr_result_str(mcr->result)); in qman_query_cgr()
2258 union qm_mc_result *mcr; in qm_modify_cgr() local
2270 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qm_modify_cgr()
2275 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == verb); in qm_modify_cgr()
2276 if (mcr->result != QM_MCR_RESULT_OK) in qm_modify_cgr()
2513 union qm_mc_result *mcr; in qman_shutdown_fq() local
2524 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_shutdown_fq()
2530 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == QM_MCR_VERB_QUERYFQ_NP); in qman_shutdown_fq()
2531 state = mcr->queryfq_np.state & QM_MCR_NP_STATE_MASK; in qman_shutdown_fq()
2539 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_shutdown_fq()
2545 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == QM_MCR_VERB_QUERYFQ); in qman_shutdown_fq()
2547 channel = qm_fqd_get_chan(&mcr->queryfq.fqd); in qman_shutdown_fq()
2548 wq = qm_fqd_get_wq(&mcr->queryfq.fqd); in qman_shutdown_fq()
2559 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_shutdown_fq()
2564 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == in qman_shutdown_fq()
2566 res = mcr->result; /* Make a copy as we reuse MCR below */ in qman_shutdown_fq()
2621 if (!(mcr->alterfq.fqs & QM_MCR_FQS_ORLPRESENT)) { in qman_shutdown_fq()
2632 if (drain || mcr->alterfq.fqs & QM_MCR_FQS_NOTEMPTY) { in qman_shutdown_fq()
2654 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_shutdown_fq()
2659 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == in qman_shutdown_fq()
2661 if (mcr->result != QM_MCR_RESULT_OK) { in qman_shutdown_fq()
2663 fqid, mcr->result); in qman_shutdown_fq()
2674 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_shutdown_fq()
2679 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == in qman_shutdown_fq()
2681 if (mcr->result) { in qman_shutdown_fq()
2683 fqid, mcr->result); in qman_shutdown_fq()