/linux-6.1.9/drivers/net/ethernet/cavium/thunder/ |
D | thunder_bgx.c | 42 struct lmac { struct 69 struct lmac lmac[MAX_LMAC_PER_BGX]; argument 82 static int bgx_xaui_check_link(struct lmac *lmac); 107 static u64 bgx_reg_read(struct bgx *bgx, u8 lmac, u64 offset) in bgx_reg_read() argument 109 void __iomem *addr = bgx->reg_base + ((u32)lmac << 20) + offset; in bgx_reg_read() 114 static void bgx_reg_write(struct bgx *bgx, u8 lmac, u64 offset, u64 val) in bgx_reg_write() argument 116 void __iomem *addr = bgx->reg_base + ((u32)lmac << 20) + offset; in bgx_reg_write() 121 static void bgx_reg_modify(struct bgx *bgx, u8 lmac, u64 offset, u64 val) in bgx_reg_modify() argument 123 void __iomem *addr = bgx->reg_base + ((u32)lmac << 20) + offset; in bgx_reg_modify() 128 static int bgx_poll_reg(struct bgx *bgx, u8 lmac, u64 reg, u64 mask, bool zero) in bgx_poll_reg() argument [all …]
|
D | nic_main.c | 53 #define NIC_SET_VF_LMAC_MAP(bgx, lmac) (((bgx & 0xF) << 4) | (lmac & 0xF)) argument 161 int bgx_idx, lmac; in nic_mbx_send_ready() local 171 lmac = NIC_GET_LMAC_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vf]); in nic_mbx_send_ready() 173 mac = bgx_get_lmac_mac(nic->node, bgx_idx, lmac); in nic_mbx_send_ready() 233 int bgx_idx, lmac; in nic_get_bgx_stats() local 237 lmac = NIC_GET_LMAC_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats() 245 lmac, bgx->idx); in nic_get_bgx_stats() 248 lmac, bgx->idx); in nic_get_bgx_stats() 255 int bgx, lmac, lmac_cnt; in nic_update_hw_frs() local 262 lmac = NIC_GET_LMAC_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vf]); in nic_update_hw_frs() [all …]
|
D | thunder_bgx.h | 224 void bgx_add_dmac_addr(u64 dmac, int node, int bgx_idx, int lmac); 239 u64 bgx_get_rx_stats(int node, int bgx_idx, int lmac, int idx); 240 u64 bgx_get_tx_stats(int node, int bgx_idx, int lmac, int idx);
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/ |
D | cgx.c | 110 void cgx_write(struct cgx *cgx, u64 lmac, u64 offset, u64 val) in cgx_write() argument 112 writeq(val, cgx->reg_base + (lmac << cgx->mac_ops->lmac_offset) + in cgx_write() 116 u64 cgx_read(struct cgx *cgx, u64 lmac, u64 offset) in cgx_read() argument 118 return readq(cgx->reg_base + (lmac << cgx->mac_ops->lmac_offset) + in cgx_read() 122 struct lmac *lmac_pdata(u8 lmac_id, struct cgx *cgx) in lmac_pdata() 208 struct lmac *lmac = lmac_pdata(lmac_id, cgxd); in cgx_get_link_info() local 210 if (!lmac) in cgx_get_link_info() 213 *linfo = lmac->link_info; in cgx_get_link_info() 238 struct lmac *lmac = lmac_pdata(lmac_id, cgx_dev); in cgx_lmac_addr_set() local 253 index = id * lmac->mac_to_index_bmap.max; in cgx_lmac_addr_set() [all …]
|
D | lmac_common.h | 31 struct lmac { struct 131 struct lmac *lmac_idmap[MAX_LMAC_PER_CGX]; 147 void cgx_write(struct cgx *cgx, u64 lmac, u64 offset, u64 val); 148 u64 cgx_read(struct cgx *cgx, u64 lmac, u64 offset); 149 struct lmac *lmac_pdata(u8 lmac_id, struct cgx *cgx); 150 int cgx_fwi_cmd_send(u64 req, u64 *resp, struct lmac *lmac);
|
D | rvu_cgx.c | 126 int cgx, lmac, iter; in rvu_map_cgx_lmac_pf() local 160 lmac = cgx_get_lmacid(rvu_cgx_pdata(cgx, rvu), in rvu_map_cgx_lmac_pf() 162 rvu->pf2cgxlmac_map[pf] = cgxlmac_id_to_bmap(cgx, lmac); in rvu_map_cgx_lmac_pf() 163 rvu->cgxlmac2pf_map[CGX_OFFSET(cgx) + lmac] = 1 << pf; in rvu_map_cgx_lmac_pf() 166 rvu_map_cgx_nix_block(rvu, pf, cgx, lmac); in rvu_map_cgx_lmac_pf() 293 int cgx, lmac, err; in cgx_lmac_event_handler_init() local 313 for_each_set_bit(lmac, &lmac_bmap, MAX_LMAC_PER_CGX) { in cgx_lmac_event_handler_init() 314 err = cgx_lmac_evh_register(&cb, cgxd, lmac); in cgx_lmac_event_handler_init() 318 cgx, lmac); in cgx_lmac_event_handler_init() 391 int cgx, lmac; in rvu_cgx_exit() local [all …]
|
D | rpm.c | 45 static void rpm_write(rpm_t *rpm, u64 lmac, u64 offset, u64 val) in rpm_write() argument 47 cgx_write(rpm, lmac, offset, val); in rpm_write() 50 static u64 rpm_read(rpm_t *rpm, u64 lmac, u64 offset) in rpm_read() argument 52 return cgx_read(rpm, lmac, offset); in rpm_read() 102 struct lmac *lmac; in rpm_lmac_enadis_rx_pause_fwding() local 108 lmac = lmac_pdata(lmac_id, rpm); in rpm_lmac_enadis_rx_pause_fwding() 109 if (!lmac) in rpm_lmac_enadis_rx_pause_fwding() 113 if (!bitmap_weight(lmac->rx_fc_pfvf_bmap.bmap, lmac->rx_fc_pfvf_bmap.max)) in rpm_lmac_enadis_rx_pause_fwding()
|
D | mcs_rvu_if.c | 816 int cgx, lmac, port; in rvu_mcs_set_lmac_bmap() local 820 lmac = port % rvu->hw->lmac_per_cgx; in rvu_mcs_set_lmac_bmap() 821 if (!is_lmac_valid(rvu_cgx_pdata(cgx, rvu), lmac)) in rvu_mcs_set_lmac_bmap() 831 int lmac, err = 0, mcs_id; in rvu_mcs_init() local 852 for (lmac = 0; lmac < mcs->hw->lmac_cnt; lmac++) in rvu_mcs_init() 853 mcs_set_lmac_mode(mcs, lmac, 0); in rvu_mcs_init()
|
D | rvu_cn10k.c | 520 int cgx, lmac; in rvu_rpm_set_channels() local 523 for (lmac = 0; lmac < hw->lmac_per_cgx; lmac++) { in rvu_rpm_set_channels() 524 __rvu_rpm_set_channels(cgx, lmac, base); in rvu_rpm_set_channels()
|
D | mcs.c | 1391 int lmac; in mcs_set_lmac_channels() local 1397 for (lmac = 0; lmac < mcs->hw->lmac_cnt; lmac++) { in mcs_set_lmac_channels() 1398 cfg = mcs_reg_read(mcs, MCSX_LINK_LMACX_CFG(lmac)); in mcs_set_lmac_channels() 1402 mcs_reg_write(mcs, MCSX_LINK_LMACX_CFG(lmac), cfg); in mcs_set_lmac_channels() 1500 int lmac, err = 0; in mcs_probe() local 1564 for (lmac = 0; lmac < mcs->hw->lmac_cnt; lmac++) in mcs_probe() 1565 mcs_lmac_init(mcs, lmac); in mcs_probe()
|
D | rvu_debugfs.c | 235 int lmac; in rvu_dbg_mcs_port_stats_display() local 239 for_each_set_bit(lmac, &mcs->hw->lmac_bmap, mcs->hw->lmac_cnt) { in rvu_dbg_mcs_port_stats_display() 240 mcs_get_port_stats(mcs, &stats, lmac, dir); in rvu_dbg_mcs_port_stats_display() 241 seq_printf(filp, "port%d: Tcam Miss: %lld\n", lmac, stats.tcam_miss_cnt); in rvu_dbg_mcs_port_stats_display() 242 seq_printf(filp, "port%d: Parser errors: %lld\n", lmac, stats.parser_err_cnt); in rvu_dbg_mcs_port_stats_display() 245 seq_printf(filp, "port%d: Preempt error: %lld\n", lmac, in rvu_dbg_mcs_port_stats_display() 248 seq_printf(filp, "port%d: Sectag insert error: %lld\n", lmac, in rvu_dbg_mcs_port_stats_display() 846 char cgx[10], lmac[10]; in rvu_dbg_rvu_pf_cgx_map_display() local 868 lmac[0] = 0; in rvu_dbg_rvu_pf_cgx_map_display() 880 sprintf(lmac, "LMAC%d", lmac_id); in rvu_dbg_rvu_pf_cgx_map_display() [all …]
|
D | rvu.h | 62 struct dentry *lmac; member 844 u32 rvu_cgx_get_lmac_fifolen(struct rvu *rvu, int cgx, int lmac);
|
D | rvu_nix.c | 3937 u8 cgx = 0, lmac = 0; in rvu_mbox_handler_nix_set_hw_frs() local 3989 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx, &lmac); in rvu_mbox_handler_nix_set_hw_frs() 3990 link = (cgx * hw->lmac_per_cgx) + lmac; in rvu_mbox_handler_nix_set_hw_frs() 4013 lmac_fifo_len = rvu_cgx_get_lmac_fifolen(rvu, cgx, lmac); in rvu_mbox_handler_nix_set_hw_frs() 4017 __func__, cgx, lmac); in rvu_mbox_handler_nix_set_hw_frs()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/ |
D | smem.c | 15 int i, lmac; in iwl_parse_shared_mem_22000() local 34 for (lmac = 0; lmac < lmac_num; lmac++) { in iwl_parse_shared_mem_22000() 36 &mem_cfg->lmac_smem[lmac]; in iwl_parse_shared_mem_22000() 39 fwrt->smem_cfg.lmac[lmac].txfifo_size[i] = in iwl_parse_shared_mem_22000() 41 fwrt->smem_cfg.lmac[lmac].rxfifo1_size = in iwl_parse_shared_mem_22000() 56 fwrt->smem_cfg.lmac[0].txfifo_size[i] = in iwl_parse_shared_mem() 59 fwrt->smem_cfg.lmac[0].rxfifo1_size = in iwl_parse_shared_mem()
|
D | dbg.h | 310 struct iwl_lmac_alive *lmac, in iwl_fwrt_update_fw_versions() argument 313 if (lmac) { in iwl_fwrt_update_fw_versions() 314 fwrt->dump.fw_ver.type = lmac->ver_type; in iwl_fwrt_update_fw_versions() 315 fwrt->dump.fw_ver.subtype = lmac->ver_subtype; in iwl_fwrt_update_fw_versions() 316 fwrt->dump.fw_ver.lmac_major = le32_to_cpu(lmac->ucode_major); in iwl_fwrt_update_fw_versions() 317 fwrt->dump.fw_ver.lmac_minor = le32_to_cpu(lmac->ucode_minor); in iwl_fwrt_update_fw_versions()
|
D | runtime.h | 33 } lmac[MAX_NUM_LMAC]; member 80 int lmac; member
|
D | dbg.c | 187 cfg->lmac[0].rxfifo1_size, 0, 0); in iwl_fw_dump_rxf() 195 cfg->lmac[1].rxfifo1_size, in iwl_fw_dump_rxf() 222 cfg->lmac[0].txfifo_size[i], 0, i); in iwl_fw_dump_txf() 234 cfg->lmac[1].txfifo_size[i], in iwl_fw_dump_txf() 693 ADD_LEN(fifo_len, mem_cfg->lmac[i].rxfifo1_size, hdr_len); in iwl_fw_rxf_len() 717 ADD_LEN(fifo_len, mem_cfg->lmac[i].txfifo_size[j], in iwl_fw_txf_len() 908 u32 *txf_size = mem_cfg->lmac[i].txfifo_size; in iwl_fw_error_dump_file() 911 dump_smem_cfg->lmac[i].txfifo_size[j] = in iwl_fw_error_dump_file() 913 dump_smem_cfg->lmac[i].rxfifo1_size = in iwl_fw_error_dump_file() 914 cpu_to_le32(mem_cfg->lmac[i].rxfifo1_size); in iwl_fw_error_dump_file() [all …]
|
D | error-dump.h | 193 } lmac[MAX_NUM_LMAC]; member
|
/linux-6.1.9/net/llc/ |
D | llc_if.c | 83 int llc_establish_connection(struct sock *sk, const u8 *lmac, u8 *dmac, u8 dsap) in llc_establish_connection() argument 94 memcpy(laddr.mac, lmac, sizeof(laddr.mac)); in llc_establish_connection()
|
/linux-6.1.9/include/net/ |
D | llc_if.h | 65 int llc_establish_connection(struct sock *sk, const u8 *lmac, u8 *dmac,
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | tx.c | 794 int lmac = iwl_mvm_get_lmac_id(mvm->fw, band); in iwl_mvm_max_amsdu_size() local 809 mvm->fwrt.smem_cfg.lmac[lmac].txfifo_size[txf] - 256); in iwl_mvm_max_amsdu_size()
|