Home
last modified time | relevance | path

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

/linux-6.1.9/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()
/linux-6.1.9/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 …]
/linux-6.1.9/include/soc/fsl/
Dqman.h615 struct __qm_mc_cgr cgr; /* CGR fields */ member
780 struct qman_cgr *cgr, int congested);
1153 int qman_create_cgr(struct qman_cgr *cgr, u32 flags,
1164 int qman_delete_cgr(struct qman_cgr *cgr);
1172 void qman_delete_cgr_safe(struct qman_cgr *cgr);
1181 int qman_update_cgr_safe(struct qman_cgr *cgr, struct qm_mcc_initcgr *opts);
1188 int qman_query_cgr_congested(struct qman_cgr *cgr, bool *result);
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c797 static void dpaa_eth_cgscn(struct qman_portal *qm, struct qman_cgr *cgr, in dpaa_eth_cgscn() argument
800 struct dpaa_priv *priv = (struct dpaa_priv *)container_of(cgr, in dpaa_eth_cgscn()
801 struct dpaa_priv, cgr_data.cgr); in dpaa_eth_cgscn()
820 err = qman_alloc_cgrid(&priv->cgr_data.cgr.cgrid); in dpaa_eth_cgr_init()
827 priv->cgr_data.cgr.cb = dpaa_eth_cgscn; in dpaa_eth_cgr_init()
832 initcgr.cgr.cscn_en = QM_CGR_EN; in dpaa_eth_cgr_init()
843 qm_cgr_cs_thres_set64(&initcgr.cgr.cs_thres, cs_th, 1); in dpaa_eth_cgr_init()
846 initcgr.cgr.cstd_en = QM_CGR_EN; in dpaa_eth_cgr_init()
848 err = qman_create_cgr(&priv->cgr_data.cgr, QMAN_CGR_FLAG_USE_INIT, in dpaa_eth_cgr_init()
853 __func__, err, priv->cgr_data.cgr.cgrid); in dpaa_eth_cgr_init()
[all …]
Ddpaa_eth.h158 struct qman_cgr cgr; member
Ddpaa_ethtool.c287 if (qman_query_cgr_congested(&priv->cgr_data.cgr, &cg_status) == 0) { in dpaa_get_ethtool_stats()
/linux-6.1.9/arch/s390/purgatory/
Dhead.S50 cgr \len,%r0
/linux-6.1.9/arch/s390/tools/
Dopcodes.txt511 b920 cgr RRE_RR