Home
last modified time | relevance | path

Searched refs:RVU_PFVF_FUNC_MASK (Results 1 – 20 of 20) sorted by relevance

/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_sdp.c40 !(pcifunc & RVU_PFVF_FUNC_MASK)); in is_sdp_pf()
46 !!(pcifunc & RVU_PFVF_FUNC_MASK)); in is_sdp_vf()
H A Drvu_npc.c79 ((pf_func & ~RVU_PFVF_FUNC_MASK) != in npc_mcam_verify_pf_func()
80 (pcifunc & ~RVU_PFVF_FUNC_MASK))) in npc_mcam_verify_pf_func()
176 if (pf && !(pcifunc & RVU_PFVF_FUNC_MASK)) { in npc_get_nixlf_mcam_index()
421 (owner & RVU_PFVF_FUNC_MASK) || in npc_fixup_vf_rule()
422 !(target_func & RVU_PFVF_FUNC_MASK)) in npc_fixup_vf_rule()
692 pcifunc & ~RVU_PFVF_FUNC_MASK, in rvu_npc_install_promisc_entry()
716 pfvf = rvu_get_pfvf(rvu, pcifunc & ~RVU_PFVF_FUNC_MASK); in rvu_npc_install_promisc_entry()
766 pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK; in rvu_npc_enable_promisc_entry()
798 pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK; in rvu_npc_install_bcast_match_entry()
846 pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK; in rvu_npc_enable_bcast_entry()
[all …]
H A Drvu_cgx.c457 if ((pcifunc & RVU_PFVF_FUNC_MASK) || in is_cgx_config_permitted()
840 if ((pcifunc & RVU_PFVF_FUNC_MASK) || in rvu_cgx_ptp_rx_cfg()
1035 pcifunc & RVU_PFVF_FUNC_MASK)) { in rvu_cgx_cfg_pause_frm()
1116 if (!((block->fn_map[lf] & ~RVU_PFVF_FUNC_MASK) == (pcifunc & in rvu_cgx_nix_cuml_stats()
1117 ~RVU_PFVF_FUNC_MASK))) in rvu_cgx_nix_cuml_stats()
1160 err = rvu_cgx_config_rxtx(rvu, pcifunc & ~RVU_PFVF_FUNC_MASK, in rvu_cgx_start_stop_io()
1299 pcifunc & RVU_PFVF_FUNC_MASK)) { in rvu_cgx_prio_flow_ctrl_cfg()
H A Drvu.h47 #define RVU_PFVF_FUNC_MASK 0x3FF macro
719 return !(pcifunc & ~RVU_PFVF_FUNC_MASK); in is_afvf()
724 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_vf()
795 return ((pcifunc & RVU_PFVF_FUNC_MASK) && in is_cgx_vf()
H A Drvu.c292 if (pcifunc & RVU_PFVF_FUNC_MASK) { in rvu_get_blkaddr()
357 if (pcifunc & RVU_PFVF_FUNC_MASK) { in rvu_update_rsrc_map()
426 func = pcifunc & RVU_PFVF_FUNC_MASK; in rvu_get_hwvf()
437 if (pcifunc & RVU_PFVF_FUNC_MASK) in rvu_get_pfvf()
452 if (!(pcifunc & RVU_PFVF_FUNC_MASK)) in is_pf_func_valid()
456 vf = (pcifunc & RVU_PFVF_FUNC_MASK) - 1; in is_pf_func_valid()
1480 pf = rvu_get_pfvf(rvu, pcifunc & ~RVU_PFVF_FUNC_MASK); in rvu_get_nix_blkaddr()
2000 vf = pcifunc & RVU_PFVF_FUNC_MASK; in rvu_mbox_handler_vf_flr()
2035 if ((pcifunc & RVU_PFVF_FUNC_MASK) || is_afvf(pcifunc)) in rvu_mbox_handler_set_vf_perm()
2038 target = (pcifunc & ~RVU_PFVF_FUNC_MASK) | (req->vf + 1); in rvu_mbox_handler_set_vf_perm()
[all …]
H A Drvu_cn10k.c56 (pcifunc & RVU_PFVF_FUNC_MASK)) * LMT_MAPTBL_ENTRY_SIZE; in rvu_get_lmtst_tbl_index()
74 ((pcifunc & RVU_PFVF_FUNC_MASK) & 0xFF); in rvu_get_lmtaddr()
H A Drvu_npc_hash.h144 (((func) & RVU_PFVF_FUNC_MASK) << RVU_PFVF_FUNC_SHIFT))
H A Drvu_nix.c344 vf = (pcifunc & RVU_PFVF_FUNC_MASK) - 1; in nix_interface_init()
394 from_vf = !!(pcifunc & RVU_PFVF_FUNC_MASK); in nix_interface_init()
404 vf = (pcifunc & RVU_PFVF_FUNC_MASK) - 1; in nix_interface_init()
1625 rvu_get_pf(pcifunc), pcifunc & RVU_PFVF_FUNC_MASK); in rvu_mbox_handler_nix_mark_format_cfg()
1937 schq = start + (pcifunc & RVU_PFVF_FUNC_MASK); in nix_check_txschq_alloc_req()
1992 idx = pcifunc & RVU_PFVF_FUNC_MASK; in nix_txsch_alloc()
2208 if ((TXSCH_MAP_FUNC(txsch->pfvf_map[tl2]) & ~RVU_PFVF_FUNC_MASK) != in nix_smq_flush_enadis_xoff()
2210 ~RVU_PFVF_FUNC_MASK))) in nix_smq_flush_enadis_xoff()
2385 if (!(pcifunc & RVU_PFVF_FUNC_MASK)) { in nix_txschq_free()
2705 pcifunc & RVU_PFVF_FUNC_MASK) { in rvu_mbox_handler_nix_txschq_cfg()
[all …]
H A Drvu_cpt.c355 if (pcifunc & RVU_PFVF_FUNC_MASK) in is_cpt_pf()
367 if (!(pcifunc & RVU_PFVF_FUNC_MASK)) in is_cpt_vf()
674 } else if (!(req->hdr.pcifunc & RVU_PFVF_FUNC_MASK)) { in validate_and_update_reg_offset()
H A Drvu_debugfs.c2273 if (!(pcifunc & RVU_PFVF_FUNC_MASK)) in rvu_dbg_nix_band_prof_ctx_display()
2279 (pcifunc & RVU_PFVF_FUNC_MASK) - 1); in rvu_dbg_nix_band_prof_ctx_display()
2649 if (!(pcifunc & RVU_PFVF_FUNC_MASK)) in rvu_print_npc_mcam_info()
2655 (pcifunc & RVU_PFVF_FUNC_MASK) - 1); in rvu_print_npc_mcam_info()
2932 if (iter->owner & RVU_PFVF_FUNC_MASK) { in rvu_dbg_npc_mcam_show_rules()
2933 vf = (iter->owner & RVU_PFVF_FUNC_MASK) - 1; in rvu_dbg_npc_mcam_show_rules()
2950 if (target & RVU_PFVF_FUNC_MASK) { in rvu_dbg_npc_mcam_show_rules()
2951 vf = (target & RVU_PFVF_FUNC_MASK) - 1; in rvu_dbg_npc_mcam_show_rules()
H A Dmcs_rvu_if.c97 if (pcifunc & RVU_PFVF_FUNC_MASK) in mcs_add_intr_wq_entry()
191 if (pcifunc & RVU_PFVF_FUNC_MASK) in rvu_mbox_handler_mcs_intr_cfg()
H A Drvu_npc_fs.c1288 bool from_vf = !!(req->hdr.pcifunc & RVU_PFVF_FUNC_MASK); in rvu_mbox_handler_npc_install_flow()
1347 target = (req->hdr.pcifunc & ~RVU_PFVF_FUNC_MASK) | req->vf; in rvu_mbox_handler_npc_install_flow()
/openbmc/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cpt_common.h23 (((func) & RVU_PFVF_FUNC_MASK) << RVU_PFVF_FUNC_SHIFT))
H A Dotx2_cptvf_mbox.c93 & RVU_PFVF_FUNC_MASK) - 1; in process_pfvf_mbox_mbox_msg()
H A Dotx2_cptpf_mbox.c354 ((vf->vf_id + 1) & RVU_PFVF_FUNC_MASK); in otx2_cptpf_vfpf_mbox_handler()
527 RVU_PFVF_FUNC_MASK; in otx2_cptpf_afpf_mbox_handler()
H A Dotx2_cptpf_main.c155 req->pcifunc &= RVU_PFVF_FUNC_MASK; in cptpf_flr_wq_handler()
156 req->pcifunc |= (vf + 1) & RVU_PFVF_FUNC_MASK; in cptpf_flr_wq_handler()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_pf.c129 req->hdr.pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_flr_handler()
130 req->hdr.pcifunc |= (vf + 1) & RVU_PFVF_FUNC_MASK; in otx2_flr_handler()
476 msg->pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler()
477 msg->pcifunc |= (vf_idx + 1) & RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler()
753 devid = msg->pcifunc & RVU_PFVF_FUNC_MASK; in otx2_process_pfaf_mbox_msg()
948 devid = msg->pcifunc & RVU_PFVF_FUNC_MASK; in otx2_pfaf_mbox_up_handler()
1635 if (!(pf->pcifunc & RVU_PFVF_FUNC_MASK)) in otx2_free_hw_resources()
1938 if (pf->linfo.link_up && !(pf->pcifunc & RVU_PFVF_FUNC_MASK)) in otx2_open()
H A Dotx2_common.h879 #define RVU_PFVF_FUNC_MASK 0x3FF macro
883 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_otx2_vf()
H A Dotx2_vf.c679 n = (vf->pcifunc >> RVU_PFVF_FUNC_SHIFT) & RVU_PFVF_FUNC_MASK; in otx2vf_probe()
H A Dotx2_tc.c395 req->vf = priv->pcifunc & RVU_PFVF_FUNC_MASK; in otx2_tc_parse_actions()