Home
last modified time | relevance | path

Searched refs:lmac (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/cavium/thunder/
Dthunder_bgx.c42 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 …]
Dnic_main.c53 #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 …]
Dthunder_bgx.h215 void bgx_add_dmac_addr(u64 dmac, int node, int bgx_idx, int lmac);
230 u64 bgx_get_rx_stats(int node, int bgx_idx, int lmac, int idx);
231 u64 bgx_get_tx_stats(int node, int bgx_idx, int lmac, int idx);
/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Dcgx.c41 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()
149 struct lmac *lmac = lmac_pdata(lmac_id, cgxd); in cgx_get_link_info() local
151 if (!lmac) in cgx_get_link_info()
154 *linfo = lmac->link_info; in cgx_get_link_info()
[all …]
Drvu_cgx.c65 int cgx, lmac_cnt, lmac; in rvu_map_cgx_lmac_pf() local
99 for (lmac = 0; lmac < lmac_cnt; lmac++, pf++) { in rvu_map_cgx_lmac_pf()
100 rvu->pf2cgxlmac_map[pf] = cgxlmac_id_to_bmap(cgx, lmac); in rvu_map_cgx_lmac_pf()
101 rvu->cgxlmac2pf_map[CGX_OFFSET(cgx) + lmac] = 1 << pf; in rvu_map_cgx_lmac_pf()
224 int cgx, lmac, err; in cgx_lmac_event_handler_init() local
243 for (lmac = 0; lmac < cgx_get_lmac_cnt(cgxd); lmac++) { in cgx_lmac_event_handler_init()
244 err = cgx_lmac_evh_register(&cb, cgxd, lmac); in cgx_lmac_event_handler_init()
248 cgx, lmac); in cgx_lmac_event_handler_init()
319 int cgx, lmac; in rvu_cgx_exit() local
326 for (lmac = 0; lmac < cgx_get_lmac_cnt(cgxd); lmac++) in rvu_cgx_exit()
[all …]
Drvu_nix.c2377 u8 cgx = 0, lmac = 0; in rvu_mbox_handler_nix_set_hw_frs() local
2423 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx, &lmac); in rvu_mbox_handler_nix_set_hw_frs()
2424 link = (cgx * hw->lmac_per_cgx) + lmac; in rvu_mbox_handler_nix_set_hw_frs()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/fw/
Dsmem.c72 int i, lmac; in iwl_parse_shared_mem_22000() local
83 for (lmac = 0; lmac < lmac_num; lmac++) { in iwl_parse_shared_mem_22000()
85 &mem_cfg->lmac_smem[lmac]; in iwl_parse_shared_mem_22000()
88 fwrt->smem_cfg.lmac[lmac].txfifo_size[i] = in iwl_parse_shared_mem_22000()
90 fwrt->smem_cfg.lmac[lmac].rxfifo1_size = in iwl_parse_shared_mem_22000()
105 fwrt->smem_cfg.lmac[0].txfifo_size[i] = in iwl_parse_shared_mem()
108 fwrt->smem_cfg.lmac[0].rxfifo1_size = in iwl_parse_shared_mem()
Ddbg.h395 struct iwl_lmac_alive *lmac, in iwl_fwrt_update_fw_versions() argument
398 if (lmac) { in iwl_fwrt_update_fw_versions()
399 fwrt->dump.fw_ver.type = lmac->ver_type; in iwl_fwrt_update_fw_versions()
400 fwrt->dump.fw_ver.subtype = lmac->ver_subtype; in iwl_fwrt_update_fw_versions()
401 fwrt->dump.fw_ver.lmac_major = le32_to_cpu(lmac->ucode_major); in iwl_fwrt_update_fw_versions()
402 fwrt->dump.fw_ver.lmac_minor = le32_to_cpu(lmac->ucode_minor); in iwl_fwrt_update_fw_versions()
Druntime.h85 } lmac[MAX_NUM_LMAC]; member
102 int lmac; member
Ddbg.c242 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()
957 u32 *txf_size = mem_cfg->lmac[i].txfifo_size; in iwl_fw_error_dump_file()
960 dump_smem_cfg->lmac[i].txfifo_size[j] = in iwl_fw_error_dump_file()
962 dump_smem_cfg->lmac[i].rxfifo1_size = in iwl_fw_error_dump_file()
963 cpu_to_le32(mem_cfg->lmac[i].rxfifo1_size); in iwl_fw_error_dump_file()
[all …]
Derror-dump.h249 } lmac[MAX_NUM_LMAC]; member
/Linux-v5.4/net/llc/
Dllc_if.c83 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.4/include/net/
Dllc_if.h65 int llc_establish_connection(struct sock *sk, u8 *lmac, u8 *dmac, u8 dsap);
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/
Dtx.c798 int lmac = IWL_LMAC_24G_INDEX; in iwl_mvm_max_amsdu_size() local
802 lmac = IWL_LMAC_5G_INDEX; in iwl_mvm_max_amsdu_size()
817 mvm->fwrt.smem_cfg.lmac[lmac].txfifo_size[txf] - 256); in iwl_mvm_max_amsdu_size()