Lines Matching refs:cgx
128 int cgx, lmac, iter; in rvu_map_cgx_lmac_pf() local
158 for (cgx = 0; cgx < cgx_cnt_max; cgx++) { in rvu_map_cgx_lmac_pf()
159 if (!rvu_cgx_pdata(cgx, rvu)) in rvu_map_cgx_lmac_pf()
161 lmac_bmap = cgx_get_lmac_bmap(rvu_cgx_pdata(cgx, rvu)); in rvu_map_cgx_lmac_pf()
163 lmac = cgx_get_lmacid(rvu_cgx_pdata(cgx, rvu), in rvu_map_cgx_lmac_pf()
165 rvu->pf2cgxlmac_map[pf] = cgxlmac_id_to_bmap(cgx, lmac); in rvu_map_cgx_lmac_pf()
166 rvu->cgxlmac2pf_map[CGX_OFFSET(cgx) + lmac] = 1 << pf; in rvu_map_cgx_lmac_pf()
169 rvu_map_cgx_nix_block(rvu, pf, cgx, lmac); in rvu_map_cgx_lmac_pf()
302 int cgx, lmac, err; in cgx_lmac_event_handler_init() local
317 for (cgx = 0; cgx <= rvu->cgx_cnt_max; cgx++) { in cgx_lmac_event_handler_init()
318 cgxd = rvu_cgx_pdata(cgx, rvu); in cgx_lmac_event_handler_init()
327 cgx, lmac); in cgx_lmac_event_handler_init()
344 int cgx, err; in rvu_cgx_init() local
362 for (cgx = 0; cgx < rvu->cgx_cnt_max; cgx++) in rvu_cgx_init()
363 rvu->cgx_idmap[cgx] = cgx_get_pdata(cgx); in rvu_cgx_init()
383 for (cgx = 0; cgx <= rvu->cgx_cnt_max; cgx++) { in rvu_cgx_init()
384 cgxd = rvu_cgx_pdata(cgx, rvu); in rvu_cgx_init()
391 cgx); in rvu_cgx_init()
400 int cgx, lmac; in rvu_cgx_exit() local
403 for (cgx = 0; cgx <= rvu->cgx_cnt_max; cgx++) { in rvu_cgx_exit()
404 cgxd = rvu_cgx_pdata(cgx, rvu); in rvu_cgx_exit()
882 u32 rvu_cgx_get_lmac_fifolen(struct rvu *rvu, int cgx, int lmac) in rvu_cgx_get_lmac_fifolen() argument
887 cgxd = rvu_cgx_pdata(cgx, rvu); in rvu_cgx_get_lmac_fifolen()
1262 struct cgx *cgxd; in rvu_mac_reset()
1263 u8 cgx, lmac; in rvu_mac_reset() local
1268 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx, &lmac); in rvu_mac_reset()
1269 cgxd = rvu_cgx_pdata(cgx, rvu); in rvu_mac_reset()