Home
last modified time | relevance | path

Searched refs:pcifunc (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu_switch.c18 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_rx_rule()
28 req.hdr.pcifunc = 0; /* AF is requester */ in rvu_switch_install_rx_rule()
29 req.vf = pcifunc; in rvu_switch_install_rx_rule()
47 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_tx_rule()
59 req.vf = pcifunc; in rvu_switch_install_tx_rule()
75 u16 pcifunc, entry = 0; in rvu_switch_install_rules() local
83 pcifunc = pf << 10; in rvu_switch_install_rules()
90 rvu_get_nix_blkaddr(rvu, pcifunc); in rvu_switch_install_rules()
117 rvu_get_nix_blkaddr(rvu, pcifunc); in rvu_switch_install_rules()
204 u16 pcifunc; in rvu_switch_disable() local
[all …]
A Drvu_nix.c471 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_bp_disable() local
573 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_bp_enable() local
842 u16 pcifunc = req->hdr.pcifunc; in rvu_nix_blk_aq_enq_inst() local
1301 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_lf_alloc() local
1529 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_lf_free() local
1572 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_mark_format_cfg() local
1897 u16 pcifunc = rsp->hdr.pcifunc; in nix_txsch_alloc() local
1981 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_txsch_alloc() local
2203 u16 pcifunc = req->hdr.pcifunc; in nix_txschq_free_one() local
2388 u16 pcifunc = req->hdr.pcifunc; in nix_txschq_cfg_read() local
[all …]
A Drvu_cgx.c448 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_rxtx()
473 int pf = rvu_get_pf(pcifunc); in rvu_cgx_disable_dmac_entries()
708 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cgx_promisc_enable() local
709 int pf = rvu_get_pf(pcifunc); in rvu_mbox_handler_cgx_promisc_enable()
747 int pf = rvu_get_pf(pcifunc); in rvu_cgx_ptp_rx_cfg()
796 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_linkevents()
835 pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_get_linkinfo()
894 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_intlbk()
924 int pf = rvu_get_pf(pcifunc); in rvu_cgx_cfg_pause_frm()
1010 u16 pcifunc; in rvu_cgx_nix_cuml_stats() local
[all …]
A Drvu.h675 static inline bool is_afvf(u16 pcifunc) in is_afvf() argument
677 return !(pcifunc & ~RVU_PFVF_FUNC_MASK); in is_afvf()
680 static inline bool is_vf(u16 pcifunc) in is_vf() argument
682 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_vf()
688 return !pcifunc; in is_pffunc_af()
706 int rvu_get_pf(u16 pcifunc);
734 bool is_sdp_pfvf(u16 pcifunc);
735 bool is_sdp_pf(u16 pcifunc);
736 bool is_sdp_vf(u16 pcifunc);
753 return ((pcifunc & RVU_PFVF_FUNC_MASK) && in is_cgx_vf()
[all …]
A Drvu_npc.c753 pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK; in rvu_npc_enable_promisc_entry()
785 pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK; in rvu_npc_install_bcast_match_entry()
2632 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_alloc_entry() local
2679 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_free_entry() local
2726 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_read_entry() local
2751 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_write_entry() local
2808 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_ena_entry() local
2831 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_dis_entry() local
2854 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_shift_entry() local
2923 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_alloc_counter() local
[all …]
A Drvu_sdp.c20 bool is_sdp_pfvf(u16 pcifunc) in is_sdp_pfvf() argument
22 u16 pf = rvu_get_pf(pcifunc); in is_sdp_pfvf()
37 bool is_sdp_pf(u16 pcifunc) in is_sdp_pf() argument
39 return (is_sdp_pfvf(pcifunc) && in is_sdp_pf()
40 !(pcifunc & RVU_PFVF_FUNC_MASK)); in is_sdp_pf()
43 bool is_sdp_vf(u16 pcifunc) in is_sdp_vf() argument
45 return (is_sdp_pfvf(pcifunc) && in is_sdp_vf()
46 !!(pcifunc & RVU_PFVF_FUNC_MASK)); in is_sdp_vf()
85 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_set_sdp_chan_info()
A Drvu.c268 if (!pcifunc) { in rvu_get_blkaddr()
284 if (!pcifunc) { in rvu_get_blkaddr()
1598 pcifunc); in rvu_check_rsrc_availability()
1615 pcifunc); in rvu_check_rsrc_availability()
1712 u16 pcifunc = attach->hdr.pcifunc; in rvu_mbox_handler_attach_resources() local
1840 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_msix_offset() local
1995 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_vf_flr() local
2028 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_set_vf_perm() local
2034 if ((pcifunc & RVU_PFVF_FUNC_MASK) || is_afvf(pcifunc)) in rvu_mbox_handler_set_vf_perm()
2094 rsp->hdr.pcifunc = req->pcifunc; \ in rvu_process_mbox_msg()
[all …]
A Dmcs_rvu_if.c55 u16 pcifunc = event->pcifunc; in mcs_add_intr_wq_entry() local
98 req->hdr.pcifunc = event->pcifunc; in mcs_notify_pfvf()
139 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_intr_cfg() local
154 mcs->pf_map[0] = pcifunc; in rvu_mbox_handler_mcs_intr_cfg()
198 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_clear_stats() local
589 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_free_resources() local
639 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_alloc_resources() local
662 pcifunc, req->dir); in rvu_mbox_handler_mcs_alloc_resources()
721 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule() local
755 pcifunc); in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule()
[all …]
A Drvu_npa.c65 u16 pcifunc = req->hdr.pcifunc; in rvu_npa_aq_enq_inst() local
74 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npa_aq_enq_inst()
89 npalf = rvu_get_lf(rvu, block, pcifunc, 0); in rvu_npa_aq_enq_inst()
222 aq_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_disable()
267 lock_ctx_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_lockdown()
275 req->hdr.pcifunc, in npa_lf_hwctx_lockdown()
333 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npa_lf_alloc() local
346 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_mbox_handler_npa_lf_alloc()
439 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npa_lf_free() local
445 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_mbox_handler_npa_lf_free()
[all …]
A Drvu_cpt.c355 if (pcifunc & RVU_PFVF_FUNC_MASK) in is_cpt_pf()
388 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_lf_alloc() local
411 req->nix_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc()
420 req->sso_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc()
456 u16 pcifunc = req->hdr.pcifunc; in cpt_lf_free() local
603 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_inline_ipsec_cfg() local
662 req->hdr.pcifunc, lf); in is_valid_offset()
880 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_lf_reset() local
1047 if (is_cpt_pf(rvu, pcifunc) || is_cpt_vf(rvu, pcifunc)) in rvu_cpt_lf_teardown()
1052 reg = BIT_ULL(16) | pcifunc; in rvu_cpt_lf_teardown()
[all …]
A Drvu_cn10k.c55 return ((rvu_get_pf(pcifunc) * rvu->hw->total_vfs) + in rvu_get_lmtst_tbl_index()
56 (pcifunc & RVU_PFVF_FUNC_MASK)) * LMT_MAPTBL_ENTRY_SIZE; in rvu_get_lmtst_tbl_index()
59 static int rvu_get_lmtaddr(struct rvu *rvu, u16 pcifunc, in rvu_get_lmtaddr() argument
71 pf = rvu_get_pf(pcifunc) & 0x1F; in rvu_get_lmtaddr()
73 ((pcifunc & RVU_PFVF_FUNC_MASK) & 0xFF); in rvu_get_lmtaddr()
98 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_update_lmtaddr()
104 tbl_idx = rvu_get_lmtst_tbl_index(rvu, pcifunc); in rvu_update_lmtaddr()
146 err = rvu_get_lmtaddr(rvu, req->hdr.pcifunc, in rvu_mbox_handler_lmtst_tbl_setup()
182 err = rvu_update_lmtaddr(rvu, req->hdr.pcifunc, val); in rvu_mbox_handler_lmtst_tbl_setup()
239 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_reset_lmt_map_tbl()
[all …]
A Dmcs.c318 if (map->sc2pf_map[id] != pcifunc) in mcs_clear_all_stats()
567 pf_map[rsrc_id] = pcifunc; in mcs_alloc_ctrlpktrule()
574 u16 pcifunc = req->hdr.pcifunc; in mcs_free_ctrlpktrule() local
693 if (pf_map[rsrc_id] != pcifunc) in mcs_free_rsrc()
717 id, pcifunc); in mcs_free_all_rsrc()
726 id, pcifunc); in mcs_free_all_rsrc()
757 pf_map[rsrc_id] = pcifunc; in mcs_alloc_rsrc()
896 event.pcifunc = mcs->pf_map[0]; in mcs_rx_misc_intr_handler()
922 event.pcifunc = mcs->pf_map[0]; in mcs_tx_misc_intr_handler()
938 event.pcifunc = mcs->pf_map[0]; in mcs_bbe_intr_handler()
[all …]
A Drvu_npc_hash.c793 entry->pcifunc = pcifunc; in rvu_npc_exact_add_to_list()
1003 table->drop_rule_map[i].pcifunc = pcifunc; in rvu_npc_exact_save_drop_rule_chan_and_mask()
1115 if (pcifunc) in rvu_npc_exact_get_drop_rule_info()
1116 *pcifunc = table->drop_rule_map[i].pcifunc; in rvu_npc_exact_get_drop_rule_info()
1274 u32 mcam_idx, u16 pcifunc) in rvu_npc_exact_add_table_entry() argument
1424 int pf = rvu_get_pf(pcifunc); in rvu_npc_exact_promisc_disable()
1475 int pf = rvu_get_pf(pcifunc); in rvu_npc_exact_promisc_enable()
1802 if (pcifunc != iter->pcifunc) in rvu_npc_exact_reset()
1807 pcifunc, seq_id); in rvu_npc_exact_reset()
1836 u16 pcifunc; in rvu_npc_exact_init() local
[all …]
A Drvu_npc_hash.h154 u16 pcifunc; member
189 u16 pcifunc; member
225 void rvu_npc_exact_reset(struct rvu *rvu, u16 pcifunc);
229 void rvu_npc_exact_reset(struct rvu *rvu, u16 pcifunc);
231 int rvu_npc_exact_promisc_disable(struct rvu *rvu, u16 pcifunc);
232 int rvu_npc_exact_promisc_enable(struct rvu *rvu, u16 pcifunc);
A Dmcs.h97 u16 pcifunc; member
186 int mcs_alloc_rsrc(struct rsrc_bmap *rsrc, u16 *pf_map, u16 pcifunc);
187 int mcs_free_rsrc(struct rsrc_bmap *rsrc, u16 *pf_map, int rsrc_id, u16 pcifunc);
189 u8 *sc_id, u8 *sa1_id, u8 *sa2_id, u16 pcifunc, int dir);
190 int mcs_free_all_rsrc(struct mcs *mcs, int dir, u16 pcifunc);
212 int mcs_alloc_ctrlpktrule(struct rsrc_bmap *rsrc, u16 *pf_map, u16 offset, u16 pcifunc);
241 int mcs_clear_all_stats(struct mcs *mcs, u16 pcifunc, int dir);
A Drvu_debugfs.c703 u16 pcifunc; in get_max_column_width() local
847 u16 pcifunc; in rvu_dbg_rvu_pf_cgx_map_display() local
952 u16 pcifunc; in rvu_dbg_qsize_display() local
998 u16 pcifunc; in rvu_dbg_qsize_write() local
1166 u16 pcifunc; in rvu_dbg_npa_ctx_display() local
1199 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_npa_ctx_display()
1242 u16 pcifunc; in write_npa_ctx() local
1862 u16 pcifunc; in rvu_dbg_nix_queue_ctx_display() local
1917 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_nix_queue_ctx_display()
1945 u16 pcifunc; in write_nix_queue_ctx() local
[all …]
A Drvu_npc_fs.c979 free_req.hdr.pcifunc = pcifunc; in rvu_mcam_remove_counter_from_rule()
994 cntr_req.hdr.pcifunc = pcifunc; in rvu_mcam_add_counter_to_rule()
1112 u16 owner = req->hdr.pcifunc; in npc_install_flow()
1174 write_req.hdr.pcifunc = owner; in npc_install_flow()
1180 write_req.hdr.pcifunc = 0; in npc_install_flow()
1309 if (!req->hdr.pcifunc) in rvu_mbox_handler_npc_install_flow()
1319 target = req->hdr.pcifunc; in rvu_mbox_handler_npc_install_flow()
1380 u16 pcifunc) in npc_delete_flow() argument
1391 dis_req.hdr.pcifunc = pcifunc; in npc_delete_flow()
1406 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_delete_flow() local
[all …]
A Dmcs_cnf10kb.c184 event.pcifunc = mcs->tx.sa2pf_map[event.sa_id]; in cnf10kb_mcs_tx_pn_thresh_reached_handler()
211 event.pcifunc = mcs->tx.sa2pf_map[event.sa_id]; in cnf10kb_mcs_tx_pn_wrapped_handler()
A Dmbox.c371 otx2_reply_invalid_msg(struct otx2_mbox *mbox, int devid, u16 pcifunc, u16 id) in otx2_reply_invalid_msg() argument
382 rsp->hdr.pcifunc = pcifunc; in otx2_reply_invalid_msg()
/linux-6.3-rc2/drivers/crypto/marvell/octeontx2/
A Dotx2_cptpf_mbox.c31 msg->pcifunc = req->pcifunc; in forward_to_af()
65 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_get_caps()
88 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_get_eng_grp_num()
109 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_kvf_limits()
202 msg->pcifunc = ((u16)cptpf->pf_id << RVU_PFVF_PF_SHIFT) | in otx2_cptpf_vfpf_mbox_handler()
260 cptpf->pf_id = (msg->pcifunc >> RVU_PFVF_PF_SHIFT) & in process_afpf_mbox_msg()
327 fwd->pcifunc = msg->pcifunc; in forward_to_vf()
355 vf_id = (msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) & in otx2_cptpf_afpf_mbox_handler()
A Dotx2_cpt_mbox_common.c36 req->pcifunc = 0; in otx2_cpt_send_ready_msg()
64 reg_msg->hdr.pcifunc = 0; in otx2_cpt_add_read_af_reg()
89 reg_msg->hdr.pcifunc = 0; in otx2_cpt_add_write_af_reg()
142 req->hdr.pcifunc = 0; in otx2_cpt_attach_rscrs_msg()
170 req->hdr.pcifunc = 0; in otx2_cpt_detach_rsrcs_msg()
198 req->pcifunc = 0; in otx2_cpt_msix_offset_msg()
A Dotx2_cptvf_mbox.c92 cptvf->vf_id = ((msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) in process_pfvf_mbox_mbox_msg()
183 req->hdr.pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_eng_grp_num_msg()
204 req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_kvf_limits_msg()
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_pf.c127 req->hdr.pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_flr_handler()
227 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr()
237 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr()
487 msg->pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler()
706 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr()
722 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr()
783 pf->pcifunc = msg->pcifunc; in otx2_process_pfaf_mbox_msg()
922 rsp->hdr.pcifunc = 0; \ in otx2_process_mbox_msg_up()
1572 if (!(pf->pcifunc & RVU_PFVF_FUNC_MASK)) in otx2_free_hw_resources()
1777 rvu_get_pf(pf->pcifunc)); in otx2_open()
[all …]
A Dotx2_common.h461 u16 pcifunc; /* RVU PF_FUNC */ member
857 static inline bool is_otx2_vf(u16 pcifunc) in is_otx2_vf() argument
859 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_otx2_vf()
862 static inline int rvu_get_pf(u16 pcifunc) in rvu_get_pf() argument
864 return (pcifunc >> RVU_PFVF_PF_SHIFT) & RVU_PFVF_PF_MASK; in rvu_get_pf()
A Dotx2_vf.c62 vf->pcifunc = msg->pcifunc; in otx2vf_process_vfaf_mbox_msg()
137 rsp->hdr.pcifunc = 0; in otx2vf_process_mbox_msg_up()
667 n = (vf->pcifunc >> RVU_PFVF_FUNC_SHIFT) & RVU_PFVF_FUNC_MASK; in otx2vf_probe()

Completed in 112 milliseconds

12