Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/marvell/octeontx2/af/
Drpm.c124 int rpm_lmac_tx_enable(void *rpmd, int lmac_id, bool enable) in rpm_lmac_tx_enable() argument
129 if (!is_lmac_valid(rpm, lmac_id)) in rpm_lmac_tx_enable()
132 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_tx_enable()
140 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_tx_enable()
144 int rpm_lmac_rx_tx_enable(void *rpmd, int lmac_id, bool enable) in rpm_lmac_rx_tx_enable() argument
149 if (!is_lmac_valid(rpm, lmac_id)) in rpm_lmac_rx_tx_enable()
152 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_rx_tx_enable()
157 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_rx_tx_enable()
161 void rpm_lmac_enadis_rx_pause_fwding(void *rpmd, int lmac_id, bool enable) in rpm_lmac_enadis_rx_pause_fwding() argument
170 lmac = lmac_pdata(lmac_id, rpm); in rpm_lmac_enadis_rx_pause_fwding()
[all …]
Dcgx.c62 static int cgx_fwi_link_change(struct cgx *cgx, int lmac_id, bool en);
82 bool is_lmac_valid(struct cgx *cgx, int lmac_id) in is_lmac_valid() argument
84 if (!cgx || lmac_id < 0 || lmac_id >= cgx->max_lmac_per_mac) in is_lmac_valid()
86 return test_bit(lmac_id, &cgx->lmac_bmap); in is_lmac_valid()
92 static int get_sequence_id_of_lmac(struct cgx *cgx, int lmac_id) in get_sequence_id_of_lmac() argument
97 if (tmp == lmac_id) in get_sequence_id_of_lmac()
125 struct lmac *lmac_pdata(u8 lmac_id, struct cgx *cgx) in lmac_pdata() argument
127 if (!cgx || lmac_id >= cgx->max_lmac_per_mac) in lmac_pdata()
130 return cgx->lmac_idmap[lmac_id]; in lmac_pdata()
169 void cgx_lmac_write(int cgx_id, int lmac_id, u64 offset, u64 val) in cgx_lmac_write() argument
[all …]
Dcgx.h120 u8 lmac_id; member
139 int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind);
140 int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id);
141 int cgx_lmac_evh_unregister(void *cgxd, int lmac_id);
142 int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat);
143 int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat);
144 int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable);
145 int cgx_lmac_tx_enable(void *cgxd, int lmac_id, bool enable);
146 int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr);
147 int cgx_lmac_addr_reset(u8 cgx_id, u8 lmac_id);
[all …]
Dlmac_common.h46 u8 lmac_id; member
89 u8 (*get_lmac_type)(void *cgx, int lmac_id);
90 u32 (*lmac_fifo_len)(void *cgx, int lmac_id);
91 int (*mac_lmac_intl_lbk)(void *cgx, int lmac_id,
94 int (*mac_get_rx_stats)(void *cgx, int lmac_id,
96 int (*mac_get_tx_stats)(void *cgx, int lmac_id,
101 int lmac_id,
105 int lmac_id,
110 int lmac_id,
115 int lmac_id,
[all …]
Drvu_cgx.c46 u8 cgx_id, lmac_id; in is_mac_feature_supported() local
52 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in is_mac_feature_supported()
60 static u64 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) in cgxlmac_to_pfmap() argument
62 return rvu->cgxlmac2pf_map[CGX_OFFSET(cgx_id) + lmac_id]; in cgxlmac_to_pfmap()
65 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id) in cgxlmac_to_pf() argument
69 pfmap = cgxlmac_to_pfmap(rvu, cgx_id, lmac_id); in cgxlmac_to_pf()
79 static u8 cgxlmac_id_to_bmap(u8 cgx_id, u8 lmac_id) in cgxlmac_id_to_bmap() argument
81 return ((cgx_id & 0xF) << 4) | (lmac_id & 0xF); in cgxlmac_id_to_bmap()
109 int cgx_id, int lmac_id) in rvu_map_cgx_nix_block() argument
114 p2x = cgx_lmac_get_p2x(cgx_id, lmac_id); in rvu_map_cgx_nix_block()
[all …]
Drpm.h114 u8 rpm_get_lmac_type(void *rpmd, int lmac_id);
115 u32 rpm_get_lmac_fifo_len(void *rpmd, int lmac_id);
116 u32 rpm2_get_lmac_fifo_len(void *rpmd, int lmac_id);
117 int rpm_lmac_internal_loopback(void *rpmd, int lmac_id, bool enable);
118 void rpm_lmac_enadis_rx_pause_fwding(void *rpmd, int lmac_id, bool enable);
119 int rpm_lmac_get_pause_frm_status(void *cgxd, int lmac_id, u8 *tx_pause,
121 void rpm_lmac_pause_frm_config(void *rpmd, int lmac_id, bool enable);
122 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause,
124 int rpm_get_tx_stats(void *rpmd, int lmac_id, int idx, u64 *tx_stat);
125 int rpm_get_rx_stats(void *rpmd, int lmac_id, int idx, u64 *rx_stat);
[all …]
Drvu_npc_hash.c785 u32 index, u8 cgx_id, u8 lmac_id, u8 *mac_addr, u16 chan, in rvu_npc_exact_add_to_list() argument
841 entry->lmac_id = lmac_id; in rvu_npc_exact_add_to_list()
1061 u8 cgx_id, u8 lmac_id, in rvu_npc_exact_calc_drop_rule_chan_and_mask() argument
1070 chan_val = rvu_nix_chan_cgx(rvu, cgx_id, lmac_id, 0); in rvu_npc_exact_calc_drop_rule_chan_and_mask()
1126 u8 lmac_id, u32 *drop_mcam_idx, u64 *val, in rvu_npc_exact_get_drop_rule_info() argument
1142 lmac_id, &chan_val, &chan_mask); in rvu_npc_exact_get_drop_rule_info()
1171 __func__, cgx_id, lmac_id); in rvu_npc_exact_get_drop_rule_info()
1268 entry->lmac_id, &drop_mcam_idx, NULL, NULL, NULL); in rvu_npc_exact_del_table_entry_by_id()
1316 static int rvu_npc_exact_add_table_entry(struct rvu *rvu, u8 cgx_id, u8 lmac_id, u8 *mac, in rvu_npc_exact_add_table_entry() argument
1347 err = rvu_npc_exact_add_to_list(rvu, opc_type, ways, index, cgx_id, lmac_id, in rvu_npc_exact_add_table_entry()
[all …]
Dmcs_rvu_if.c36 void rvu_mcs_ptp_cfg(struct rvu *rvu, u8 rpm_id, u8 lmac_id, bool ena) in rvu_mcs_ptp_cfg() argument
55 cfg |= BIT_ULL(lmac_id); in rvu_mcs_ptp_cfg()
57 cfg &= ~BIT_ULL(lmac_id); in rvu_mcs_ptp_cfg()
63 port = (rpm_id * rvu->hw->lmac_per_cgx) + lmac_id; in rvu_mcs_ptp_cfg()
83 if (BIT_ULL(req->lmac_id) & mcs->hw->lmac_bmap) in rvu_mbox_handler_mcs_set_lmac_mode()
84 mcs_set_lmac_mode(mcs, req->lmac_id, req->mode); in rvu_mbox_handler_mcs_set_lmac_mode()
140 req->lmac_id = event->lmac_id; in mcs_notify_pfvf()
Drvu_debugfs.c847 u8 cgx_id, lmac_id; in rvu_dbg_rvu_pf_cgx_map_display() local
876 &lmac_id); in rvu_dbg_rvu_pf_cgx_map_display()
878 sprintf(lmac, "LMAC%d", lmac_id); in rvu_dbg_rvu_pf_cgx_map_display()
2376 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \
2386 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \
2393 static int cgx_print_stats(struct seq_file *s, int lmac_id) in cgx_print_stats() argument
2415 err = cgx_get_link_info(cgxd, lmac_id, &linfo); in cgx_print_stats()
2467 err = mac_ops->mac_get_rx_stats(cgxd, lmac_id, stat, &rx_stat); in cgx_print_stats()
2483 err = mac_ops->mac_get_tx_stats(cgxd, lmac_id, stat, &tx_stat); in cgx_print_stats()
2499 static int rvu_dbg_derive_lmacid(struct seq_file *filp, int *lmac_id) in rvu_dbg_derive_lmacid() argument
[all …]
Drvu.h788 static inline void rvu_get_cgx_lmac_id(u8 map, u8 *cgx_id, u8 *lmac_id) in rvu_get_cgx_lmac_id() argument
791 *lmac_id = (map & 0xF); in rvu_get_cgx_lmac_id()
811 int rvu_cgx_nix_cuml_stats(struct rvu *rvu, void *cgxd, int lmac_id, int index,
908 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id);
909 int rvu_cgx_config_tx(void *cgxd, int lmac_id, bool enable);
971 void rvu_mcs_ptp_cfg(struct rvu *rvu, u8 rpm_id, u8 lmac_id, bool ena);
Dmcs_cnf10kb.c248 event.lmac_id = i & 0x3ULL; in cnf10kb_mcs_bbe_intr_handler()
274 event.lmac_id = i; in cnf10kb_mcs_pab_intr_handler()
Dmcs.h92 u8 lmac_id; member
200 void mcs_set_lmac_mode(struct mcs *mcs, int lmac_id, u8 mode);
Dmcs.c1328 void mcs_set_lmac_mode(struct mcs *mcs, int lmac_id, u8 mode) in mcs_set_lmac_mode() argument
1331 int id = lmac_id * 2; in mcs_set_lmac_mode()
1376 static void mcs_lmac_init(struct mcs *mcs, int lmac_id) in mcs_lmac_init() argument
1381 reg = MCSX_PAB_RX_SLAVE_PORT_CFGX(lmac_id); in mcs_lmac_init()
1385 reg = MCSX_PAB_RX_SLAVE_FIFO_SKID_CFGX(lmac_id); in mcs_lmac_init()
1390 reg = MCSX_PAB_TX_SLAVE_PORT_CFGX(lmac_id); in mcs_lmac_init()
Drvu_nix.c313 u8 cgx_id, lmac_id; in nix_interface_init() local
325 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in nix_interface_init()
333 pfvf->rx_chan_base = rvu_nix_chan_cgx(rvu, cgx_id, lmac_id, 0); in nix_interface_init()
337 rsp->tx_link = cgx_id * hw->lmac_per_cgx + lmac_id; in nix_interface_init()
339 cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, pkind); in nix_interface_init()
514 u8 cgx_id, lmac_id; in rvu_nix_get_bpid() local
544 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in rvu_nix_get_bpid()
547 (lmac_id * lmac_chan_cnt) + req->chan_base; in rvu_nix_get_bpid()
1878 u8 cgx_id = 0, lmac_id = 0; in nix_get_tx_link() local
1883 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in nix_get_tx_link()
[all …]
Drvu_npc_hash.h165 u8 lmac_id; member
/drivers/net/wireless/intel/iwlwifi/fw/api/
Dbinding.h55 __le32 lmac_id; member
Dphy-ctxt.h154 __le32 lmac_id; member
Dmac-cfg.h605 __le32 lmac_id; member
/drivers/net/wireless/ath/ath11k/
Dhal_tx.h36 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()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dmld-sta.c120 u32 lmac_id) in iwl_mvm_add_aux_sta_to_fw() argument
126 .lmac_id = cpu_to_le32(lmac_id), in iwl_mvm_add_aux_sta_to_fw()
297 int iwl_mvm_mld_add_aux_sta(struct iwl_mvm *mvm, u32 lmac_id) in iwl_mvm_mld_add_aux_sta() argument
306 STATION_TYPE_AUX, lmac_id, NULL, in iwl_mvm_mld_add_aux_sta()
Dsta.h539 int iwl_mvm_add_aux_sta(struct iwl_mvm *mvm, u32 lmac_id);
632 int iwl_mvm_mld_add_aux_sta(struct iwl_mvm *mvm, u32 lmac_id);
Dbinding.c35 cmd.lmac_id = cpu_to_le32(iwl_mvm_get_lmac_id(mvm, in iwl_mvm_binding_cmd()
/drivers/net/wireless/ath/ath12k/
Dhal_tx.c59 le32_encode_bits(ti->lmac_id, HAL_TCL_DATA_CMD_INFO3_PMAC_ID) | in ath12k_hal_tx_cmd_desc_setup()
Dhal_tx.h38 u8 lmac_id; member

12