Home
last modified time | relevance | path

Searched refs:cgr (Results 1 – 6 of 6) sorted by relevance

/drivers/soc/fsl/qbman/
Dqman.c269 struct qm_mcc_cgr cgr; member
1457 struct qman_cgr *cgr; in qm_congestion_task() local
1476 list_for_each_entry(cgr, &p->cgr_cbs, node) in qm_congestion_task()
1477 if (cgr->cb && qman_cgrs_get(&c, cgr->cgrid)) in qm_congestion_task()
1478 cgr->cb(p, cgr, qman_cgrs_get(&rr, cgr->cgrid)); in qm_congestion_task()
2180 static int qman_query_cgr(struct qman_cgr *cgr, in qman_query_cgr() argument
2189 mcc->cgr.cgid = cgr->cgrid; in qman_query_cgr()
2208 int qman_query_cgr_congested(struct qman_cgr *cgr, bool *result) in qman_query_cgr_congested() argument
2213 err = qman_query_cgr(cgr, &query_cgr); in qman_query_cgr_congested()
2217 *result = !!query_cgr.cgr.cs; in qman_query_cgr_congested()
[all …]
Dqman_priv.h72 struct __qm_mc_cgr cgr; /* CGR fields */ member
118 static inline int qman_cgrs_get(struct qman_cgrs *c, u8 cgr) in qman_cgrs_get() argument
120 return c->q.state[CGR_WORD(cgr)] & CGR_BIT(cgr); in qman_cgrs_get()
/drivers/crypto/caam/
Dqi.c65 struct qman_cgr cgr; member
199 opts.fqd.cgid = qipriv.cgr.cgrid; in create_caam_req_fq()
528 qman_delete_cgr_safe(&priv->cgr); in caam_qi_shutdown()
529 qman_release_cgrid(priv->cgr.cgrid); in caam_qi_shutdown()
534 static void cgr_cb(struct qman_portal *qm, struct qman_cgr *cgr, int congested) in cgr_cb() argument
638 opts.fqd.cgid = qipriv.cgr.cgrid; in alloc_rsp_fq_cpu()
663 ret = qman_alloc_cgrid(&qipriv.cgr.cgrid); in init_cgr()
669 qipriv.cgr.cb = cgr_cb; in init_cgr()
673 opts.cgr.cscn_en = QM_CGR_EN; in init_cgr()
674 opts.cgr.mode = QMAN_CGR_MODE_FRAME; in init_cgr()
[all …]
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c817 static void dpaa_eth_cgscn(struct qman_portal *qm, struct qman_cgr *cgr, in dpaa_eth_cgscn() argument
820 struct dpaa_priv *priv = (struct dpaa_priv *)container_of(cgr, in dpaa_eth_cgscn()
821 struct dpaa_priv, cgr_data.cgr); in dpaa_eth_cgscn()
840 err = qman_alloc_cgrid(&priv->cgr_data.cgr.cgrid); in dpaa_eth_cgr_init()
847 priv->cgr_data.cgr.cb = dpaa_eth_cgscn; in dpaa_eth_cgr_init()
852 initcgr.cgr.cscn_en = QM_CGR_EN; in dpaa_eth_cgr_init()
863 qm_cgr_cs_thres_set64(&initcgr.cgr.cs_thres, cs_th, 1); in dpaa_eth_cgr_init()
866 initcgr.cgr.cstd_en = QM_CGR_EN; in dpaa_eth_cgr_init()
868 err = qman_create_cgr(&priv->cgr_data.cgr, QMAN_CGR_FLAG_USE_INIT, in dpaa_eth_cgr_init()
873 __func__, err, priv->cgr_data.cgr.cgrid); in dpaa_eth_cgr_init()
[all …]
Ddpaa_eth.h183 struct qman_cgr cgr; member
Ddpaa_ethtool.c313 if (qman_query_cgr_congested(&priv->cgr_data.cgr, &cg_status) == 0) { in dpaa_get_ethtool_stats()