| /Linux-v5.10/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-v5.10/drivers/net/ethernet/marvell/octeontx2/af/ |
| D | cgx.c | 41 struct lmac { struct 59 struct lmac *lmac_idmap[MAX_LMAC_PER_CGX]; argument 84 static void cgx_write(struct cgx *cgx, u64 lmac, u64 offset, u64 val) in cgx_write() argument 86 writeq(val, cgx->reg_base + (lmac << 18) + offset); in cgx_write() 89 static u64 cgx_read(struct cgx *cgx, u64 lmac, u64 offset) in cgx_read() argument 91 return readq(cgx->reg_base + (lmac << 18) + offset); in cgx_read() 94 static inline struct lmac *lmac_pdata(u8 lmac_id, struct cgx *cgx) in lmac_pdata() 156 struct lmac *lmac = lmac_pdata(lmac_id, cgxd); in cgx_get_link_info() local 158 if (!lmac) in cgx_get_link_info() 161 *linfo = lmac->link_info; in cgx_get_link_info() [all …]
|
| D | rvu_cgx.c | 81 int cgx, lmac_cnt, lmac; in rvu_map_cgx_lmac_pf() local 115 for (lmac = 0; lmac < lmac_cnt; lmac++, pf++) { in rvu_map_cgx_lmac_pf() 116 rvu->pf2cgxlmac_map[pf] = cgxlmac_id_to_bmap(cgx, lmac); in rvu_map_cgx_lmac_pf() 117 rvu->cgxlmac2pf_map[CGX_OFFSET(cgx) + lmac] = 1 << pf; in rvu_map_cgx_lmac_pf() 240 int cgx, lmac, err; in cgx_lmac_event_handler_init() local 259 for (lmac = 0; lmac < cgx_get_lmac_cnt(cgxd); lmac++) { in cgx_lmac_event_handler_init() 260 err = cgx_lmac_evh_register(&cb, cgxd, lmac); in cgx_lmac_event_handler_init() 264 cgx, lmac); in cgx_lmac_event_handler_init() 337 int cgx, lmac; in rvu_cgx_exit() local 344 for (lmac = 0; lmac < cgx_get_lmac_cnt(cgxd); lmac++) in rvu_cgx_exit() [all …]
|
| D | rvu.h | 49 struct dentry *lmac; member
|
| D | rvu_debugfs.c | 1510 rvu->rvu_dbg.lmac = in rvu_dbg_cgx_init() 1514 rvu->rvu_dbg.lmac, cgx, in rvu_dbg_cgx_init()
|
| D | rvu_nix.c | 2807 u8 cgx = 0, lmac = 0; in rvu_mbox_handler_nix_set_hw_frs() local 2853 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx, &lmac); in rvu_mbox_handler_nix_set_hw_frs() 2854 link = (cgx * hw->lmac_per_cgx) + lmac; in rvu_mbox_handler_nix_set_hw_frs()
|
| /Linux-v5.10/drivers/net/wireless/intel/iwlwifi/fw/ |
| D | smem.c | 70 int i, lmac; in iwl_parse_shared_mem_22000() local 89 for (lmac = 0; lmac < lmac_num; lmac++) { in iwl_parse_shared_mem_22000() 91 &mem_cfg->lmac_smem[lmac]; in iwl_parse_shared_mem_22000() 94 fwrt->smem_cfg.lmac[lmac].txfifo_size[i] = in iwl_parse_shared_mem_22000() 96 fwrt->smem_cfg.lmac[lmac].rxfifo1_size = in iwl_parse_shared_mem_22000() 111 fwrt->smem_cfg.lmac[0].txfifo_size[i] = in iwl_parse_shared_mem() 114 fwrt->smem_cfg.lmac[0].rxfifo1_size = in iwl_parse_shared_mem()
|
| D | dbg.h | 367 struct iwl_lmac_alive *lmac, in iwl_fwrt_update_fw_versions() argument 370 if (lmac) { in iwl_fwrt_update_fw_versions() 371 fwrt->dump.fw_ver.type = lmac->ver_type; in iwl_fwrt_update_fw_versions() 372 fwrt->dump.fw_ver.subtype = lmac->ver_subtype; in iwl_fwrt_update_fw_versions() 373 fwrt->dump.fw_ver.lmac_major = le32_to_cpu(lmac->ucode_major); in iwl_fwrt_update_fw_versions() 374 fwrt->dump.fw_ver.lmac_minor = le32_to_cpu(lmac->ucode_minor); in iwl_fwrt_update_fw_versions()
|
| D | runtime.h | 87 } lmac[MAX_NUM_LMAC]; member 134 int lmac; member
|
| D | dbg.c | 242 cfg->lmac[0].rxfifo1_size, 0, 0); in iwl_fw_dump_rxf() 250 cfg->lmac[1].rxfifo1_size, in iwl_fw_dump_rxf() 278 cfg->lmac[0].txfifo_size[i], 0, i); in iwl_fw_dump_txf() 290 cfg->lmac[1].txfifo_size[i], in iwl_fw_dump_txf() 749 ADD_LEN(fifo_len, mem_cfg->lmac[i].rxfifo1_size, hdr_len); in iwl_fw_rxf_len() 773 ADD_LEN(fifo_len, mem_cfg->lmac[i].txfifo_size[j], in iwl_fw_txf_len() 958 u32 *txf_size = mem_cfg->lmac[i].txfifo_size; in iwl_fw_error_dump_file() 961 dump_smem_cfg->lmac[i].txfifo_size[j] = in iwl_fw_error_dump_file() 963 dump_smem_cfg->lmac[i].rxfifo1_size = in iwl_fw_error_dump_file() 964 cpu_to_le32(mem_cfg->lmac[i].rxfifo1_size); in iwl_fw_error_dump_file() [all …]
|
| D | error-dump.h | 250 } lmac[MAX_NUM_LMAC]; member
|
| /Linux-v5.10/net/llc/ |
| D | llc_if.c | 83 int llc_establish_connection(struct sock *sk, u8 *lmac, u8 *dmac, u8 dsap) in llc_establish_connection() argument 94 memcpy(laddr.mac, lmac, sizeof(laddr.mac)); in llc_establish_connection()
|
| /Linux-v5.10/include/net/ |
| D | llc_if.h | 65 int llc_establish_connection(struct sock *sk, u8 *lmac, u8 *dmac, u8 dsap);
|
| /Linux-v5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
| D | tx.c | 796 int lmac = iwl_mvm_get_lmac_id(mvm->fw, band); in iwl_mvm_max_amsdu_size() local 811 mvm->fwrt.smem_cfg.lmac[lmac].txfifo_size[txf] - 256); in iwl_mvm_max_amsdu_size()
|