Lines Matching refs:pcifunc
292 static bool is_cpt_pf(struct rvu *rvu, u16 pcifunc) in is_cpt_pf() argument
296 if (rvu_get_pf(pcifunc) != cpt_pf_num) in is_cpt_pf()
298 if (pcifunc & RVU_PFVF_FUNC_MASK) in is_cpt_pf()
304 static bool is_cpt_vf(struct rvu *rvu, u16 pcifunc) in is_cpt_vf() argument
308 if (rvu_get_pf(pcifunc) != cpt_pf_num) in is_cpt_vf()
310 if (!(pcifunc & RVU_PFVF_FUNC_MASK)) in is_cpt_vf()
331 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_lf_alloc() local
345 num_lfs = rvu_get_rsrc_mapcount(rvu_get_pfvf(rvu, pcifunc), in rvu_mbox_handler_cpt_lf_alloc()
354 req->nix_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc()
363 req->sso_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc()
369 cptlf = rvu_get_lf(rvu, block, pcifunc, slot); in rvu_mbox_handler_cpt_lf_alloc()
395 u16 pcifunc = req->hdr.pcifunc; in cpt_lf_free() local
400 num_lfs = rvu_get_rsrc_mapcount(rvu_get_pfvf(rvu, pcifunc), in cpt_lf_free()
406 cptlf = rvu_get_lf(rvu, block, pcifunc, slot); in cpt_lf_free()
411 rvu_cpt_lf_teardown(rvu, pcifunc, blkaddr, cptlf, slot); in cpt_lf_free()
542 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_inline_ipsec_cfg() local
547 blkaddr = rvu_get_blkaddr_from_slot(rvu, BLKTYPE_CPT, pcifunc, in rvu_mbox_handler_cpt_inline_ipsec_cfg()
554 cptlf = rvu_get_lf(rvu, block, pcifunc, actual_slot); in rvu_mbox_handler_cpt_inline_ipsec_cfg()
593 pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in is_valid_offset()
601 req->hdr.pcifunc, lf); in is_valid_offset()
606 } else if (!(req->hdr.pcifunc & RVU_PFVF_FUNC_MASK)) { in is_valid_offset()
644 if (!is_cpt_pf(rvu, req->hdr.pcifunc) && in rvu_mbox_handler_cpt_rd_wr_register()
645 !is_cpt_vf(rvu, req->hdr.pcifunc)) in rvu_mbox_handler_cpt_rd_wr_register()
733 if (!is_cpt_pf(rvu, req->hdr.pcifunc) && in rvu_mbox_handler_cpt_sts()
734 !is_cpt_vf(rvu, req->hdr.pcifunc)) in rvu_mbox_handler_cpt_sts()
789 if (!is_cpt_pf(rvu, req->hdr.pcifunc) && in rvu_mbox_handler_cpt_rxc_time_cfg()
790 !is_cpt_vf(rvu, req->hdr.pcifunc)) in rvu_mbox_handler_cpt_rxc_time_cfg()
801 return rvu_cpt_ctx_flush(rvu, req->hdr.pcifunc); in rvu_mbox_handler_cpt_ctx_cache_sync()
914 int rvu_cpt_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int lf, int slot) in rvu_cpt_lf_teardown() argument
918 if (is_cpt_pf(rvu, pcifunc) || is_cpt_vf(rvu, pcifunc)) in rvu_cpt_lf_teardown()
922 reg = BIT_ULL(16) | pcifunc; in rvu_cpt_lf_teardown()
1026 int rvu_cpt_ctx_flush(struct rvu *rvu, u16 pcifunc) in rvu_cpt_ctx_flush() argument
1034 nix_blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); in rvu_cpt_ctx_flush()
1058 num_lfs = rvu_get_rsrc_mapcount(rvu_get_pfvf(rvu, pcifunc), in rvu_cpt_ctx_flush()
1066 reg = BIT_ULL(16) | pcifunc; in rvu_cpt_ctx_flush()
1072 if ((FIELD_GET(CTX_CAM_PF_FUNC, cam_data) == pcifunc) && in rvu_cpt_ctx_flush()