Lines Matching refs:lmac
125 int cgx, lmac, iter; in rvu_map_cgx_lmac_pf() local
159 lmac = cgx_get_lmacid(rvu_cgx_pdata(cgx, rvu), in rvu_map_cgx_lmac_pf()
161 rvu->pf2cgxlmac_map[pf] = cgxlmac_id_to_bmap(cgx, lmac); in rvu_map_cgx_lmac_pf()
162 rvu->cgxlmac2pf_map[CGX_OFFSET(cgx) + lmac] = 1 << pf; in rvu_map_cgx_lmac_pf()
165 rvu_map_cgx_nix_block(rvu, pf, cgx, lmac); in rvu_map_cgx_lmac_pf()
292 int cgx, lmac, err; in cgx_lmac_event_handler_init() local
312 for_each_set_bit(lmac, &lmac_bmap, MAX_LMAC_PER_CGX) { in cgx_lmac_event_handler_init()
313 err = cgx_lmac_evh_register(&cb, cgxd, lmac); in cgx_lmac_event_handler_init()
317 cgx, lmac); in cgx_lmac_event_handler_init()
391 int cgx, lmac; in rvu_cgx_exit() local
399 for_each_set_bit(lmac, &lmac_bmap, MAX_LMAC_PER_CGX) in rvu_cgx_exit()
400 cgx_lmac_evh_unregister(cgxd, lmac); in rvu_cgx_exit()
503 u8 cgx_idx, lmac; in rvu_lmac_get_stats() local
509 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_idx, &lmac); in rvu_lmac_get_stats()
515 err = mac_ops->mac_get_rx_stats(cgxd, lmac, stat, &rx_stat); in rvu_lmac_get_stats()
528 err = mac_ops->mac_get_tx_stats(cgxd, lmac, stat, &tx_stat); in rvu_lmac_get_stats()
557 u8 cgx_idx, lmac; in rvu_mbox_handler_cgx_fec_stats() local
562 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_idx, &lmac); in rvu_mbox_handler_cgx_fec_stats()
565 return cgx_get_fec_stats(cgxd, lmac, rsp); in rvu_mbox_handler_cgx_fec_stats()
795 u8 cgx_idx, lmac; in rvu_mbox_handler_cgx_features_get() local
801 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_idx, &lmac); in rvu_mbox_handler_cgx_features_get()
1027 u8 cgx_idx, lmac; in rvu_mbox_handler_cgx_set_link_mode() local
1033 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_idx, &lmac); in rvu_mbox_handler_cgx_set_link_mode()
1035 rsp->status = cgx_set_link_mode(cgxd, req->args, cgx_idx, lmac); in rvu_mbox_handler_cgx_set_link_mode()