Searched refs:cgx (Results 1 – 5 of 5) sorted by relevance
| /Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/ |
| D | cgx.c | 49 struct cgx *cgx; member 54 struct cgx { struct 74 static int cgx_fwi_link_change(struct cgx *cgx, int lmac_id, bool en); argument 84 static void cgx_write(struct cgx *cgx, u64 lmac, u64 offset, u64 val) in cgx_write() argument 86 writeq(val, cgx->reg_base + (lmac << 18) + offset); in cgx_write() 89 static u64 cgx_read(struct cgx *cgx, u64 lmac, u64 offset) in cgx_read() argument 91 return readq(cgx->reg_base + (lmac << 18) + offset); in cgx_read() 94 static inline struct lmac *lmac_pdata(u8 lmac_id, struct cgx *cgx) in lmac_pdata() argument 96 if (!cgx || lmac_id >= MAX_LMAC_PER_CGX) in lmac_pdata() 99 return cgx->lmac_idmap[lmac_id]; in lmac_pdata() [all …]
|
| D | rvu_cgx.c | 65 int cgx, lmac_cnt, lmac; in rvu_map_cgx_lmac_pf() local 95 for (cgx = 0; cgx < cgx_cnt_max; cgx++) { in rvu_map_cgx_lmac_pf() 96 if (!rvu_cgx_pdata(cgx, rvu)) in rvu_map_cgx_lmac_pf() 98 lmac_cnt = cgx_get_lmac_cnt(rvu_cgx_pdata(cgx, rvu)); in rvu_map_cgx_lmac_pf() 100 rvu->pf2cgxlmac_map[pf] = cgxlmac_id_to_bmap(cgx, lmac); in rvu_map_cgx_lmac_pf() 101 rvu->cgxlmac2pf_map[CGX_OFFSET(cgx) + lmac] = 1 << pf; in rvu_map_cgx_lmac_pf() 224 int cgx, lmac, err; in cgx_lmac_event_handler_init() local 239 for (cgx = 0; cgx <= rvu->cgx_cnt_max; cgx++) { in cgx_lmac_event_handler_init() 240 cgxd = rvu_cgx_pdata(cgx, rvu); in cgx_lmac_event_handler_init() 248 cgx, lmac); in cgx_lmac_event_handler_init() [all …]
|
| D | Makefile | 10 octeontx2_af-y := cgx.o rvu.o rvu_cgx.o rvu_npa.o rvu_nix.o \
|
| D | rvu_nix.c | 2377 u8 cgx = 0, lmac = 0; in rvu_mbox_handler_nix_set_hw_frs() local 2423 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx, &lmac); in rvu_mbox_handler_nix_set_hw_frs() 2424 link = (cgx * hw->lmac_per_cgx) + lmac; in rvu_mbox_handler_nix_set_hw_frs() 2447 CGX_FIFO_LEN / cgx_get_lmac_cnt(rvu_cgx_pdata(cgx, rvu)); in rvu_mbox_handler_nix_set_hw_frs() 2561 int cgx, lmac_cnt, slink, link; in nix_link_config() local 2584 for (cgx = 0; cgx < hw->cgx; cgx++) { in nix_link_config() 2585 lmac_cnt = cgx_get_lmac_cnt(rvu_cgx_pdata(cgx, rvu)); in nix_link_config() 2589 slink = cgx * hw->lmac_per_cgx; in nix_link_config() 2722 hw->cgx = (cfg >> 12) & 0xF; in rvu_nix_init() 2724 hw->cgx_links = hw->cgx * hw->lmac_per_cgx; in rvu_nix_init()
|
| D | rvu.h | 200 u8 cgx; member
|