Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/soc/fsl/qbman/
Dqman.c267 struct qm_mcc_cgr cgr; member
1369 struct qman_cgr *cgr; in qm_congestion_task() local
1388 list_for_each_entry(cgr, &p->cgr_cbs, node) in qm_congestion_task()
1389 if (cgr->cb && qman_cgrs_get(&c, cgr->cgrid)) in qm_congestion_task()
1390 cgr->cb(p, cgr, qman_cgrs_get(&rr, cgr->cgrid)); in qm_congestion_task()
2085 static int qman_query_cgr(struct qman_cgr *cgr, in qman_query_cgr() argument
2094 mcc->cgr.cgid = cgr->cgrid; in qman_query_cgr()
2113 int qman_query_cgr_congested(struct qman_cgr *cgr, bool *result) in qman_query_cgr_congested() argument
2118 err = qman_query_cgr(cgr, &query_cgr); in qman_query_cgr_congested()
2122 *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()
/Linux-v4.19/drivers/crypto/caam/
Dqi.c64 struct qman_cgr cgr; member
197 opts.fqd.cgid = qipriv.cgr.cgrid; in create_caam_req_fq()
520 ret = qman_delete_cgr(&priv->cgr); in caam_qi_shutdown()
524 qman_release_cgrid(priv->cgr.cgrid); in caam_qi_shutdown()
535 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 …]
/Linux-v4.19/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c794 static void dpaa_eth_cgscn(struct qman_portal *qm, struct qman_cgr *cgr, in dpaa_eth_cgscn() argument
797 struct dpaa_priv *priv = (struct dpaa_priv *)container_of(cgr, in dpaa_eth_cgscn()
798 struct dpaa_priv, cgr_data.cgr); in dpaa_eth_cgscn()
817 err = qman_alloc_cgrid(&priv->cgr_data.cgr.cgrid); in dpaa_eth_cgr_init()
824 priv->cgr_data.cgr.cb = dpaa_eth_cgscn; in dpaa_eth_cgr_init()
829 initcgr.cgr.cscn_en = QM_CGR_EN; in dpaa_eth_cgr_init()
840 qm_cgr_cs_thres_set64(&initcgr.cgr.cs_thres, cs_th, 1); in dpaa_eth_cgr_init()
843 initcgr.cgr.cstd_en = QM_CGR_EN; in dpaa_eth_cgr_init()
845 err = qman_create_cgr(&priv->cgr_data.cgr, QMAN_CGR_FLAG_USE_INIT, in dpaa_eth_cgr_init()
850 __func__, err, priv->cgr_data.cgr.cgrid); in dpaa_eth_cgr_init()
[all …]
Ddpaa_eth.h169 struct qman_cgr cgr; member
Ddpaa_ethtool.c352 if (qman_query_cgr_congested(&priv->cgr_data.cgr, &cg_status) == 0) { in dpaa_get_ethtool_stats()
/Linux-v4.19/include/soc/fsl/
Dqman.h614 struct __qm_mc_cgr cgr; /* CGR fields */ member
778 struct qman_cgr *cgr, int congested);
1141 int qman_create_cgr(struct qman_cgr *cgr, u32 flags,
1152 int qman_delete_cgr(struct qman_cgr *cgr);
1160 void qman_delete_cgr_safe(struct qman_cgr *cgr);
1167 int qman_query_cgr_congested(struct qman_cgr *cgr, bool *result);
/Linux-v4.19/arch/s390/kernel/
Dswsusp.S190 cgr %r1,%r2
/Linux-v4.19/arch/s390/tools/
Dopcodes.txt501 b920 cgr RRE_RR