| /Linux-v5.15/drivers/net/ethernet/cavium/thunder/ |
| D | thunder_bgx.c | 42 struct lmac { struct 69 struct lmac lmac[MAX_LMAC_PER_BGX]; member 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.15/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 | 29 struct lmac { struct 112 struct lmac *lmac_idmap[MAX_LMAC_PER_CGX]; 128 void cgx_write(struct cgx *cgx, u64 lmac, u64 offset, u64 val); 129 u64 cgx_read(struct cgx *cgx, u64 lmac, u64 offset); 130 struct lmac *lmac_pdata(u8 lmac_id, struct cgx *cgx); 131 int cgx_fwi_cmd_send(u64 req, u64 *resp, struct lmac *lmac);
|
| D | rvu_cgx.c | 125 int cgx, lmac, iter; in rvu_map_cgx_lmac_pf() local 159 lmac = cgx_get_lmacid(rvu_cgx_pdata(cgx, rvu), in rvu_map_cgx_lmac_pf() 161 rvu->pf2cgxlmac_map[pf] = cgxlmac_id_to_bmap(cgx, lmac); in rvu_map_cgx_lmac_pf() 162 rvu->cgxlmac2pf_map[CGX_OFFSET(cgx) + lmac] = 1 << pf; in rvu_map_cgx_lmac_pf() 165 rvu_map_cgx_nix_block(rvu, pf, cgx, lmac); in rvu_map_cgx_lmac_pf() 292 int cgx, lmac, err; in cgx_lmac_event_handler_init() local 312 for_each_set_bit(lmac, &lmac_bmap, MAX_LMAC_PER_CGX) { in cgx_lmac_event_handler_init() 313 err = cgx_lmac_evh_register(&cb, cgxd, lmac); in cgx_lmac_event_handler_init() 317 cgx, lmac); in cgx_lmac_event_handler_init() 391 int cgx, lmac; in rvu_cgx_exit() local [all …]
|
| D | rpm.c | 39 static void rpm_write(rpm_t *rpm, u64 lmac, u64 offset, u64 val) in rpm_write() argument 41 cgx_write(rpm, lmac, offset, val); in rpm_write() 44 static u64 rpm_read(rpm_t *rpm, u64 lmac, u64 offset) in rpm_read() argument 46 return cgx_read(rpm, lmac, offset); in rpm_read()
|
| 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 | rvu_debugfs.c | 407 char cgx[10], lmac[10]; in rvu_dbg_rvu_pf_cgx_map_display() local 429 lmac[0] = 0; in rvu_dbg_rvu_pf_cgx_map_display() 441 sprintf(lmac, "LMAC%d", lmac_id); in rvu_dbg_rvu_pf_cgx_map_display() 443 dev_name(&pdev->dev), pcifunc, blkid, cgx, lmac); in rvu_dbg_rvu_pf_cgx_map_display() 2175 rvu->rvu_dbg.lmac = in rvu_dbg_cgx_init() 2178 debugfs_create_file("stats", 0600, rvu->rvu_dbg.lmac, in rvu_dbg_cgx_init() 2181 rvu->rvu_dbg.lmac, cgx, in rvu_dbg_cgx_init()
|
| D | rvu.h | 60 struct dentry *lmac; member
|
| D | rvu_nix.c | 3862 u8 cgx = 0, lmac = 0; in rvu_mbox_handler_nix_set_hw_frs() local 3914 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx, &lmac); in rvu_mbox_handler_nix_set_hw_frs() 3915 link = (cgx * hw->lmac_per_cgx) + lmac; in rvu_mbox_handler_nix_set_hw_frs()
|
| /Linux-v5.15/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 | 183 cfg->lmac[0].rxfifo1_size, 0, 0); in iwl_fw_dump_rxf() 191 cfg->lmac[1].rxfifo1_size, in iwl_fw_dump_rxf() 218 cfg->lmac[0].txfifo_size[i], 0, i); in iwl_fw_dump_txf() 230 cfg->lmac[1].txfifo_size[i], in iwl_fw_dump_txf() 688 ADD_LEN(fifo_len, mem_cfg->lmac[i].rxfifo1_size, hdr_len); in iwl_fw_rxf_len() 712 ADD_LEN(fifo_len, mem_cfg->lmac[i].txfifo_size[j], in iwl_fw_txf_len() 897 u32 *txf_size = mem_cfg->lmac[i].txfifo_size; in iwl_fw_error_dump_file() 900 dump_smem_cfg->lmac[i].txfifo_size[j] = in iwl_fw_error_dump_file() 902 dump_smem_cfg->lmac[i].rxfifo1_size = in iwl_fw_error_dump_file() 903 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-v5.15/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.15/include/net/ |
| D | llc_if.h | 65 int llc_establish_connection(struct sock *sk, u8 *lmac, u8 *dmac, u8 dsap);
|
| /Linux-v5.15/drivers/net/wireless/intel/iwlwifi/mvm/ |
| D | tx.c | 743 int lmac = iwl_mvm_get_lmac_id(mvm->fw, band); in iwl_mvm_max_amsdu_size() local 758 mvm->fwrt.smem_cfg.lmac[lmac].txfifo_size[txf] - 256); in iwl_mvm_max_amsdu_size()
|