Lines Matching refs:lmac
81 int cgx, lmac_cnt, lmac; in rvu_map_cgx_lmac_pf() local
115 for (lmac = 0; lmac < lmac_cnt; lmac++, pf++) { in rvu_map_cgx_lmac_pf()
116 rvu->pf2cgxlmac_map[pf] = cgxlmac_id_to_bmap(cgx, lmac); in rvu_map_cgx_lmac_pf()
117 rvu->cgxlmac2pf_map[CGX_OFFSET(cgx) + lmac] = 1 << pf; in rvu_map_cgx_lmac_pf()
240 int cgx, lmac, err; in cgx_lmac_event_handler_init() local
259 for (lmac = 0; lmac < cgx_get_lmac_cnt(cgxd); lmac++) { in cgx_lmac_event_handler_init()
260 err = cgx_lmac_evh_register(&cb, cgxd, lmac); in cgx_lmac_event_handler_init()
264 cgx, lmac); in cgx_lmac_event_handler_init()
337 int cgx, lmac; in rvu_cgx_exit() local
344 for (lmac = 0; lmac < cgx_get_lmac_cnt(cgxd); lmac++) in rvu_cgx_exit()
345 cgx_lmac_evh_unregister(cgxd, lmac); in rvu_cgx_exit()
420 u8 cgx_idx, lmac; in rvu_mbox_handler_cgx_stats() local
426 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_idx, &lmac); in rvu_mbox_handler_cgx_stats()
431 err = cgx_get_rx_stats(cgxd, lmac, stat, &rx_stat); in rvu_mbox_handler_cgx_stats()
441 err = cgx_get_tx_stats(cgxd, lmac, stat, &tx_stat); in rvu_mbox_handler_cgx_stats()