Lines Matching refs:cgrid
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()
2189 mcc->cgr.cgid = cgr->cgrid; in qman_query_cgr()
2366 mcc->initcgr.cgid = cgr->cgrid; in qm_modify_cgr()
2411 for (cgr.cgrid = 0; cgr.cgrid < CGR_NUM; cgr.cgrid++) { in qman_init_cgr_all()
2434 if (cgr->cgrid >= CGR_NUM) in qman_create_cgr()
2439 qman_cgr_cpus[cgr->cgrid] = smp_processor_id(); in qman_create_cgr()
2477 qman_cgrs_get(&p->cgrs[1], cgr->cgrid)) in qman_create_cgr()
2512 if (i->cgrid == cgr->cgrid && i->cb) in qman_delete_cgr()
2550 if (qman_cgr_cpus[cgr->cgrid] != smp_processor_id()) { in qman_delete_cgr_safe()
2551 smp_call_function_single(qman_cgr_cpus[cgr->cgrid], in qman_delete_cgr_safe()
2944 static int cgr_cleanup(u32 cgrid) in cgr_cleanup() argument
2972 fqd.cgid == cgrid) { in cgr_cleanup()
2974 cgrid, fq.fqid); in cgr_cleanup()
2983 int qman_release_cgrid(u32 cgrid) in qman_release_cgrid() argument
2987 ret = cgr_cleanup(cgrid); in qman_release_cgrid()
2989 pr_debug("CGRID %d leaked\n", cgrid); in qman_release_cgrid()
2993 gen_pool_free(qm_cgralloc, cgrid | DPAA_GENALLOC_OFF, 1); in qman_release_cgrid()