/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rpm.c | 62 int rpm_lmac_tx_enable(void *rpmd, int lmac_id, bool enable) in rpm_lmac_tx_enable() argument 67 if (!is_lmac_valid(rpm, lmac_id)) in rpm_lmac_tx_enable() 70 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_tx_enable() 78 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_tx_enable() 82 int rpm_lmac_rx_tx_enable(void *rpmd, int lmac_id, bool enable) in rpm_lmac_rx_tx_enable() argument 87 if (!is_lmac_valid(rpm, lmac_id)) in rpm_lmac_rx_tx_enable() 90 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_rx_tx_enable() 95 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_rx_tx_enable() 99 void rpm_lmac_enadis_rx_pause_fwding(void *rpmd, int lmac_id, bool enable) in rpm_lmac_enadis_rx_pause_fwding() argument 108 lmac = lmac_pdata(lmac_id, rpm); in rpm_lmac_enadis_rx_pause_fwding() [all …]
|
D | cgx.c | 61 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 …]
|
D | cgx.h | 121 u8 lmac_id; member 140 int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind); 141 int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id); 142 int cgx_lmac_evh_unregister(void *cgxd, int lmac_id); 143 int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat); 144 int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat); 145 int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable); 146 int cgx_lmac_tx_enable(void *cgxd, int lmac_id, bool enable); 147 int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr); 148 int cgx_lmac_addr_reset(u8 cgx_id, u8 lmac_id); [all …]
|
D | lmac_common.h | 45 u8 lmac_id; member 82 u8 (*get_lmac_type)(void *cgx, int lmac_id); 83 u32 (*lmac_fifo_len)(void *cgx, int lmac_id); 84 int (*mac_lmac_intl_lbk)(void *cgx, int lmac_id, 87 int (*mac_get_rx_stats)(void *cgx, int lmac_id, 89 int (*mac_get_tx_stats)(void *cgx, int lmac_id, 94 int lmac_id, 98 int lmac_id, 103 int lmac_id, 108 int lmac_id, [all …]
|
D | rvu_cgx.c | 46 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() 59 static u16 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) in cgxlmac_to_pfmap() argument 61 return rvu->cgxlmac2pf_map[CGX_OFFSET(cgx_id) + lmac_id]; in cgxlmac_to_pfmap() 64 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id) in cgxlmac_to_pf() argument 68 pfmap = cgxlmac_to_pfmap(rvu, cgx_id, lmac_id); in cgxlmac_to_pf() 77 static u8 cgxlmac_id_to_bmap(u8 cgx_id, u8 lmac_id) in cgxlmac_id_to_bmap() argument 79 return ((cgx_id & 0xF) << 4) | (lmac_id & 0xF); in cgxlmac_id_to_bmap() 107 int cgx_id, int lmac_id) in rvu_map_cgx_nix_block() argument 112 p2x = cgx_lmac_get_p2x(cgx_id, lmac_id); in rvu_map_cgx_nix_block() [all …]
|
D | rpm.h | 82 u8 rpm_get_lmac_type(void *rpmd, int lmac_id); 83 u32 rpm_get_lmac_fifo_len(void *rpmd, int lmac_id); 84 int rpm_lmac_internal_loopback(void *rpmd, int lmac_id, bool enable); 85 void rpm_lmac_enadis_rx_pause_fwding(void *rpmd, int lmac_id, bool enable); 86 int rpm_lmac_get_pause_frm_status(void *cgxd, int lmac_id, u8 *tx_pause, 88 void rpm_lmac_pause_frm_config(void *rpmd, int lmac_id, bool enable); 89 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause, 91 int rpm_get_tx_stats(void *rpmd, int lmac_id, int idx, u64 *tx_stat); 92 int rpm_get_rx_stats(void *rpmd, int lmac_id, int idx, u64 *rx_stat); 93 void rpm_lmac_ptp_config(void *rpmd, int lmac_id, bool enable); [all …]
|
D | rvu_npc_hash.c | 747 u32 index, u8 cgx_id, u8 lmac_id, u8 *mac_addr, u16 chan, in rvu_npc_exact_add_to_list() argument 803 entry->lmac_id = lmac_id; in rvu_npc_exact_add_to_list() 1023 u8 cgx_id, u8 lmac_id, in rvu_npc_exact_calc_drop_rule_chan_and_mask() argument 1032 chan_val = rvu_nix_chan_cgx(rvu, cgx_id, lmac_id, 0); in rvu_npc_exact_calc_drop_rule_chan_and_mask() 1088 u8 lmac_id, u32 *drop_mcam_idx, u64 *val, in rvu_npc_exact_get_drop_rule_info() argument 1104 lmac_id, &chan_val, &chan_mask); in rvu_npc_exact_get_drop_rule_info() 1133 __func__, cgx_id, lmac_id); in rvu_npc_exact_get_drop_rule_info() 1228 entry->lmac_id, &drop_mcam_idx, NULL, NULL, NULL); in rvu_npc_exact_del_table_entry_by_id() 1276 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 1307 err = rvu_npc_exact_add_to_list(rvu, opc_type, ways, index, cgx_id, lmac_id, in rvu_npc_exact_add_table_entry() [all …]
|
D | rvu_debugfs.c | 849 u8 cgx_id, lmac_id; in rvu_dbg_rvu_pf_cgx_map_display() local 878 &lmac_id); in rvu_dbg_rvu_pf_cgx_map_display() 880 sprintf(lmac, "LMAC%d", lmac_id); in rvu_dbg_rvu_pf_cgx_map_display() 2373 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \ 2383 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \ 2390 static int cgx_print_stats(struct seq_file *s, int lmac_id) in cgx_print_stats() argument 2412 err = cgx_get_link_info(cgxd, lmac_id, &linfo); in cgx_print_stats() 2464 err = mac_ops->mac_get_rx_stats(cgxd, lmac_id, stat, &rx_stat); in cgx_print_stats() 2480 err = mac_ops->mac_get_tx_stats(cgxd, lmac_id, stat, &tx_stat); in cgx_print_stats() 2496 static int rvu_dbg_derive_lmacid(struct seq_file *filp, int *lmac_id) in rvu_dbg_derive_lmacid() argument [all …]
|
D | rvu.h | 722 static inline void rvu_get_cgx_lmac_id(u8 map, u8 *cgx_id, u8 *lmac_id) in rvu_get_cgx_lmac_id() argument 725 *lmac_id = (map & 0xF); in rvu_get_cgx_lmac_id() 745 int rvu_cgx_nix_cuml_stats(struct rvu *rvu, void *cgxd, int lmac_id, int index, 839 int cgxlmac_to_pf(struct rvu *rvu, int cgx_id, int lmac_id); 840 int rvu_cgx_config_tx(void *cgxd, int lmac_id, bool enable);
|
D | mcs.h | 101 u8 lmac_id; member 205 void mcs_set_lmac_mode(struct mcs *mcs, int lmac_id, u8 mode);
|
D | mcs.c | 957 event.lmac_id = i & 0x3ULL; in mcs_bbe_intr_handler() 981 event.lmac_id = i; in mcs_pab_intr_handler() 1325 void mcs_set_lmac_mode(struct mcs *mcs, int lmac_id, u8 mode) in mcs_set_lmac_mode() argument 1329 reg = MCSX_MCS_TOP_SLAVE_CHANNEL_CFG(lmac_id * 2); in mcs_set_lmac_mode() 1370 static void mcs_lmac_init(struct mcs *mcs, int lmac_id) in mcs_lmac_init() argument 1375 reg = MCSX_PAB_RX_SLAVE_PORT_CFGX(lmac_id); in mcs_lmac_init() 1379 reg = MCSX_PAB_RX_SLAVE_FIFO_SKID_CFGX(lmac_id); in mcs_lmac_init() 1384 reg = MCSX_PAB_TX_SLAVE_PORT_CFGX(lmac_id); in mcs_lmac_init()
|
D | rvu_nix.c | 300 u8 cgx_id, lmac_id; in nix_interface_init() local 312 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in nix_interface_init() 320 pfvf->rx_chan_base = rvu_nix_chan_cgx(rvu, cgx_id, lmac_id, 0); in nix_interface_init() 324 rsp->tx_link = cgx_id * hw->lmac_per_cgx + lmac_id; in nix_interface_init() 326 cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, pkind); in nix_interface_init() 501 u8 cgx_id, lmac_id; in rvu_nix_get_bpid() local 531 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in rvu_nix_get_bpid() 534 (lmac_id * lmac_chan_cnt) + req->chan_base; in rvu_nix_get_bpid() 1798 u8 cgx_id = 0, lmac_id = 0; in nix_get_tx_link() local 1803 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in nix_get_tx_link() [all …]
|
D | mcs_rvu_if.c | 46 if (BIT_ULL(req->lmac_id) & mcs->hw->lmac_bmap) in rvu_mbox_handler_mcs_set_lmac_mode() 47 mcs_set_lmac_mode(mcs, req->lmac_id, req->mode); in rvu_mbox_handler_mcs_set_lmac_mode() 99 req->lmac_id = event->lmac_id; in mcs_notify_pfvf()
|
D | rvu_npc_hash.h | 159 u8 lmac_id; member
|
D | mbox.h | 1867 u8 lmac_id; member 2112 u8 lmac_id; member 2121 u8 lmac_id; member
|
D | rvu_npc.c | 3265 u8 cgx_id, lmac_id; in rvu_npc_set_parse_mode() local 3289 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_npc_set_parse_mode() 3291 rc = cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, in rvu_npc_set_parse_mode()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | binding.h | 55 __le32 lmac_id; member
|
D | phy-ctxt.h | 155 __le32 lmac_id; member
|
/linux-6.1.9/drivers/net/wireless/ath/ath11k/ |
D | hal_tx.h | 36 u8 lmac_id; member
|
D | hal_tx.c | 69 FIELD_PREP(HAL_TCL_DATA_CMD_INFO2_LMAC_ID, ti->lmac_id); in ath11k_hal_tx_cmd_desc_setup()
|
D | dp_tx.c | 169 ti.lmac_id = ar->lmac_id; in ath11k_dp_tx()
|
D | core.h | 647 u8 lmac_id; member
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | binding.c | 34 cmd.lmac_id = cpu_to_le32(iwl_mvm_get_lmac_id(mvm->fw, in iwl_mvm_binding_cmd()
|
D | sta.h | 509 int iwl_mvm_add_aux_sta(struct iwl_mvm *mvm, u32 lmac_id);
|
D | phy-ctxt.c | 154 cmd->lmac_id = cpu_to_le32(iwl_mvm_get_lmac_id(mvm->fw, in iwl_mvm_phy_ctxt_cmd_data()
|