Home
last modified time | relevance | path

Searched refs:cgx_id (Results 1 – 8 of 8) sorted by relevance

/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_cgx.c45 u8 cgx_id, lmac_id; in is_mac_feature_supported() local
51 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in is_mac_feature_supported()
52 cgxd = rvu_cgx_pdata(cgx_id, rvu); in is_mac_feature_supported()
58 static u16 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) in cgxlmac_to_pfmap() argument
60 return rvu->cgxlmac2pf_map[CGX_OFFSET(cgx_id) + lmac_id]; in cgxlmac_to_pfmap()
63 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id) in cgxlmac_to_pf() argument
67 pfmap = cgxlmac_to_pfmap(rvu, cgx_id, lmac_id); in cgxlmac_to_pf()
76 static u8 cgxlmac_id_to_bmap(u8 cgx_id, u8 lmac_id) in cgxlmac_id_to_bmap() argument
78 return ((cgx_id & 0xF) << 4) | (lmac_id & 0xF); in cgxlmac_id_to_bmap()
81 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu) in rvu_cgx_pdata() argument
[all …]
Dcgx.h113 u8 cgx_id; member
132 void *cgx_get_pdata(int cgx_id);
140 int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr);
141 int cgx_lmac_addr_reset(u8 cgx_id, u8 lmac_id);
142 u64 cgx_lmac_addr_get(u8 cgx_id, u8 lmac_id);
143 int cgx_lmac_addr_add(u8 cgx_id, u8 lmac_id, u8 *mac_addr);
144 int cgx_lmac_addr_del(u8 cgx_id, u8 lmac_id, u8 index);
145 int cgx_lmac_addr_max_entries_get(u8 cgx_id, u8 lmac_id);
146 void cgx_lmac_promisc_config(int cgx_id, int lmac_id, bool enable);
158 u8 cgx_lmac_get_p2x(int cgx_id, int lmac_id);
[all …]
Dcgx.c136 if (cgx_dev->cgx_id > idmax) in cgx_get_cgxcnt_max()
137 idmax = cgx_dev->cgx_id; in cgx_get_cgxcnt_max()
155 void *cgx_get_pdata(int cgx_id) in cgx_get_pdata() argument
160 if (cgx_dev->cgx_id == cgx_id) in cgx_get_pdata()
166 void cgx_lmac_write(int cgx_id, int lmac_id, u64 offset, u64 val) in cgx_lmac_write() argument
168 struct cgx *cgx_dev = cgx_get_pdata(cgx_id); in cgx_lmac_write()
176 u64 cgx_lmac_read(int cgx_id, int lmac_id, u64 offset) in cgx_lmac_read() argument
178 struct cgx *cgx_dev = cgx_get_pdata(cgx_id); in cgx_lmac_read()
194 return cgx->cgx_id; in cgx_get_cgxid()
197 u8 cgx_lmac_get_p2x(int cgx_id, int lmac_id) in cgx_lmac_get_p2x() argument
[all …]
Drvu.h699 static inline void rvu_get_cgx_lmac_id(u8 map, u8 *cgx_id, u8 *lmac_id) in rvu_get_cgx_lmac_id() argument
701 *cgx_id = (map >> 4) & 0xF; in rvu_get_cgx_lmac_id()
718 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu);
814 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id);
Dlmac_common.h119 u8 cgx_id; member
Drvu_nix.c299 u8 cgx_id, lmac_id; in nix_interface_init() local
311 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in nix_interface_init()
319 pfvf->rx_chan_base = rvu_nix_chan_cgx(rvu, cgx_id, lmac_id, 0); in nix_interface_init()
323 rsp->tx_link = cgx_id * hw->lmac_per_cgx + lmac_id; in nix_interface_init()
325 cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, pkind); in nix_interface_init()
500 u8 cgx_id, lmac_id; in rvu_nix_get_bpid() local
530 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in rvu_nix_get_bpid()
532 bpid = (cgx_id * hw->lmac_per_cgx * lmac_chan_cnt) + in rvu_nix_get_bpid()
1828 u8 cgx_id = 0, lmac_id = 0; in nix_get_tx_link() local
1833 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in nix_get_tx_link()
[all …]
Drvu_debugfs.c407 u8 cgx_id, lmac_id; in rvu_dbg_rvu_pf_cgx_map_display() local
435 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, in rvu_dbg_rvu_pf_cgx_map_display()
437 sprintf(cgx, "%s%d", mac_ops->name, cgx_id); in rvu_dbg_rvu_pf_cgx_map_display()
Drvu_npc.c3276 u8 cgx_id, lmac_id; in rvu_npc_set_parse_mode() local
3300 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_npc_set_parse_mode()
3302 rc = cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, in rvu_npc_set_parse_mode()