Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/marvell/octeontx2/af/
H 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
1313 struct cgx *cgx = lmac->cgx; in cgx_link_change_handler() local
1380 struct cgx *cgx; in cgx_fwi_event_handler() local
1382 cgx = lmac->cgx; in cgx_fwi_event_handler()
1466 struct cgx *cgx; in cgx_get_fwdata_base() local
1510 struct cgx *cgx; in cgx_set_fec() local
1724 lmac->cgx = cgx; in cgx_lmac_init()
[all …]
H 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 …]
H A Drvu_cgx.c158 for (cgx = 0; cgx < cgx_cnt_max; cgx++) { in rvu_map_cgx_lmac_pf()
325 for (cgx = 0; cgx <= rvu->cgx_cnt_max; cgx++) { in cgx_lmac_event_handler_init()
353 int cgx, err; in rvu_cgx_init() local
371 for (cgx = 0; cgx < rvu->cgx_cnt_max; cgx++) in rvu_cgx_init()
372 rvu->cgx_idmap[cgx] = cgx_get_pdata(cgx); in rvu_cgx_init()
380 for (cgx = 0; cgx < rvu->cgx_cnt_max; cgx++) { in rvu_cgx_init()
406 for (cgx = 0; cgx <= rvu->cgx_cnt_max; cgx++) { in cgx_start_linkup()
417 for (cgx = 0; cgx <= rvu->cgx_cnt_max; cgx++) { in cgx_start_linkup()
425 cgx); in cgx_start_linkup()
432 int cgx, lmac; in rvu_cgx_exit() local
[all …]
H 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()
H A DMakefile11 rvu_af-y := cgx.o rvu.o rvu_cgx.o rvu_npa.o rvu_nix.o \
H A Dmcs_rvu_if.c858 int cgx, lmac, port; in rvu_mcs_set_lmac_bmap() local
861 cgx = port / rvu->hw->lmac_per_cgx; in rvu_mcs_set_lmac_bmap()
863 if (!is_lmac_valid(rvu_cgx_pdata(cgx, rvu), lmac)) in rvu_mcs_set_lmac_bmap()
H 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()
2932 void *cgx; in rvu_dbg_cgx_init() local
2945 cgx = rvu_cgx_pdata(i, rvu); in rvu_dbg_cgx_init()
2946 if (!cgx) in rvu_dbg_cgx_init()
2948 lmac_bmap = cgx_get_lmac_bmap(cgx); in rvu_dbg_cgx_init()
2951 rvu->rvu_dbg.cgx = debugfs_create_dir(dname, in rvu_dbg_cgx_init()
2958 debugfs_create_dir(dname, rvu->rvu_dbg.cgx); in rvu_dbg_cgx_init()
2961 cgx, lmac_id, &rvu_dbg_cgx_stat_fops); in rvu_dbg_cgx_init()
[all …]
H A Drvu.h66 struct dentry *cgx; member
411 u8 cgx; member
1029 u32 rvu_cgx_get_lmac_fifolen(struct rvu *rvu, int cgx, int lmac);
H A Drvu_nix.c4608 u8 cgx = 0, lmac = 0; in rvu_mbox_handler_nix_set_hw_frs() local
4642 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx, &lmac); in rvu_mbox_handler_nix_set_hw_frs()
4643 link = (cgx * hw->lmac_per_cgx) + lmac; in rvu_mbox_handler_nix_set_hw_frs()
4713 int cgx, lmac_cnt, slink, link; in nix_link_config() local
4756 for (cgx = 0; cgx < hw->cgx; cgx++) { in nix_link_config()
4757 lmac_cnt = cgx_get_lmac_cnt(rvu_cgx_pdata(cgx, rvu)); in nix_link_config()
4761 slink = cgx * hw->lmac_per_cgx; in nix_link_config()
4764 lmac_bmap = cgx_get_lmac_bmap(rvu_cgx_pdata(cgx, rvu)); in nix_link_config()
4766 lmac_fifo_len = rvu_cgx_get_lmac_fifolen(rvu, cgx, iter); in nix_link_config()
4770 __func__, cgx, iter); in nix_link_config()