Home
last modified time | relevance | path

Searched refs:cgx (Results 1 – 9 of 9) sorted by relevance

/drivers/net/ethernet/marvell/octeontx2/af/
A Dcgx.c88 struct cgx *cgx = cgxd; in is_dev_rpm() local
167 struct cgx *cgx = cgxd; in cgx_get_lmac_cnt() local
314 struct cgx *cgx; in cgx_read_dmac_entry() local
1081 struct cgx *cgx = lmac->cgx; in cgx_fwi_cmd_send() local
1321 struct cgx *cgx = lmac->cgx; in cgx_link_change_handler() local
1388 struct cgx *cgx; in cgx_fwi_event_handler() local
1390 cgx = lmac->cgx; in cgx_fwi_event_handler()
1474 struct cgx *cgx; in cgx_get_fwdata_base() local
1529 struct cgx *cgx; in cgx_set_fec() local
1745 lmac->cgx = cgx; in cgx_lmac_init()
[all …]
A Dlmac_common.h44 struct cgx *cgx; member
87 int (*get_nr_lmacs)(void *cgx);
93 int (*mac_get_rx_stats)(void *cgx, int lmac_id,
139 struct cgx { struct
164 typedef struct cgx rpm_t; argument
167 void cgx_write(struct cgx *cgx, u64 lmac, u64 offset, u64 val);
168 u64 cgx_read(struct cgx *cgx, u64 lmac, u64 offset);
169 struct lmac *lmac_pdata(u8 lmac_id, struct cgx *cgx);
171 int cgx_fwi_cmd_generic(u64 req, u64 *resp, struct cgx *cgx, int lmac_id);
172 bool is_lmac_valid(struct cgx *cgx, int lmac_id);
[all …]
A Drvu_cgx.c158 for (cgx = 0; cgx < cgx_cnt_max; cgx++) { in rvu_map_cgx_lmac_pf()
327 for (cgx = 0; cgx <= rvu->cgx_cnt_max; cgx++) { in cgx_lmac_event_handler_init()
355 int cgx, err; in rvu_cgx_init() local
373 for (cgx = 0; cgx < rvu->cgx_cnt_max; cgx++) in rvu_cgx_init()
374 rvu->cgx_idmap[cgx] = cgx_get_pdata(cgx); in rvu_cgx_init()
382 for (cgx = 0; cgx < rvu->cgx_cnt_max; cgx++) { in rvu_cgx_init()
408 for (cgx = 0; cgx <= rvu->cgx_cnt_max; cgx++) { in cgx_start_linkup()
419 for (cgx = 0; cgx <= rvu->cgx_cnt_max; cgx++) { in cgx_start_linkup()
427 cgx); in cgx_start_linkup()
434 int cgx, lmac; in rvu_cgx_exit() local
[all …]
A Drvu_cn10k.c311 hw->cgx = (nix_const >> 12) & 0xFULL; in rvu_set_channels_base()
313 hw->cgx_links = hw->cgx * hw->lmac_per_cgx; in rvu_set_channels_base()
537 int cgx, lmac; in rvu_rpm_set_channels() local
539 for (cgx = 0; cgx < rvu->cgx_cnt_max; cgx++) { in rvu_rpm_set_channels()
541 __rvu_rpm_set_channels(cgx, lmac, base); in rvu_rpm_set_channels()
A DMakefile11 rvu_af-y := cgx.o rvu.o rvu_cgx.o rvu_npa.o rvu_nix.o \
A Drvu_debugfs.c819 char cgx[10], lmac[10], chan[10]; in rvu_dbg_rvu_pf_cgx_map_display() local
843 cgx[0] = 0; in rvu_dbg_rvu_pf_cgx_map_display()
855 sprintf(cgx, "%s%d", mac_ops->name, cgx_id); in rvu_dbg_rvu_pf_cgx_map_display()
3088 void *cgx; in rvu_dbg_cgx_init() local
3101 cgx = rvu_cgx_pdata(i, rvu); in rvu_dbg_cgx_init()
3102 if (!cgx) in rvu_dbg_cgx_init()
3104 lmac_bmap = cgx_get_lmac_bmap(cgx); in rvu_dbg_cgx_init()
3107 rvu->rvu_dbg.cgx = debugfs_create_dir(dname, in rvu_dbg_cgx_init()
3117 cgx, lmac_id, &rvu_dbg_cgx_stat_fops); in rvu_dbg_cgx_init()
3119 rvu->rvu_dbg.lmac, cgx, lmac_id, in rvu_dbg_cgx_init()
[all …]
A Dmcs_rvu_if.c860 int cgx, lmac, port; in rvu_mcs_set_lmac_bmap() local
863 cgx = port / rvu->hw->lmac_per_cgx; in rvu_mcs_set_lmac_bmap()
865 if (!is_lmac_valid(rvu_cgx_pdata(cgx, rvu), lmac)) in rvu_mcs_set_lmac_bmap()
A Drvu.h94 struct dentry *cgx; member
439 u8 cgx; member
1090 u32 rvu_cgx_get_lmac_fifolen(struct rvu *rvu, int cgx, int lmac);
A Drvu_nix.c4612 u8 cgx = 0, lmac = 0; in rvu_mbox_handler_nix_set_hw_frs() local
4646 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx, &lmac); in rvu_mbox_handler_nix_set_hw_frs()
4647 link = (cgx * hw->lmac_per_cgx) + lmac; in rvu_mbox_handler_nix_set_hw_frs()
4717 int cgx, lmac_cnt, slink, link; in nix_link_config() local
4760 for (cgx = 0; cgx < hw->cgx; cgx++) { in nix_link_config()
4761 lmac_cnt = cgx_get_lmac_cnt(rvu_cgx_pdata(cgx, rvu)); in nix_link_config()
4765 slink = cgx * hw->lmac_per_cgx; in nix_link_config()
4768 lmac_bmap = cgx_get_lmac_bmap(rvu_cgx_pdata(cgx, rvu)); in nix_link_config()
4770 lmac_fifo_len = rvu_cgx_get_lmac_fifolen(rvu, cgx, iter); in nix_link_config()
4774 __func__, cgx, iter); in nix_link_config()

Completed in 47 milliseconds