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()
2522 if (i->cgrid == cgr->cgrid && i->cb) in qman_delete_cgr()
2559 if (qman_cgr_cpus[cgr->cgrid] != smp_processor_id()) { in qman_delete_cgr_safe()
2560 smp_call_function_single(qman_cgr_cpus[cgr->cgrid], in qman_delete_cgr_safe()
2608 if (qman_cgr_cpus[cgr->cgrid] != smp_processor_id()) in qman_update_cgr_safe()
2609 smp_call_function_single(qman_cgr_cpus[cgr->cgrid], in qman_update_cgr_safe()
3001 static int cgr_cleanup(u32 cgrid) in cgr_cleanup() argument
3029 fqd.cgid == cgrid) { in cgr_cleanup()
3031 cgrid, fq.fqid); in cgr_cleanup()
3040 int qman_release_cgrid(u32 cgrid) in qman_release_cgrid() argument
3044 ret = cgr_cleanup(cgrid); in qman_release_cgrid()
3046 pr_debug("CGRID %d leaked\n", cgrid); in qman_release_cgrid()
3050 gen_pool_free(qm_cgralloc, cgrid | DPAA_GENALLOC_OFF, 1); in qman_release_cgrid()