lmac_id 50 drivers/net/ethernet/marvell/octeontx2/af/cgx.c u8 lmac_id; lmac_id 74 drivers/net/ethernet/marvell/octeontx2/af/cgx.c static int cgx_fwi_link_change(struct cgx *cgx, int lmac_id, bool en); lmac_id 94 drivers/net/ethernet/marvell/octeontx2/af/cgx.c static inline struct lmac *lmac_pdata(u8 lmac_id, struct cgx *cgx) lmac_id 96 drivers/net/ethernet/marvell/octeontx2/af/cgx.c if (!cgx || lmac_id >= MAX_LMAC_PER_CGX) lmac_id 99 drivers/net/ethernet/marvell/octeontx2/af/cgx.c return cgx->lmac_idmap[lmac_id]; lmac_id 146 drivers/net/ethernet/marvell/octeontx2/af/cgx.c int cgx_get_link_info(void *cgxd, int lmac_id, lmac_id 149 drivers/net/ethernet/marvell/octeontx2/af/cgx.c struct lmac *lmac = lmac_pdata(lmac_id, cgxd); lmac_id 169 drivers/net/ethernet/marvell/octeontx2/af/cgx.c int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr) lmac_id 179 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(cgx_dev, 0, (CGXX_CMRX_RX_DMAC_CAM0 + (lmac_id * 0x8)), lmac_id 180 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cfg | CGX_DMAC_CAM_ADDR_ENABLE | ((u64)lmac_id << 49)); lmac_id 182 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cfg = cgx_read(cgx_dev, lmac_id, CGXX_CMRX_RX_DMAC_CTL0); lmac_id 184 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(cgx_dev, lmac_id, CGXX_CMRX_RX_DMAC_CTL0, cfg); lmac_id 190 drivers/net/ethernet/marvell/octeontx2/af/cgx.c u64 cgx_lmac_addr_get(u8 cgx_id, u8 lmac_id) lmac_id 195 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cfg = cgx_read(cgx_dev, 0, CGXX_CMRX_RX_DMAC_CAM0 + lmac_id * 0x8); lmac_id 200 drivers/net/ethernet/marvell/octeontx2/af/cgx.c int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind) lmac_id 204 drivers/net/ethernet/marvell/octeontx2/af/cgx.c if (!cgx || lmac_id >= cgx->lmac_count) lmac_id 207 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(cgx, lmac_id, CGXX_CMRX_RX_ID_MAP, (pkind & 0x3F)); lmac_id 212 drivers/net/ethernet/marvell/octeontx2/af/cgx.c static inline u8 cgx_get_lmac_type(struct cgx *cgx, int lmac_id) lmac_id 216 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cfg = cgx_read(cgx, lmac_id, CGXX_CMRX_CFG); lmac_id 221 drivers/net/ethernet/marvell/octeontx2/af/cgx.c int cgx_lmac_internal_loopback(void *cgxd, int lmac_id, bool enable) lmac_id 227 drivers/net/ethernet/marvell/octeontx2/af/cgx.c if (!cgx || lmac_id >= cgx->lmac_count) lmac_id 230 drivers/net/ethernet/marvell/octeontx2/af/cgx.c lmac_type = cgx_get_lmac_type(cgx, lmac_id); lmac_id 232 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cfg = cgx_read(cgx, lmac_id, CGXX_GMP_PCS_MRX_CTL); lmac_id 237 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(cgx, lmac_id, CGXX_GMP_PCS_MRX_CTL, cfg); lmac_id 239 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cfg = cgx_read(cgx, lmac_id, CGXX_SPUX_CONTROL1); lmac_id 244 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(cgx, lmac_id, CGXX_SPUX_CONTROL1, cfg); lmac_id 250 drivers/net/ethernet/marvell/octeontx2/af/cgx.c void cgx_lmac_promisc_config(int cgx_id, int lmac_id, bool enable) lmac_id 260 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cfg = cgx_read(cgx, lmac_id, CGXX_CMRX_RX_DMAC_CTL0); lmac_id 263 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(cgx, lmac_id, CGXX_CMRX_RX_DMAC_CTL0, cfg); lmac_id 266 drivers/net/ethernet/marvell/octeontx2/af/cgx.c (CGXX_CMRX_RX_DMAC_CAM0 + lmac_id * 0x8)); lmac_id 269 drivers/net/ethernet/marvell/octeontx2/af/cgx.c (CGXX_CMRX_RX_DMAC_CAM0 + lmac_id * 0x8), cfg); lmac_id 272 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cfg = cgx_read(cgx, lmac_id, CGXX_CMRX_RX_DMAC_CTL0); lmac_id 274 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(cgx, lmac_id, CGXX_CMRX_RX_DMAC_CTL0, cfg); lmac_id 276 drivers/net/ethernet/marvell/octeontx2/af/cgx.c (CGXX_CMRX_RX_DMAC_CAM0 + lmac_id * 0x8)); lmac_id 279 drivers/net/ethernet/marvell/octeontx2/af/cgx.c (CGXX_CMRX_RX_DMAC_CAM0 + lmac_id * 0x8), cfg); lmac_id 284 drivers/net/ethernet/marvell/octeontx2/af/cgx.c int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat) lmac_id 288 drivers/net/ethernet/marvell/octeontx2/af/cgx.c if (!cgx || lmac_id >= cgx->lmac_count) lmac_id 290 drivers/net/ethernet/marvell/octeontx2/af/cgx.c *rx_stat = cgx_read(cgx, lmac_id, CGXX_CMRX_RX_STAT0 + (idx * 8)); lmac_id 295 drivers/net/ethernet/marvell/octeontx2/af/cgx.c int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat) lmac_id 299 drivers/net/ethernet/marvell/octeontx2/af/cgx.c if (!cgx || lmac_id >= cgx->lmac_count) lmac_id 301 drivers/net/ethernet/marvell/octeontx2/af/cgx.c *tx_stat = cgx_read(cgx, lmac_id, CGXX_CMRX_TX_STAT0 + (idx * 8)); lmac_id 306 drivers/net/ethernet/marvell/octeontx2/af/cgx.c int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable) lmac_id 311 drivers/net/ethernet/marvell/octeontx2/af/cgx.c if (!cgx || lmac_id >= cgx->lmac_count) lmac_id 314 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cfg = cgx_read(cgx, lmac_id, CGXX_CMRX_CFG); lmac_id 319 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(cgx, lmac_id, CGXX_CMRX_CFG, cfg); lmac_id 338 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cmd = cgx_read(cgx, lmac->lmac_id, CGX_COMMAND_REG); lmac_id 351 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(cgx, lmac->lmac_id, CGX_COMMAND_REG, req); lmac_id 358 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx->cgx_id, lmac->lmac_id); lmac_id 374 drivers/net/ethernet/marvell/octeontx2/af/cgx.c struct cgx *cgx, int lmac_id) lmac_id 379 drivers/net/ethernet/marvell/octeontx2/af/cgx.c lmac = lmac_pdata(lmac_id, cgx); lmac_id 425 drivers/net/ethernet/marvell/octeontx2/af/cgx.c struct cgx *cgx, u8 lmac_id) lmac_id 432 drivers/net/ethernet/marvell/octeontx2/af/cgx.c linfo->lmac_type_id = cgx_get_lmac_type(cgx, lmac_id); lmac_id 449 drivers/net/ethernet/marvell/octeontx2/af/cgx.c link_status_user_format(lstat, &event.link_uinfo, cgx, lmac->lmac_id); lmac_id 453 drivers/net/ethernet/marvell/octeontx2/af/cgx.c event.lmac_id = lmac->lmac_id; lmac_id 464 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx->cgx_id, lmac->lmac_id); lmac_id 467 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx->cgx_id, lmac->lmac_id, err_type); lmac_id 470 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx->cgx_id, lmac->lmac_id, lmac_id 563 drivers/net/ethernet/marvell/octeontx2/af/cgx.c event = cgx_read(cgx, lmac->lmac_id, CGX_EVENT_REG); lmac_id 597 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(lmac->cgx, lmac->lmac_id, CGX_EVENT_REG, 0); lmac_id 598 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(lmac->cgx, lmac->lmac_id, CGXX_CMRX_INT, FW_CGX_INT); lmac_id 606 drivers/net/ethernet/marvell/octeontx2/af/cgx.c int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id) lmac_id 611 drivers/net/ethernet/marvell/octeontx2/af/cgx.c lmac = lmac_pdata(lmac_id, cgx); lmac_id 621 drivers/net/ethernet/marvell/octeontx2/af/cgx.c int cgx_lmac_evh_unregister(void *cgxd, int lmac_id) lmac_id 627 drivers/net/ethernet/marvell/octeontx2/af/cgx.c lmac = lmac_pdata(lmac_id, cgx); lmac_id 640 drivers/net/ethernet/marvell/octeontx2/af/cgx.c static int cgx_fwi_link_change(struct cgx *cgx, int lmac_id, bool enable) lmac_id 650 drivers/net/ethernet/marvell/octeontx2/af/cgx.c return cgx_fwi_cmd_generic(req, &resp, cgx, lmac_id); lmac_id 731 drivers/net/ethernet/marvell/octeontx2/af/cgx.c lmac->lmac_id = i; lmac_id 743 drivers/net/ethernet/marvell/octeontx2/af/cgx.c cgx_write(cgx, lmac->lmac_id, CGXX_CMRX_INT_ENA_W1S, lmac_id 83 drivers/net/ethernet/marvell/octeontx2/af/cgx.h u8 lmac_id; lmac_id 101 drivers/net/ethernet/marvell/octeontx2/af/cgx.h int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind); lmac_id 102 drivers/net/ethernet/marvell/octeontx2/af/cgx.h int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id); lmac_id 103 drivers/net/ethernet/marvell/octeontx2/af/cgx.h int cgx_lmac_evh_unregister(void *cgxd, int lmac_id); lmac_id 104 drivers/net/ethernet/marvell/octeontx2/af/cgx.h int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat); lmac_id 105 drivers/net/ethernet/marvell/octeontx2/af/cgx.h int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat); lmac_id 106 drivers/net/ethernet/marvell/octeontx2/af/cgx.h int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable); lmac_id 107 drivers/net/ethernet/marvell/octeontx2/af/cgx.h int cgx_lmac_addr_set(u8 cgx_id, u8 lmac_id, u8 *mac_addr); lmac_id 108 drivers/net/ethernet/marvell/octeontx2/af/cgx.h u64 cgx_lmac_addr_get(u8 cgx_id, u8 lmac_id); lmac_id 109 drivers/net/ethernet/marvell/octeontx2/af/cgx.h void cgx_lmac_promisc_config(int cgx_id, int lmac_id, bool enable); lmac_id 110 drivers/net/ethernet/marvell/octeontx2/af/cgx.h int cgx_lmac_internal_loopback(void *cgxd, int lmac_id, bool enable); lmac_id 111 drivers/net/ethernet/marvell/octeontx2/af/cgx.h int cgx_get_link_info(void *cgxd, int lmac_id, lmac_id 339 drivers/net/ethernet/marvell/octeontx2/af/rvu.h static inline void rvu_get_cgx_lmac_id(u8 map, u8 *cgx_id, u8 *lmac_id) lmac_id 342 drivers/net/ethernet/marvell/octeontx2/af/rvu.h *lmac_id = (map & 0xF); lmac_id 43 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c static inline u16 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) lmac_id 45 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c return rvu->cgxlmac2pf_map[CGX_OFFSET(cgx_id) + lmac_id]; lmac_id 48 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c static inline u8 cgxlmac_id_to_bmap(u8 cgx_id, u8 lmac_id) lmac_id 50 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c return ((cgx_id & 0xF) << 4) | (lmac_id & 0xF); lmac_id 110 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c static int rvu_cgx_send_link_info(int cgx_id, int lmac_id, struct rvu *rvu) lmac_id 122 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c err = cgx_get_link_info(rvu_cgx_pdata(cgx_id, rvu), lmac_id, lmac_id 125 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c qentry->link_event.lmac_id = lmac_id; lmac_id 167 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c pfmap = cgxlmac_to_pfmap(rvu, event->cgx_id, event->lmac_id); lmac_id 176 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c event->cgx_id, event->lmac_id, lmac_id 340 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; lmac_id 348 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); lmac_id 350 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c cgx_lmac_rx_tx_enable(rvu_cgx_pdata(cgx_id, rvu), lmac_id, start); lmac_id 411 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; lmac_id 413 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); lmac_id 415 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c cgx_lmac_addr_set(cgx_id, lmac_id, req->mac_addr); lmac_id 425 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; lmac_id 429 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); lmac_id 432 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c cfg = cgx_lmac_addr_get(cgx_id, lmac_id); lmac_id 444 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; lmac_id 453 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); lmac_id 455 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c cgx_lmac_promisc_config(cgx_id, lmac_id, true); lmac_id 464 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; lmac_id 473 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); lmac_id 475 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c cgx_lmac_promisc_config(cgx_id, lmac_id, false); lmac_id 482 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; lmac_id 490 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); lmac_id 495 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_cgx_send_link_info(cgx_id, lmac_id, rvu); lmac_id 520 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; lmac_id 528 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); lmac_id 530 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c err = cgx_get_link_info(rvu_cgx_pdata(cgx_id, rvu), lmac_id, lmac_id 538 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u8 cgx_id, lmac_id; lmac_id 546 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); lmac_id 549 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c lmac_id, en); lmac_id 173 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u8 cgx_id, lmac_id; lmac_id 184 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); lmac_id 192 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf->rx_chan_base = NIX_CHAN_CGX_LMAC_CHX(cgx_id, lmac_id, 0); lmac_id 196 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cgx_set_pkind(rvu_cgx_pdata(cgx_id, rvu), lmac_id, pkind); lmac_id 1071 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u8 cgx_id, lmac_id; lmac_id 1090 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); lmac_id 1091 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c schq_base = (cgx_id * MAX_LMAC_PER_CGX + lmac_id) * 2; lmac_id 108 drivers/net/wireless/intel/iwlwifi/fw/api/binding.h __le32 lmac_id; lmac_id 91 drivers/net/wireless/intel/iwlwifi/mvm/binding.c cmd.lmac_id = cpu_to_le32(IWL_LMAC_24G_INDEX); lmac_id 93 drivers/net/wireless/intel/iwlwifi/mvm/binding.c cmd.lmac_id = cpu_to_le32(IWL_LMAC_5G_INDEX);