Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_cgx.c43 static inline u16 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) in cgxlmac_to_pfmap() argument
45 return rvu->cgxlmac2pf_map[CGX_OFFSET(cgx_id) + lmac_id]; in cgxlmac_to_pfmap()
48 static inline u8 cgxlmac_id_to_bmap(u8 cgx_id, u8 lmac_id) in cgxlmac_id_to_bmap() argument
50 return ((cgx_id & 0xF) << 4) | (lmac_id & 0xF); in cgxlmac_id_to_bmap()
53 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu) in rvu_cgx_pdata() argument
55 if (cgx_id >= rvu->cgx_cnt_max) in rvu_cgx_pdata()
58 return rvu->cgx_idmap[cgx_id]; in rvu_cgx_pdata()
110 static int rvu_cgx_send_link_info(int cgx_id, int lmac_id, struct rvu *rvu) in rvu_cgx_send_link_info() argument
122 err = cgx_get_link_info(rvu_cgx_pdata(cgx_id, rvu), lmac_id, in rvu_cgx_send_link_info()
124 qentry->link_event.cgx_id = cgx_id; in rvu_cgx_send_link_info()
[all …]
Dcgx.c57 u8 cgx_id; member
108 if (cgx_dev->cgx_id > idmax) in cgx_get_cgxcnt_max()
109 idmax = cgx_dev->cgx_id; in cgx_get_cgxcnt_max()
129 void *cgx_get_pdata(int cgx_id) in cgx_get_pdata() argument
134 if (cgx_dev->cgx_id == cgx_id) in cgx_get_pdata()
169 int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr) in cgx_lmac_addr_set() argument
171 struct cgx *cgx_dev = cgx_get_pdata(cgx_id); in cgx_lmac_addr_set()
190 u64 cgx_lmac_addr_get(u8 cgx_id, u8 lmac_id) in cgx_lmac_addr_get() argument
192 struct cgx *cgx_dev = cgx_get_pdata(cgx_id); in cgx_lmac_addr_get()
250 void cgx_lmac_promisc_config(int cgx_id, int lmac_id, bool enable) in cgx_lmac_promisc_config() argument
[all …]
Dcgx.h82 u8 cgx_id; member
100 void *cgx_get_pdata(int cgx_id);
107 int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr);
108 u64 cgx_lmac_addr_get(u8 cgx_id, u8 lmac_id);
109 void cgx_lmac_promisc_config(int cgx_id, int lmac_id, bool enable);
Drvu.h339 static inline void rvu_get_cgx_lmac_id(u8 map, u8 *cgx_id, u8 *lmac_id) in rvu_get_cgx_lmac_id() argument
341 *cgx_id = (map >> 4) & 0xF; in rvu_get_cgx_lmac_id()
347 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu);
Drvu_nix.c173 u8 cgx_id, lmac_id; in nix_interface_init() local
184 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in nix_interface_init()
192 pfvf->rx_chan_base = NIX_CHAN_CGX_LMAC_CHX(cgx_id, lmac_id, 0); in nix_interface_init()
196 cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, pkind); in nix_interface_init()
1071 u8 cgx_id, lmac_id; in rvu_get_tl1_schqs() local
1090 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in rvu_get_tl1_schqs()
1091 schq_base = (cgx_id * MAX_LMAC_PER_CGX + lmac_id) * 2; in rvu_get_tl1_schqs()