Home
last modified time | relevance | path

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

/drivers/net/ethernet/marvell/octeontx2/af/
Drpm.c60 int rpm_lmac_tx_enable(void *rpmd, int lmac_id, bool enable) in rpm_lmac_tx_enable() argument
65 if (!is_lmac_valid(rpm, lmac_id)) in rpm_lmac_tx_enable()
68 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_tx_enable()
76 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_tx_enable()
80 int rpm_lmac_rx_tx_enable(void *rpmd, int lmac_id, bool enable) in rpm_lmac_rx_tx_enable() argument
85 if (!is_lmac_valid(rpm, lmac_id)) in rpm_lmac_rx_tx_enable()
88 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_rx_tx_enable()
93 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_rx_tx_enable()
97 void rpm_lmac_enadis_rx_pause_fwding(void *rpmd, int lmac_id, bool enable) in rpm_lmac_enadis_rx_pause_fwding() argument
106 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_enadis_rx_pause_fwding()
[all …]
Dcgx.c61 static int cgx_fwi_link_change(struct cgx *cgx, int lmac_id, bool en);
79 bool is_lmac_valid(struct cgx *cgx, int lmac_id) in is_lmac_valid() argument
81 if (!cgx || lmac_id < 0 || lmac_id >= MAX_LMAC_PER_CGX) in is_lmac_valid()
83 return test_bit(lmac_id, &cgx->lmac_bmap); in is_lmac_valid()
89 static int get_sequence_id_of_lmac(struct cgx *cgx, int lmac_id) in get_sequence_id_of_lmac() argument
94 if (tmp == lmac_id) in get_sequence_id_of_lmac()
122 struct lmac *lmac_pdata(u8 lmac_id, struct cgx *cgx) in lmac_pdata() argument
124 if (!cgx || lmac_id >= MAX_LMAC_PER_CGX) in lmac_pdata()
127 return cgx->lmac_idmap[lmac_id]; in lmac_pdata()
166 void cgx_lmac_write(int cgx_id, int lmac_id, u64 offset, u64 val) in cgx_lmac_write() argument
[all …]
Dcgx.h114 u8 lmac_id; member
133 int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind);
134 int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id);
135 int cgx_lmac_evh_unregister(void *cgxd, int lmac_id);
136 int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat);
137 int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat);
138 int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable);
139 int cgx_lmac_tx_enable(void *cgxd, int lmac_id, bool enable);
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);
[all …]
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()
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()
106 int cgx_id, int lmac_id) in rvu_map_cgx_nix_block() argument
111 p2x = cgx_lmac_get_p2x(cgx_id, lmac_id); in rvu_map_cgx_nix_block()
[all …]
Dlmac_common.h41 u8 lmac_id; member
78 u8 (*get_lmac_type)(void *cgx, int lmac_id);
79 u32 (*lmac_fifo_len)(void *cgx, int lmac_id);
80 int (*mac_lmac_intl_lbk)(void *cgx, int lmac_id,
83 int (*mac_get_rx_stats)(void *cgx, int lmac_id,
85 int (*mac_get_tx_stats)(void *cgx, int lmac_id,
90 int lmac_id,
94 int lmac_id,
99 int lmac_id,
104 int lmac_id,
[all …]
Drpm.h51 u8 rpm_get_lmac_type(void *rpmd, int lmac_id);
52 u32 rpm_get_lmac_fifo_len(void *rpmd, int lmac_id);
53 int rpm_lmac_internal_loopback(void *rpmd, int lmac_id, bool enable);
54 void rpm_lmac_enadis_rx_pause_fwding(void *rpmd, int lmac_id, bool enable);
55 int rpm_lmac_get_pause_frm_status(void *cgxd, int lmac_id, u8 *tx_pause,
57 void rpm_lmac_pause_frm_config(void *rpmd, int lmac_id, bool enable);
58 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause,
60 int rpm_get_tx_stats(void *rpmd, int lmac_id, int idx, u64 *tx_stat);
61 int rpm_get_rx_stats(void *rpmd, int lmac_id, int idx, u64 *rx_stat);
62 void rpm_lmac_ptp_config(void *rpmd, int lmac_id, bool enable);
[all …]
Drvu_debugfs.c407 u8 cgx_id, lmac_id; in rvu_dbg_rvu_pf_cgx_map_display() local
436 &lmac_id); in rvu_dbg_rvu_pf_cgx_map_display()
438 sprintf(lmac, "LMAC%d", lmac_id); in rvu_dbg_rvu_pf_cgx_map_display()
1933 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \
1943 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \
1950 static int cgx_print_stats(struct seq_file *s, int lmac_id) in cgx_print_stats() argument
1972 err = cgx_get_link_info(cgxd, lmac_id, &linfo); in cgx_print_stats()
2024 err = mac_ops->mac_get_rx_stats(cgxd, lmac_id, stat, &rx_stat); in cgx_print_stats()
2040 err = mac_ops->mac_get_tx_stats(cgxd, lmac_id, stat, &tx_stat); in cgx_print_stats()
2056 static int rvu_dbg_derive_lmacid(struct seq_file *filp, int *lmac_id) in rvu_dbg_derive_lmacid() 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
702 *lmac_id = (map & 0xF); in rvu_get_cgx_lmac_id()
722 int rvu_cgx_nix_cuml_stats(struct rvu *rvu, void *cgxd, int lmac_id, int index,
814 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id);
815 int rvu_cgx_config_tx(void *cgxd, int lmac_id, bool enable);
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()
533 (lmac_id * lmac_chan_cnt) + req->chan_base; 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_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()
/drivers/net/wireless/intel/iwlwifi/fw/api/
Dbinding.h55 __le32 lmac_id; member
Dphy-ctxt.h155 __le32 lmac_id; member
/drivers/net/wireless/ath/ath11k/
Dhal_tx.h35 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.h517 u8 lmac_id; member
Dwmi.h2402 u32 lmac_id; member
Dmac.c6730 ar->lmac_id = ath11k_hw_get_mac_from_pdev_id(&ab->hw_params, i); in ath11k_mac_allocate()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dbinding.c34 cmd.lmac_id = cpu_to_le32(iwl_mvm_get_lmac_id(mvm->fw, in iwl_mvm_binding_cmd()
Dsta.h507 int iwl_mvm_add_aux_sta(struct iwl_mvm *mvm, u32 lmac_id);
Dphy-ctxt.c143 cmd->lmac_id = cpu_to_le32(iwl_mvm_get_lmac_id(mvm->fw, in iwl_mvm_phy_ctxt_cmd_data()
Dmac80211.c3872 u32 lmac_id; in iwl_mvm_roc() local
3874 lmac_id = iwl_mvm_get_lmac_id(mvm->fw, in iwl_mvm_roc()
3876 ret = iwl_mvm_add_aux_sta(mvm, lmac_id); in iwl_mvm_roc()
Dsta.c2020 int iwl_mvm_add_aux_sta(struct iwl_mvm *mvm, u32 lmac_id) in iwl_mvm_add_aux_sta() argument
2037 ret = iwl_mvm_add_int_sta_with_queue(mvm, lmac_id, 0, NULL, in iwl_mvm_add_aux_sta()