Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
153 int cgx_get_link_info(void *cgxd, int lmac_id, in cgx_get_link_info() argument
156 struct lmac *lmac = lmac_pdata(lmac_id, cgxd); in cgx_get_link_info()
175 int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr) in cgx_lmac_addr_set() argument
185 cgx_write(cgx_dev, 0, (CGXX_CMRX_RX_DMAC_CAM0 + (lmac_id * 0x8)), in cgx_lmac_addr_set()
186 cfg | CGX_DMAC_CAM_ADDR_ENABLE | ((u64)lmac_id << 49)); in cgx_lmac_addr_set()
[all …]
Dcgx.h105 u8 lmac_id; member
124 int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind);
125 int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id);
126 int cgx_lmac_evh_unregister(void *cgxd, int lmac_id);
127 int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat);
128 int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat);
129 int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable);
130 int cgx_lmac_tx_enable(void *cgxd, int lmac_id, bool enable);
131 int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr);
132 u64 cgx_lmac_addr_get(u8 cgx_id, u8 lmac_id);
[all …]
Drvu_cgx.c46 static u16 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) in cgxlmac_to_pfmap() argument
48 return rvu->cgxlmac2pf_map[CGX_OFFSET(cgx_id) + lmac_id]; in cgxlmac_to_pfmap()
51 static int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id) in cgxlmac_to_pf() argument
55 pfmap = cgxlmac_to_pfmap(rvu, cgx_id, lmac_id); in cgxlmac_to_pf()
64 static u8 cgxlmac_id_to_bmap(u8 cgx_id, u8 lmac_id) in cgxlmac_id_to_bmap() argument
66 return ((cgx_id & 0xF) << 4) | (lmac_id & 0xF); in cgxlmac_id_to_bmap()
126 static int rvu_cgx_send_link_info(int cgx_id, int lmac_id, struct rvu *rvu) in rvu_cgx_send_link_info() argument
138 err = cgx_get_link_info(rvu_cgx_pdata(cgx_id, rvu), lmac_id, in rvu_cgx_send_link_info()
141 qentry->link_event.lmac_id = lmac_id; in rvu_cgx_send_link_info()
183 pfmap = cgxlmac_to_pfmap(rvu, event->cgx_id, event->lmac_id); in cgx_notify_pfs()
[all …]
Drvu_debugfs.c1451 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \
1461 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \
1468 static int cgx_print_stats(struct seq_file *s, int lmac_id) in cgx_print_stats() argument
1484 err = cgx_get_link_info(cgxd, lmac_id, &linfo); in cgx_print_stats()
1534 err = cgx_get_rx_stats(cgxd, lmac_id, stat, &rx_stat); in cgx_print_stats()
1545 err = cgx_get_tx_stats(cgxd, lmac_id, stat, &tx_stat); in cgx_print_stats()
1558 int err, lmac_id; in rvu_dbg_cgx_stat_display() local
1566 err = kstrtoint(buf + 1, 10, &lmac_id); in rvu_dbg_cgx_stat_display()
1568 err = cgx_print_stats(filp, lmac_id); in rvu_dbg_cgx_stat_display()
1581 int i, lmac_id; in rvu_dbg_cgx_init() local
[all …]
Drvu.h452 static inline void rvu_get_cgx_lmac_id(u8 map, u8 *cgx_id, u8 *lmac_id) in rvu_get_cgx_lmac_id() argument
455 *lmac_id = (map & 0xF); in rvu_get_cgx_lmac_id()
469 int rvu_cgx_nix_cuml_stats(struct rvu *rvu, void *cgxd, int lmac_id, int index,
Drvu_nix.c190 u8 cgx_id, lmac_id; in nix_interface_init() local
201 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in nix_interface_init()
209 pfvf->rx_chan_base = NIX_CHAN_CGX_LMAC_CHX(cgx_id, lmac_id, 0); in nix_interface_init()
213 cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, pkind); in nix_interface_init()
219 lmac_id, true, true); in nix_interface_init()
316 u8 cgx_id, lmac_id; in rvu_nix_get_bpid() local
342 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in rvu_nix_get_bpid()
345 (lmac_id * lmac_chan_cnt) + req->chan_base; in rvu_nix_get_bpid()
1308 u8 cgx_id = 0, lmac_id = 0; in nix_get_tx_link() local
1313 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in nix_get_tx_link()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/api/
Dbinding.h110 __le32 lmac_id; member
Dphy-ctxt.h210 __le32 lmac_id; member
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dhal_tx.h34 u8 lmac_id; member
Dhal_tx.c69 FIELD_PREP(HAL_TCL_DATA_CMD_INFO2_LMAC_ID, ti->lmac_id); in ath11k_hal_tx_cmd_desc_setup()
Ddp_tx.c166 ti.lmac_id = ar->lmac_id; in ath11k_dp_tx()
Dcore.h503 u8 lmac_id; member
Dwmi.h2377 u32 lmac_id; member
Dmac.c6433 ar->lmac_id = ath11k_hw_get_mac_from_pdev_id(&ab->hw_params, i); in ath11k_mac_allocate()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dbinding.c89 cmd.lmac_id = cpu_to_le32(iwl_mvm_get_lmac_id(mvm->fw, in iwl_mvm_binding_cmd()
Dphy-ctxt.c197 cmd->lmac_id = cpu_to_le32(iwl_mvm_get_lmac_id(mvm->fw, in iwl_mvm_phy_ctxt_cmd_data()
Dsta.h543 int iwl_mvm_add_aux_sta(struct iwl_mvm *mvm, u32 lmac_id);
Dmac80211.c3862 u32 lmac_id; in iwl_mvm_roc() local
3864 lmac_id = iwl_mvm_get_lmac_id(mvm->fw, in iwl_mvm_roc()
3866 ret = iwl_mvm_add_aux_sta(mvm, lmac_id); in iwl_mvm_roc()
Dsta.c2065 int iwl_mvm_add_aux_sta(struct iwl_mvm *mvm, u32 lmac_id) in iwl_mvm_add_aux_sta() argument
2082 ret = iwl_mvm_add_int_sta_with_queue(mvm, lmac_id, 0, NULL, in iwl_mvm_add_aux_sta()