pcifunc 261 drivers/net/ethernet/marvell/octeontx2/af/mbox.c otx2_reply_invalid_msg(struct otx2_mbox *mbox, int devid, u16 pcifunc, u16 id) pcifunc 272 drivers/net/ethernet/marvell/octeontx2/af/mbox.c rsp->hdr.pcifunc = pcifunc; pcifunc 83 drivers/net/ethernet/marvell/octeontx2/af/mbox.h u16 pcifunc; /* Who's sending this msg */ pcifunc 107 drivers/net/ethernet/marvell/octeontx2/af/mbox.h u16 pcifunc, u16 id); pcifunc 26 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static int rvu_get_hwvf(struct rvu *rvu, int pcifunc); pcifunc 32 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc); pcifunc 165 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot) pcifunc 172 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (block->fn_map[lf] == pcifunc) { pcifunc 190 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc) pcifunc 205 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (!pcifunc) { pcifunc 221 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (!pcifunc) { pcifunc 229 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (pcifunc & RVU_PFVF_FUNC_MASK) { pcifunc 231 drivers/net/ethernet/marvell/octeontx2/af/rvu.c devnum = rvu_get_hwvf(rvu, pcifunc); pcifunc 234 drivers/net/ethernet/marvell/octeontx2/af/rvu.c devnum = rvu_get_pf(pcifunc); pcifunc 260 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu_block *block, u16 pcifunc, pcifunc 275 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (pcifunc & RVU_PFVF_FUNC_MASK) { pcifunc 277 drivers/net/ethernet/marvell/octeontx2/af/rvu.c devnum = rvu_get_hwvf(rvu, pcifunc); pcifunc 280 drivers/net/ethernet/marvell/octeontx2/af/rvu.c devnum = rvu_get_pf(pcifunc); pcifunc 283 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->fn_map[lf] = attach ? pcifunc : 0; pcifunc 316 drivers/net/ethernet/marvell/octeontx2/af/rvu.c inline int rvu_get_pf(u16 pcifunc) pcifunc 318 drivers/net/ethernet/marvell/octeontx2/af/rvu.c return (pcifunc >> RVU_PFVF_PF_SHIFT) & RVU_PFVF_PF_MASK; pcifunc 331 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static int rvu_get_hwvf(struct rvu *rvu, int pcifunc) pcifunc 336 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pf = rvu_get_pf(pcifunc); pcifunc 337 drivers/net/ethernet/marvell/octeontx2/af/rvu.c func = pcifunc & RVU_PFVF_FUNC_MASK; pcifunc 345 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu_pfvf *rvu_get_pfvf(struct rvu *rvu, int pcifunc) pcifunc 348 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (pcifunc & RVU_PFVF_FUNC_MASK) pcifunc 349 drivers/net/ethernet/marvell/octeontx2/af/rvu.c return &rvu->hwvf[rvu_get_hwvf(rvu, pcifunc)]; pcifunc 351 drivers/net/ethernet/marvell/octeontx2/af/rvu.c return &rvu->pf[rvu_get_pf(pcifunc)]; pcifunc 354 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static bool is_pf_func_valid(struct rvu *rvu, u16 pcifunc) pcifunc 359 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pf = rvu_get_pf(pcifunc); pcifunc 363 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (!(pcifunc & RVU_PFVF_FUNC_MASK)) pcifunc 367 drivers/net/ethernet/marvell/octeontx2/af/rvu.c vf = (pcifunc & RVU_PFVF_FUNC_MASK) - 1; pcifunc 908 drivers/net/ethernet/marvell/octeontx2/af/rvu.c bool is_pffunc_map_valid(struct rvu *rvu, u16 pcifunc, int blktype) pcifunc 912 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (!is_pf_func_valid(rvu, pcifunc)) pcifunc 915 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 925 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int pcifunc, int slot) pcifunc 929 drivers/net/ethernet/marvell/octeontx2/af/rvu.c val = ((u64)pcifunc << 24) | (slot << 16) | (1ULL << 13); pcifunc 945 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static void rvu_detach_block(struct rvu *rvu, int pcifunc, int blktype) pcifunc 947 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 953 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = rvu_get_blkaddr(rvu, blktype, pcifunc); pcifunc 964 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_lookup_rsrc(rvu, block, pcifunc, slot); pcifunc 974 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, lf, false); pcifunc 985 drivers/net/ethernet/marvell/octeontx2/af/rvu.c u16 pcifunc) pcifunc 1019 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_detach_block(rvu, pcifunc, block->type); pcifunc 1030 drivers/net/ethernet/marvell/octeontx2/af/rvu.c return rvu_detach_rsrcs(rvu, detach, detach->hdr.pcifunc); pcifunc 1033 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static void rvu_attach_block(struct rvu *rvu, int pcifunc, pcifunc 1036 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 1060 drivers/net/ethernet/marvell/octeontx2/af/rvu.c cfg = (1ULL << 63) | (pcifunc << 8) | slot; pcifunc 1064 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, lf, true); pcifunc 1072 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rsrc_attach *req, u16 pcifunc) pcifunc 1074 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 1088 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc); pcifunc 1101 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc); pcifunc 1111 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, req->sso, block->lf.max); pcifunc 1127 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, req->sso, block->lf.max); pcifunc 1142 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, req->timlfs, block->lf.max); pcifunc 1157 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, req->cptlfs, block->lf.max); pcifunc 1178 drivers/net/ethernet/marvell/octeontx2/af/rvu.c u16 pcifunc = attach->hdr.pcifunc; pcifunc 1183 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_detach_rsrcs(rvu, NULL, pcifunc); pcifunc 1188 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = rvu_check_rsrc_availability(rvu, attach, pcifunc); pcifunc 1194 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_attach_block(rvu, pcifunc, BLKTYPE_NPA, 1); pcifunc 1197 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_attach_block(rvu, pcifunc, BLKTYPE_NIX, 1); pcifunc 1206 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_detach_block(rvu, pcifunc, BLKTYPE_SSO); pcifunc 1207 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_attach_block(rvu, pcifunc, BLKTYPE_SSO, attach->sso); pcifunc 1212 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_detach_block(rvu, pcifunc, BLKTYPE_SSOW); pcifunc 1213 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_attach_block(rvu, pcifunc, BLKTYPE_SSOW, attach->ssow); pcifunc 1218 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_detach_block(rvu, pcifunc, BLKTYPE_TIM); pcifunc 1219 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_attach_block(rvu, pcifunc, BLKTYPE_TIM, attach->timlfs); pcifunc 1224 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_detach_block(rvu, pcifunc, BLKTYPE_CPT); pcifunc 1225 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_attach_block(rvu, pcifunc, BLKTYPE_CPT, attach->cptlfs); pcifunc 1301 drivers/net/ethernet/marvell/octeontx2/af/rvu.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1305 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 1310 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_NPA], pcifunc, 0); pcifunc 1313 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_NIX0], pcifunc, 0); pcifunc 1318 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_SSO], pcifunc, slot); pcifunc 1325 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_SSOW], pcifunc, slot); pcifunc 1332 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_TIM], pcifunc, slot); pcifunc 1339 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_CPT0], pcifunc, slot); pcifunc 1349 drivers/net/ethernet/marvell/octeontx2/af/rvu.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1353 drivers/net/ethernet/marvell/octeontx2/af/rvu.c vf = pcifunc & RVU_PFVF_FUNC_MASK; pcifunc 1355 drivers/net/ethernet/marvell/octeontx2/af/rvu.c RVU_PRIV_PFX_CFG(rvu_get_pf(pcifunc))); pcifunc 1359 drivers/net/ethernet/marvell/octeontx2/af/rvu.c __rvu_flr_handler(rvu, pcifunc); pcifunc 1394 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rsp->hdr.pcifunc = req->pcifunc; \ pcifunc 1411 drivers/net/ethernet/marvell/octeontx2/af/rvu.c otx2_reply_invalid_msg(mbox, devid, req->pcifunc, req->id); pcifunc 1454 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->pcifunc &= pcifunc 1456 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->pcifunc |= (devid << RVU_PFVF_PF_SHIFT); pcifunc 1459 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->pcifunc &= pcifunc 1461 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->pcifunc |= (devid << RVU_PFVF_FUNC_SHIFT) + 1; pcifunc 1471 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (msg->pcifunc & RVU_PFVF_FUNC_MASK) pcifunc 1475 drivers/net/ethernet/marvell/octeontx2/af/rvu.c (msg->pcifunc & RVU_PFVF_FUNC_MASK) - 1); pcifunc 1756 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static void rvu_blklf_teardown(struct rvu *rvu, u16 pcifunc, u8 blkaddr) pcifunc 1763 drivers/net/ethernet/marvell/octeontx2/af/rvu.c num_lfs = rvu_get_rsrc_mapcount(rvu_get_pfvf(rvu, pcifunc), pcifunc 1768 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, block, pcifunc, slot); pcifunc 1774 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_nix_lf_teardown(rvu, pcifunc, block->addr, lf); pcifunc 1776 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_npa_lf_teardown(rvu, pcifunc, lf); pcifunc 1786 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc) pcifunc 1794 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_blklf_teardown(rvu, pcifunc, BLKADDR_NIX0); pcifunc 1795 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_blklf_teardown(rvu, pcifunc, BLKADDR_CPT0); pcifunc 1796 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_blklf_teardown(rvu, pcifunc, BLKADDR_TIM); pcifunc 1797 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_blklf_teardown(rvu, pcifunc, BLKADDR_SSOW); pcifunc 1798 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_blklf_teardown(rvu, pcifunc, BLKADDR_SSO); pcifunc 1799 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_blklf_teardown(rvu, pcifunc, BLKADDR_NPA); pcifunc 1800 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_detach_rsrcs(rvu, NULL, pcifunc); pcifunc 1825 drivers/net/ethernet/marvell/octeontx2/af/rvu.c u16 pcifunc, numvfs, vf; pcifunc 1837 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc = pf << RVU_PFVF_PF_SHIFT; pcifunc 1840 drivers/net/ethernet/marvell/octeontx2/af/rvu.c __rvu_flr_handler(rvu, (pcifunc | (vf + 1))); pcifunc 1842 drivers/net/ethernet/marvell/octeontx2/af/rvu.c __rvu_flr_handler(rvu, pcifunc); pcifunc 299 drivers/net/ethernet/marvell/octeontx2/af/rvu.h static inline int is_afvf(u16 pcifunc) pcifunc 301 drivers/net/ethernet/marvell/octeontx2/af/rvu.h return !(pcifunc & ~RVU_PFVF_FUNC_MASK); pcifunc 310 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int rvu_get_pf(u16 pcifunc); pcifunc 311 drivers/net/ethernet/marvell/octeontx2/af/rvu.h struct rvu_pfvf *rvu_get_pfvf(struct rvu *rvu, int pcifunc); pcifunc 314 drivers/net/ethernet/marvell/octeontx2/af/rvu.h bool is_pffunc_map_valid(struct rvu *rvu, u16 pcifunc, int blktype); pcifunc 315 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot); pcifunc 317 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc); pcifunc 348 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int rvu_cgx_config_rxtx(struct rvu *rvu, u16 pcifunc, bool start); pcifunc 379 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_npa_lf_teardown(struct rvu *rvu, u16 pcifunc, int npalf); pcifunc 393 drivers/net/ethernet/marvell/octeontx2/af/rvu.h bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc); pcifunc 399 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_nix_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int npalf); pcifunc 455 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_npc_install_ucast_entry(struct rvu *rvu, u16 pcifunc, pcifunc 457 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_npc_install_promisc_entry(struct rvu *rvu, u16 pcifunc, pcifunc 459 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_npc_disable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf); pcifunc 460 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_npc_enable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf); pcifunc 461 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_npc_install_bcast_match_entry(struct rvu *rvu, u16 pcifunc, pcifunc 463 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int rvu_npc_update_rxvlan(struct rvu *rvu, u16 pcifunc, int nixlf); pcifunc 464 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_npc_disable_mcam_entries(struct rvu *rvu, u16 pcifunc, int nixlf); pcifunc 465 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_npc_disable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf); pcifunc 466 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_npc_enable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf); pcifunc 467 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_npc_update_flowkey_alg_idx(struct rvu *rvu, u16 pcifunc, int nixlf, pcifunc 337 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c int rvu_cgx_config_rxtx(struct rvu *rvu, u16 pcifunc, bool start) pcifunc 339 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c int pf = rvu_get_pf(pcifunc); pcifunc 345 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c if ((pcifunc & RVU_PFVF_FUNC_MASK) || !is_pf_cgxmapped(rvu, pf)) pcifunc 358 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_cgx_config_rxtx(rvu, req->hdr.pcifunc, true); pcifunc 365 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_cgx_config_rxtx(rvu, req->hdr.pcifunc, false); pcifunc 372 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c int pf = rvu_get_pf(req->hdr.pcifunc); pcifunc 378 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c if ((req->hdr.pcifunc & RVU_PFVF_FUNC_MASK) || pcifunc 410 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c int pf = rvu_get_pf(req->hdr.pcifunc); pcifunc 424 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c int pf = rvu_get_pf(req->hdr.pcifunc); pcifunc 442 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u16 pcifunc = req->hdr.pcifunc; pcifunc 443 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c int pf = rvu_get_pf(pcifunc); pcifunc 449 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c if ((req->hdr.pcifunc & RVU_PFVF_FUNC_MASK) || pcifunc 462 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c u16 pcifunc = req->hdr.pcifunc; pcifunc 463 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c int pf = rvu_get_pf(pcifunc); pcifunc 469 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c if ((req->hdr.pcifunc & RVU_PFVF_FUNC_MASK) || pcifunc 479 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c static int rvu_cgx_config_linkevents(struct rvu *rvu, u16 pcifunc, bool en) pcifunc 481 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c int pf = rvu_get_pf(pcifunc); pcifunc 487 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c if ((pcifunc & RVU_PFVF_FUNC_MASK) || !is_pf_cgxmapped(rvu, pf)) pcifunc 506 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_cgx_config_linkevents(rvu, req->hdr.pcifunc, true); pcifunc 513 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_cgx_config_linkevents(rvu, req->hdr.pcifunc, false); pcifunc 523 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c pf = rvu_get_pf(req->hdr.pcifunc); pcifunc 535 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c static int rvu_cgx_config_intlbk(struct rvu *rvu, u16 pcifunc, bool en) pcifunc 537 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c int pf = rvu_get_pf(pcifunc); pcifunc 543 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c if ((pcifunc & RVU_PFVF_FUNC_MASK) || !is_pf_cgxmapped(rvu, pf)) pcifunc 555 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_cgx_config_intlbk(rvu, req->hdr.pcifunc, true); pcifunc 562 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c rvu_cgx_config_intlbk(rvu, req->hdr.pcifunc, false); pcifunc 20 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nix_update_bcast_mce_list(struct rvu *rvu, u16 pcifunc, bool add); pcifunc 68 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc; pcifunc 71 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc) pcifunc 73 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 76 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 139 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int lvl, u16 pcifunc, u16 schq) pcifunc 160 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_pf(map_func) != rvu_get_pf(pcifunc)) pcifunc 164 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c map_func != pcifunc) pcifunc 170 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nix_interface_init(struct rvu *rvu, u16 pcifunc, int type, int nixlf) pcifunc 172 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 177 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pf = rvu_get_pf(pcifunc); pcifunc 189 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c "PF_Func 0x%x: Invalid pkind\n", pcifunc); pcifunc 200 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c vf = (pcifunc & RVU_PFVF_FUNC_MASK) - 1; pcifunc 206 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_install_promisc_entry(rvu, pcifunc, nixlf, pcifunc 214 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_install_ucast_entry(rvu, pcifunc, nixlf, pcifunc 218 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_update_bcast_mce_list(rvu, pcifunc, true); pcifunc 222 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pcifunc); pcifunc 226 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_install_bcast_match_entry(rvu, pcifunc, pcifunc 234 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static void nix_interface_deinit(struct rvu *rvu, u16 pcifunc, u8 nixlf) pcifunc 236 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 244 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_update_bcast_mce_list(rvu, pcifunc, false); pcifunc 248 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pcifunc); pcifunc 252 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_disable_mcam_entries(rvu, pcifunc, nixlf); pcifunc 454 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 464 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 475 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 476 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, block, pcifunc, 0); pcifunc 531 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pcifunc, req->sq.smq)) pcifunc 668 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); pcifunc 678 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c aq_req.hdr.pcifunc = req->hdr.pcifunc; pcifunc 739 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 748 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 749 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 754 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, block, pcifunc, 0); pcifunc 762 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c req->npa_func = pcifunc; pcifunc 771 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c req->sso_func = pcifunc; pcifunc 899 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c intf = is_afvf(pcifunc) ? NIX_INTF_TYPE_LBK : NIX_INTF_TYPE_CGX; pcifunc 900 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_interface_init(rvu, pcifunc, intf, nixlf); pcifunc 905 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_disable_default_entries(rvu, pcifunc, nixlf); pcifunc 941 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 946 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 947 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 952 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, block, pcifunc, 0); pcifunc 956 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_interface_deinit(rvu, pcifunc, nixlf); pcifunc 975 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 981 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 982 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 998 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_pf(pcifunc), pcifunc & RVU_PFVF_FUNC_MASK); pcifunc 1065 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_tl1_schqs(struct rvu *rvu, int blkaddr, u16 pcifunc, pcifunc 1080 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 1083 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pf = rvu_get_pf(pcifunc); pcifunc 1086 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c intf = is_afvf(pcifunc) ? NIX_INTF_TYPE_LBK : NIX_INTF_TYPE_CGX; pcifunc 1135 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1144 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 1145 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 1167 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pcifunc, NULL, NULL)) pcifunc 1202 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_tl1_schqs(rvu, blkaddr, pcifunc, pcifunc 1214 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf_map[schq] = TXSCH_MAP(pcifunc, 0); pcifunc 1225 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf_map[schq] = TXSCH_MAP(pcifunc, 0); pcifunc 1239 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nix_txschq_free(struct rvu *rvu, u16 pcifunc) pcifunc 1247 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 1255 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); pcifunc 1267 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (TXSCH_MAP_FUNC(txsch->pfvf_map[schq]) != pcifunc) pcifunc 1276 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (TXSCH_MAP_FUNC(txsch->pfvf_map[schq]) != pcifunc) pcifunc 1302 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (TXSCH_MAP_FUNC(txsch->pfvf_map[schq]) != pcifunc) pcifunc 1324 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1330 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 1338 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); pcifunc 1354 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (TXSCH_MAP_FUNC(pfvf_map[schq]) != pcifunc) { pcifunc 1391 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c return nix_txschq_free(rvu, req->hdr.pcifunc); pcifunc 1396 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static bool is_txschq_config_valid(struct rvu *rvu, u16 pcifunc, int blkaddr, pcifunc 1407 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!is_valid_txschq(rvu, blkaddr, lvl, pcifunc, schq)) pcifunc 1413 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c !is_valid_txschq(rvu, blkaddr, NIX_TXSCH_LVL_TL4, pcifunc, parent)) pcifunc 1418 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c !is_valid_txschq(rvu, blkaddr, NIX_TXSCH_LVL_TL3, pcifunc, parent)) pcifunc 1423 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c !is_valid_txschq(rvu, blkaddr, NIX_TXSCH_LVL_TL2, pcifunc, parent)) pcifunc 1428 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c !is_valid_txschq(rvu, blkaddr, NIX_TXSCH_LVL_TL1, pcifunc, parent)) pcifunc 1435 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_tl1_default_cfg(struct rvu *rvu, u16 pcifunc) pcifunc 1444 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 1457 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pcifunc, schq_list, &schq_cnt); pcifunc 1493 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 schq, pcifunc = req->hdr.pcifunc; pcifunc 1507 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 1515 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); pcifunc 1525 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (pcifunc & RVU_PFVF_FUNC_MASK && pcifunc 1527 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c return nix_tl1_default_cfg(rvu, pcifunc); pcifunc 1535 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!is_txschq_config_valid(rvu, pcifunc, blkaddr, pcifunc 1542 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pcifunc, 0); pcifunc 1599 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1602 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 1606 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); pcifunc 1623 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc, int next, bool eol) pcifunc 1628 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c aq_req.hdr.pcifunc = 0; pcifunc 1637 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c aq_req.mce.pf_func = pcifunc; pcifunc 1646 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_pf(pcifunc), pcifunc & RVU_PFVF_FUNC_MASK); pcifunc 1653 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc, int idx, bool add) pcifunc 1661 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (mce->pcifunc == pcifunc && !add) { pcifunc 1683 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c mce->pcifunc = pcifunc; pcifunc 1692 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nix_update_bcast_mce_list(struct rvu *rvu, u16 pcifunc, bool add) pcifunc 1703 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (is_afvf(pcifunc)) pcifunc 1706 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 1717 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc & ~RVU_PFVF_FUNC_MASK); pcifunc 1718 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c idx = pfvf->bcast_mce_idx + (pcifunc & RVU_PFVF_FUNC_MASK); pcifunc 1725 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pcifunc >> RVU_PFVF_PF_SHIFT); pcifunc 1731 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_update_mce_list(mce_list, pcifunc, idx, add); pcifunc 1752 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c NIX_AQ_INSTOP_WRITE, mce->pcifunc, pcifunc 1768 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc; pcifunc 1788 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pcifunc = (pf << RVU_PFVF_PF_SHIFT); pcifunc 1789 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pcifunc |= idx; pcifunc 1797 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pcifunc, 0, true); pcifunc 1951 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1955 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 1959 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); pcifunc 2159 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 2163 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 2167 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); pcifunc 2184 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_update_flowkey_alg_idx(rvu, pcifunc, nixlf, req->group, pcifunc 2263 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 2267 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 2268 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 2272 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); pcifunc 2278 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_install_ucast_entry(rvu, pcifunc, nixlf, pcifunc 2281 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_update_rxvlan(rvu, pcifunc, nixlf); pcifunc 2291 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 2295 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 2296 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 2300 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); pcifunc 2312 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_disable_promisc_entry(rvu, pcifunc, nixlf); pcifunc 2314 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_install_promisc_entry(rvu, pcifunc, nixlf, pcifunc 2317 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_update_rxvlan(rvu, pcifunc, nixlf); pcifunc 2323 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c struct nix_frs_cfg *req, u16 pcifunc) pcifunc 2325 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int pf = rvu_get_pf(pcifunc); pcifunc 2332 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 2371 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 2372 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int pf = rvu_get_pf(pcifunc); pcifunc 2379 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 2401 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (TXSCH_MAP_FUNC(txsch->pfvf_map[schq]) != pcifunc) pcifunc 2433 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_find_link_frs(rvu, req, pcifunc); pcifunc 2463 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 2470 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (is_afvf(pcifunc)) pcifunc 2473 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 2478 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c alloc_req.hdr.pcifunc = pcifunc; pcifunc 2487 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 2493 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &rvu->hw->block[blkaddr], pcifunc, 0); pcifunc 2503 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = rvu_npc_update_rxvlan(rvu, pcifunc, nixlf); pcifunc 2509 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c free_req.hdr.pcifunc = pcifunc; pcifunc 2520 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 2526 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 2527 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 2532 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, block, pcifunc, 0); pcifunc 2828 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf) pcifunc 2830 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 2834 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 2838 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c *nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); pcifunc 2848 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 2851 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_get_nixlf(rvu, pcifunc, &nixlf); pcifunc 2855 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_enable_default_entries(rvu, pcifunc, nixlf); pcifunc 2862 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 2865 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_get_nixlf(rvu, pcifunc, &nixlf); pcifunc 2869 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_npc_disable_default_entries(rvu, pcifunc, nixlf); pcifunc 2873 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c void rvu_nix_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int nixlf) pcifunc 2875 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 2879 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c ctx_req.hdr.pcifunc = pcifunc; pcifunc 2882 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_interface_deinit(rvu, pcifunc, nixlf); pcifunc 2884 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_txschq_free(rvu, pcifunc); pcifunc 2914 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 pcifunc = req->hdr.pcifunc; pcifunc 2920 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 2921 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); pcifunc 59 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c u16 pcifunc = req->hdr.pcifunc; pcifunc 68 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 72 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); pcifunc 83 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c npalf = rvu_get_lf(rvu, block, pcifunc, 0); pcifunc 201 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); pcifunc 211 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c aq_req.hdr.pcifunc = req->hdr.pcifunc; pcifunc 282 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c u16 pcifunc = req->hdr.pcifunc; pcifunc 292 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 293 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); pcifunc 298 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c npalf = rvu_get_lf(rvu, block, pcifunc, 0); pcifunc 379 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c u16 pcifunc = req->hdr.pcifunc; pcifunc 385 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 386 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); pcifunc 391 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c npalf = rvu_get_lf(rvu, block, pcifunc, 0); pcifunc 474 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c void rvu_npa_lf_teardown(struct rvu *rvu, u16 pcifunc, int npalf) pcifunc 476 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 480 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c ctx_req.hdr.pcifunc = pcifunc; pcifunc 32 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, u16 pcifunc); pcifunc 34 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc); pcifunc 65 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc, int nixlf, int type) pcifunc 67 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int pf = rvu_get_pf(pcifunc); pcifunc 71 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (pf && !(pcifunc & RVU_PFVF_FUNC_MASK)) { pcifunc 308 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c void rvu_npc_install_ucast_entry(struct rvu *rvu, u16 pcifunc, pcifunc 311 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 319 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (is_afvf(pcifunc)) pcifunc 329 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index = npc_get_nixlf_mcam_index(mcam, pcifunc, pcifunc 349 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c action.pf_func = pcifunc; pcifunc 368 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c void rvu_npc_install_promisc_entry(struct rvu *rvu, u16 pcifunc, pcifunc 377 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if ((pcifunc & RVU_PFVF_FUNC_MASK) && !is_afvf(pcifunc)) pcifunc 384 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index = npc_get_nixlf_mcam_index(mcam, pcifunc, pcifunc 396 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c ucast_idx = npc_get_nixlf_mcam_index(mcam, pcifunc, pcifunc 409 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c action.pf_func = pcifunc; pcifunc 417 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static void npc_enadis_promisc_entry(struct rvu *rvu, u16 pcifunc, pcifunc 428 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (pcifunc & RVU_PFVF_FUNC_MASK) pcifunc 431 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index = npc_get_nixlf_mcam_index(mcam, pcifunc, pcifunc 436 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c void rvu_npc_disable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf) pcifunc 438 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enadis_promisc_entry(rvu, pcifunc, nixlf, false); pcifunc 441 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c void rvu_npc_enable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf) pcifunc 443 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enadis_promisc_entry(rvu, pcifunc, nixlf, true); pcifunc 446 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c void rvu_npc_install_bcast_match_entry(struct rvu *rvu, u16 pcifunc, pcifunc 462 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (pcifunc & RVU_PFVF_FUNC_MASK) pcifunc 465 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c pfvf = rvu_get_pfvf(rvu, pcifunc & ~RVU_PFVF_FUNC_MASK); pcifunc 468 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index = npc_get_nixlf_mcam_index(mcam, pcifunc, pcifunc 501 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c action.pf_func = pcifunc; pcifunc 505 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c action.pf_func = pcifunc; pcifunc 513 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c void rvu_npc_update_flowkey_alg_idx(struct rvu *rvu, u16 pcifunc, int nixlf, pcifunc 528 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index = npc_get_nixlf_mcam_index(mcam, pcifunc, pcifunc 548 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c action.pf_func = pcifunc; pcifunc 555 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index = npc_get_nixlf_mcam_index(mcam, pcifunc, pcifunc 570 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_npc_update_rxvlan(rvu, pcifunc, nixlf); pcifunc 573 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static void npc_enadis_default_entries(struct rvu *rvu, u16 pcifunc, pcifunc 585 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index = npc_get_nixlf_mcam_index(mcam, pcifunc, pcifunc 590 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (pcifunc & RVU_PFVF_FUNC_MASK) pcifunc 598 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index = npc_get_nixlf_mcam_index(mcam, pcifunc, pcifunc 607 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_npc_enable_promisc_entry(rvu, pcifunc, nixlf); pcifunc 609 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_npc_disable_promisc_entry(rvu, pcifunc, nixlf); pcifunc 611 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_npc_update_rxvlan(rvu, pcifunc, nixlf); pcifunc 614 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c void rvu_npc_disable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf) pcifunc 616 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enadis_default_entries(rvu, pcifunc, nixlf, false); pcifunc 619 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c void rvu_npc_enable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf) pcifunc 621 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enadis_default_entries(rvu, pcifunc, nixlf, true); pcifunc 624 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c void rvu_npc_disable_mcam_entries(struct rvu *rvu, u16 pcifunc, int nixlf) pcifunc 636 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_mcam_free_all_entries(rvu, mcam, blkaddr, pcifunc); pcifunc 639 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_mcam_free_all_counters(rvu, mcam, pcifunc); pcifunc 643 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_npc_disable_default_entries(rvu, pcifunc, nixlf); pcifunc 1204 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc, int entry) pcifunc 1212 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (pcifunc != mcam->entry2pfvf_map[entry]) pcifunc 1219 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc, int cntr) pcifunc 1227 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (pcifunc != mcam->cntr2pfvf_map[cntr]) pcifunc 1296 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, u16 pcifunc) pcifunc 1302 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (mcam->entry2pfvf_map[index] == pcifunc) { pcifunc 1320 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc) pcifunc 1326 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (mcam->cntr2pfvf_map[cntr] == pcifunc) { pcifunc 1457 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static int npc_mcam_alloc_entries(struct npc_mcam *mcam, u16 pcifunc, pcifunc 1623 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c mcam->entry2pfvf_map[index] = pcifunc; pcifunc 1639 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1668 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (!is_nixlf_attached(rvu, pcifunc)) pcifunc 1671 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c return npc_mcam_alloc_entries(mcam, pcifunc, req, rsp); pcifunc 1679 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1688 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (!is_nixlf_attached(rvu, pcifunc)) pcifunc 1696 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rc = npc_mcam_verify_entry(mcam, pcifunc, req->entry); pcifunc 1714 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_mcam_free_all_entries(rvu, mcam, blkaddr, pcifunc); pcifunc 1725 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1733 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rc = npc_mcam_verify_entry(mcam, pcifunc, req->entry); pcifunc 1738 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_mcam_verify_counter(mcam, pcifunc, req->cntr)) { pcifunc 1766 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1774 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rc = npc_mcam_verify_entry(mcam, pcifunc, req->entry); pcifunc 1789 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1797 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rc = npc_mcam_verify_entry(mcam, pcifunc, req->entry); pcifunc 1812 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1832 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rc = npc_mcam_verify_entry(mcam, pcifunc, old_entry); pcifunc 1836 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rc = npc_mcam_verify_entry(mcam, pcifunc, new_entry); pcifunc 1881 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c u16 pcifunc = req->hdr.pcifunc; pcifunc 1890 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (!is_nixlf_attached(rvu, pcifunc)) pcifunc 1920 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c mcam->cntr2pfvf_map[cntr] = pcifunc; pcifunc 1932 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c mcam->cntr2pfvf_map[index] = pcifunc; pcifunc 1952 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c err = npc_mcam_verify_counter(mcam, req->hdr.pcifunc, req->cntr); pcifunc 1994 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rc = npc_mcam_verify_counter(mcam, req->hdr.pcifunc, req->cntr); pcifunc 2000 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rc = npc_mcam_verify_entry(mcam, req->hdr.pcifunc, req->entry); pcifunc 2039 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c err = npc_mcam_verify_counter(mcam, req->hdr.pcifunc, req->cntr); pcifunc 2061 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c err = npc_mcam_verify_counter(mcam, req->hdr.pcifunc, req->cntr); pcifunc 2093 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c entry_req.hdr.pcifunc = req->hdr.pcifunc; pcifunc 2113 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c cntr_req.hdr.pcifunc = req->hdr.pcifunc; pcifunc 2190 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int rvu_npc_update_rxvlan(struct rvu *rvu, u16 pcifunc, int nixlf) pcifunc 2192 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); pcifunc 2204 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index = npc_get_nixlf_mcam_index(mcam, pcifunc, nixlf, pcifunc 582 drivers/video/fbdev/sis/sis.h unsigned int pcifunc; pcifunc 1761 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_pcifunc = ivideo->pcifunc; pcifunc 5882 drivers/video/fbdev/sis/sis_main.c ivideo->pcifunc = PCI_FUNC(pdev->devfn);