cgx_id 57 drivers/net/ethernet/marvell/octeontx2/af/cgx.c u8 cgx_id; cgx_id 108 drivers/net/ethernet/marvell/octeontx2/af/cgx.c if (cgx_dev->cgx_id > idmax) cgx_id 109 drivers/net/ethernet/marvell/octeontx2/af/cgx.c idmax = cgx_dev->cgx_id; cgx_id 129 drivers/net/ethernet/marvell/octeontx2/af/cgx.c void *cgx_get_pdata(int cgx_id) cgx_id 134 drivers/net/ethernet/marvell/octeontx2/af/cgx.c if (cgx_dev->cgx_id == cgx_id) cgx_id 169 drivers/net/ethernet/marvell/octeontx2/af/cgx.c int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr) cgx_id 171 drivers/net/ethernet/marvell/octeontx2/af/cgx.c struct cgx *cgx_dev = cgx_get_pdata(cgx_id); cgx_id 190 drivers/net/ethernet/marvell/octeontx2/af/cgx.c u64 cgx_lmac_addr_get(u8 cgx_id, u8 lmac_id) cgx_id 192 drivers/net/ethernet/marvell/octeontx2/af/cgx.c struct cgx *cgx_dev = cgx_get_pdata(cgx_id); cgx_id 250 drivers/net/ethernet/marvell/octeontx2/af/cgx.c void cgx_lmac_promisc_config(int cgx_id, int lmac_id, bool enable) cgx_id 252 drivers/net/ethernet/marvell/octeontx2/af/cgx.c struct cgx *cgx = cgx_get_pdata(cgx_id); cgx_id 358 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx->cgx_id, lmac->lmac_id); cgx_id 452 drivers/net/ethernet/marvell/octeontx2/af/cgx.c event.cgx_id = cgx->cgx_id; cgx_id 464 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx->cgx_id, lmac->lmac_id); cgx_id 467 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx->cgx_id, lmac->lmac_id, err_type); cgx_id 470 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx->cgx_id, lmac->lmac_id, cgx_id 697 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx->cgx_id, i); cgx_id 730 drivers/net/ethernet/marvell/octeontx2/af/cgx.c sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); cgx_id 819 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx->cgx_id = (pci_resource_start(pdev, PCI_CFG_REG_BAR_NUM) >> 24) cgx_id 82 drivers/net/ethernet/marvell/octeontx2/af/cgx.h u8 cgx_id; cgx_id 100 drivers/net/ethernet/marvell/octeontx2/af/cgx.h void *cgx_get_pdata(int cgx_id); cgx_id 107 drivers/net/ethernet/marvell/octeontx2/af/cgx.h int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr); cgx_id 108 drivers/net/ethernet/marvell/octeontx2/af/cgx.h u64 cgx_lmac_addr_get(u8 cgx_id, u8 lmac_id); cgx_id 109 drivers/net/ethernet/marvell/octeontx2/af/cgx.h void cgx_lmac_promisc_config(int cgx_id, int lmac_id, bool enable); cgx_id 339 drivers/net/ethernet/marvell/octeontx2/af/rvu.h static inline void rvu_get_cgx_lmac_id(u8 map, u8 *cgx_id, u8 *lmac_id) cgx_id 341 drivers/net/ethernet/marvell/octeontx2/af/rvu.h *cgx_id = (map >> 4) & 0xF; cgx_id 347 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu); cgx_id 43 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c static inline u16 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) cgx_id 45 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c return rvu->cgxlmac2pf_map[CGX_OFFSET(cgx_id) + lmac_id]; cgx_id 48 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c static inline u8 cgxlmac_id_to_bmap(u8 cgx_id, u8 lmac_id) cgx_id 50 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c return ((cgx_id & 0xF) << 4) | (lmac_id & 0xF); cgx_id 53 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu) cgx_id 55 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c if (cgx_id >= rvu->cgx_cnt_max) cgx_id 58 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c return rvu->cgx_idmap[cgx_id]; cgx_id 110 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c static int rvu_cgx_send_link_info(int cgx_id, int lmac_id, struct rvu *rvu) cgx_id 122 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c err = cgx_get_link_info(rvu_cgx_pdata(cgx_id, rvu), lmac_id, cgx_id 124 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c qentry->link_event.cgx_id = cgx_id; cgx_id 167 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c pfmap = cgxlmac_to_pfmap(rvu, event->cgx_id, event->lmac_id); cgx_id 176 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c event->cgx_id, event->lmac_id, cgx_id 340 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; cgx_id 348 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); cgx_id 350 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c cgx_lmac_rx_tx_enable(rvu_cgx_pdata(cgx_id, rvu), lmac_id, start); cgx_id 411 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; cgx_id 413 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); cgx_id 415 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c cgx_lmac_addr_set(cgx_id, lmac_id, req->mac_addr); cgx_id 425 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; cgx_id 429 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); cgx_id 432 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c cfg = cgx_lmac_addr_get(cgx_id, lmac_id); cgx_id 444 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; cgx_id 453 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); cgx_id 455 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c cgx_lmac_promisc_config(cgx_id, lmac_id, true); cgx_id 464 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; cgx_id 473 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); cgx_id 475 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c cgx_lmac_promisc_config(cgx_id, lmac_id, false); cgx_id 482 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; cgx_id 490 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); cgx_id 495 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_cgx_send_link_info(cgx_id, lmac_id, rvu); cgx_id 520 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; cgx_id 528 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); cgx_id 530 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c err = cgx_get_link_info(rvu_cgx_pdata(cgx_id, rvu), lmac_id, cgx_id 538 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; cgx_id 546 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); cgx_id 548 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c return cgx_lmac_internal_loopback(rvu_cgx_pdata(cgx_id, rvu), cgx_id 173 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u8 cgx_id, lmac_id; cgx_id 184 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); cgx_id 192 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf->rx_chan_base = NIX_CHAN_CGX_LMAC_CHX(cgx_id, lmac_id, 0); cgx_id 196 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, pkind); cgx_id 1071 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u8 cgx_id, lmac_id; cgx_id 1090 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); cgx_id 1091 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c schq_base = (cgx_id * MAX_LMAC_PER_CGX + lmac_id) * 2;