Home
last modified time | relevance | path

Searched refs:lmac_id (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Dcgx.c50 u8 lmac_id; member
74 static int cgx_fwi_link_change(struct cgx *cgx, int lmac_id, bool en);
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()
146 int cgx_get_link_info(void *cgxd, int lmac_id, in cgx_get_link_info() argument
149 struct lmac *lmac = lmac_pdata(lmac_id, cgxd); in cgx_get_link_info()
169 int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr) in cgx_lmac_addr_set() argument
179 cgx_write(cgx_dev, 0, (CGXX_CMRX_RX_DMAC_CAM0 + (lmac_id * 0x8)), in cgx_lmac_addr_set()
180 cfg | CGX_DMAC_CAM_ADDR_ENABLE | ((u64)lmac_id << 49)); in cgx_lmac_addr_set()
[all …]
Dcgx.h83 u8 lmac_id; member
101 int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind);
102 int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id);
103 int cgx_lmac_evh_unregister(void *cgxd, int lmac_id);
104 int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat);
105 int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat);
106 int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable);
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);
[all …]
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()
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()
125 qentry->link_event.lmac_id = lmac_id; in rvu_cgx_send_link_info()
167 pfmap = cgxlmac_to_pfmap(rvu, event->cgx_id, event->lmac_id); in cgx_notify_pfs()
176 event->cgx_id, event->lmac_id, in cgx_notify_pfs()
340 u8 cgx_id, lmac_id; in rvu_cgx_config_rxtx() local
[all …]
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
342 *lmac_id = (map & 0xF); in rvu_get_cgx_lmac_id()
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()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/
Dbinding.c91 cmd.lmac_id = cpu_to_le32(IWL_LMAC_24G_INDEX); in iwl_mvm_binding_cmd()
93 cmd.lmac_id = cpu_to_le32(IWL_LMAC_5G_INDEX); in iwl_mvm_binding_cmd()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/fw/api/
Dbinding.h108 __le32 lmac_id; member