Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu_switch.c29 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_rx_rule()
39 req.hdr.pcifunc = 0; /* AF is requester */ in rvu_switch_install_rx_rule()
40 req.vf = pcifunc; in rvu_switch_install_rx_rule()
58 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_tx_rule()
72 req.vf = pcifunc; in rvu_switch_install_tx_rule()
88 u16 pcifunc, entry = 0; in rvu_switch_install_rules() local
96 pcifunc = pf << 10; in rvu_switch_install_rules()
103 rvu_get_nix_blkaddr(rvu, pcifunc); in rvu_switch_install_rules()
130 rvu_get_nix_blkaddr(rvu, pcifunc); in rvu_switch_install_rules()
219 u16 pcifunc; in rvu_switch_disable() local
[all …]
A Drvu_cgx.c461 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_rxtx()
478 int pf = rvu_get_pf(pcifunc); in rvu_cgx_tx_enable()
503 int pf = rvu_get_pf(pcifunc); in rvu_cgx_disable_dmac_entries()
766 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cgx_promisc_enable() local
767 int pf = rvu_get_pf(pcifunc); in rvu_mbox_handler_cgx_promisc_enable()
805 int pf = rvu_get_pf(pcifunc); in rvu_cgx_ptp_rx_cfg()
855 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_linkevents()
953 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_intlbk()
983 int pf = rvu_get_pf(pcifunc); in rvu_cgx_cfg_pause_frm()
1069 u16 pcifunc; in rvu_cgx_nix_cuml_stats() local
[all …]
A Drvu.h137 u32 pcifunc; member
791 return (!(pcifunc & ~RVU_PFVF_FUNC_MASK) && in is_lbk_vf()
795 static inline bool is_vf(u16 pcifunc) in is_vf() argument
797 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_vf()
801 static inline bool is_pffunc_af(u16 pcifunc) in is_pffunc_af() argument
803 return !pcifunc; in is_pffunc_af()
822 int rvu_get_pf(u16 pcifunc);
851 bool is_sdp_pfvf(u16 pcifunc);
852 bool is_sdp_pf(u16 pcifunc);
870 return ((pcifunc & RVU_PFVF_FUNC_MASK) && in is_cgx_vf()
[all …]
A Drvu_nix.c574 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_bp_disable() local
699 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_bp_enable() local
983 u16 pcifunc = req->hdr.pcifunc; in rvu_nix_blk_aq_enq_inst() local
1444 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_lf_alloc() local
1672 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_lf_free() local
1715 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_mark_format_cfg() local
2077 u16 pcifunc = rsp->hdr.pcifunc; in nix_txsch_alloc() local
2161 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_txsch_alloc() local
2546 u16 pcifunc = req->hdr.pcifunc; in nix_txschq_free_one() local
3368 mce->pcifunc = pcifunc; in nix_update_mce_list_entry()
[all …]
A Drvu_npc.c754 pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK; in rvu_npc_enable_promisc_entry()
786 pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK; in rvu_npc_install_bcast_match_entry()
2699 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_alloc_entry() local
2745 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_free_entry() local
2792 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_read_entry() local
2817 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_write_entry() local
2868 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_ena_entry() local
2891 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_dis_entry() local
2914 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_shift_entry() local
2983 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()
44 bool is_sdp_vf(struct rvu *rvu, u16 pcifunc) in is_sdp_vf() argument
46 if (!(pcifunc & ~RVU_PFVF_FUNC_MASK)) in is_sdp_vf()
49 return (is_sdp_pfvf(pcifunc) && in is_sdp_vf()
50 !!(pcifunc & RVU_PFVF_FUNC_MASK)); in is_sdp_vf()
97 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()
1603 pcifunc); in rvu_check_rsrc_availability()
1620 pcifunc); in rvu_check_rsrc_availability()
1717 u16 pcifunc = attach->hdr.pcifunc; in rvu_mbox_handler_attach_resources() local
1845 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_msix_offset() local
2000 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_vf_flr() local
2040 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_set_vf_perm() local
2046 if ((pcifunc & RVU_PFVF_FUNC_MASK) || is_lbk_vf(rvu, pcifunc)) in rvu_mbox_handler_set_vf_perm()
2083 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_ndc_sync_op() local
[all …]
A Dmcs_rvu_if.c92 u16 pcifunc = event->pcifunc; in mcs_add_intr_wq_entry() local
139 req->hdr.pcifunc = event->pcifunc; in mcs_notify_pfvf()
181 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_intr_cfg() local
196 mcs->pf_map[0] = pcifunc; in rvu_mbox_handler_mcs_intr_cfg()
240 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_clear_stats() local
631 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_free_resources() local
681 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_alloc_resources() local
704 pcifunc, req->dir); in rvu_mbox_handler_mcs_alloc_resources()
763 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule() local
797 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.c415 if (pcifunc & RVU_PFVF_FUNC_MASK) in is_cpt_pf()
448 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_lf_alloc() local
471 req->nix_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc()
480 req->sso_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc()
516 u16 pcifunc = req->hdr.pcifunc; in cpt_lf_free() local
663 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_inline_ipsec_cfg() local
724 req->hdr.pcifunc, lf); in validate_and_update_reg_offset()
953 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_lf_reset() local
1125 if (is_cpt_pf(rvu, pcifunc) || is_cpt_vf(rvu, pcifunc)) in rvu_cpt_lf_teardown()
1130 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
72 pf = rvu_get_pf(pcifunc) & 0x1F; in rvu_get_lmtaddr()
74 ((pcifunc & RVU_PFVF_FUNC_MASK) & 0xFF); in rvu_get_lmtaddr()
101 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_update_lmtaddr()
107 tbl_idx = rvu_get_lmtst_tbl_index(rvu, pcifunc); in rvu_update_lmtaddr()
149 err = rvu_get_lmtaddr(rvu, req->hdr.pcifunc, in rvu_mbox_handler_lmtst_tbl_setup()
185 err = rvu_update_lmtaddr(rvu, req->hdr.pcifunc, val); in rvu_mbox_handler_lmtst_tbl_setup()
242 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_reset_lmt_map_tbl()
[all …]
A Drvu_npc_hash.c835 entry->pcifunc = pcifunc; in rvu_npc_exact_add_to_list()
1045 table->drop_rule_map[i].pcifunc = pcifunc; in rvu_npc_exact_save_drop_rule_chan_and_mask()
1157 if (pcifunc) in rvu_npc_exact_get_drop_rule_info()
1158 *pcifunc = table->drop_rule_map[i].pcifunc; in rvu_npc_exact_get_drop_rule_info()
1318 u32 mcam_idx, u16 pcifunc) in rvu_npc_exact_add_table_entry() argument
1468 int pf = rvu_get_pf(pcifunc); in rvu_npc_exact_promisc_disable()
1515 int pf = rvu_get_pf(pcifunc); in rvu_npc_exact_promisc_enable()
1838 if (pcifunc != iter->pcifunc) in rvu_npc_exact_reset()
1843 pcifunc, seq_id); in rvu_npc_exact_reset()
1872 u16 pcifunc; in rvu_npc_exact_init() local
[all …]
A Dmcs.c318 if (map->sc2pf_map[id] != pcifunc) in mcs_clear_all_stats()
325 if (map->sa2pf_map[id] != pcifunc) in mcs_clear_all_stats()
577 pf_map[rsrc_id] = pcifunc; in mcs_alloc_ctrlpktrule()
584 u16 pcifunc = req->hdr.pcifunc; in mcs_free_ctrlpktrule() local
703 if (pf_map[rsrc_id] != pcifunc) in mcs_free_rsrc()
727 id, pcifunc); in mcs_free_all_rsrc()
736 id, pcifunc); in mcs_free_all_rsrc()
742 if (map->sc2pf_map[id] != pcifunc) in mcs_free_all_rsrc()
767 pf_map[rsrc_id] = pcifunc; in mcs_alloc_rsrc()
906 event.pcifunc = mcs->pf_map[0]; in mcs_rx_misc_intr_handler()
[all …]
A Drvu_npc_hash.h160 u16 pcifunc; member
195 u16 pcifunc; member
231 void rvu_npc_exact_reset(struct rvu *rvu, u16 pcifunc);
235 void rvu_npc_exact_reset(struct rvu *rvu, u16 pcifunc);
237 int rvu_npc_exact_promisc_disable(struct rvu *rvu, u16 pcifunc);
238 int rvu_npc_exact_promisc_enable(struct rvu *rvu, u16 pcifunc);
A Drvu_debugfs.c704 u16 pcifunc; in get_max_column_width() local
848 u16 pcifunc; in rvu_dbg_rvu_pf_cgx_map_display() local
956 u16 pcifunc; in rvu_dbg_qsize_display() local
1002 u16 pcifunc; in rvu_dbg_qsize_write() local
1168 u16 pcifunc; in rvu_dbg_npa_ctx_display() local
1201 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_npa_ctx_display()
1249 u16 pcifunc; in write_npa_ctx() local
1647 u16 pcifunc; in rvu_dbg_nix_tm_tree_display() local
1659 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_nix_tm_tree_display()
1924 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_nix_tm_topo_display()
[all …]
A Dmcs.h88 u16 pcifunc; member
181 int mcs_alloc_rsrc(struct rsrc_bmap *rsrc, u16 *pf_map, u16 pcifunc);
182 int mcs_free_rsrc(struct rsrc_bmap *rsrc, u16 *pf_map, int rsrc_id, u16 pcifunc);
184 u8 *sc_id, u8 *sa1_id, u8 *sa2_id, u16 pcifunc, int dir);
185 int mcs_free_all_rsrc(struct mcs *mcs, int dir, u16 pcifunc);
207 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_npc_fs.c1090 free_req.hdr.pcifunc = pcifunc; in rvu_mcam_remove_counter_from_rule()
1105 cntr_req.hdr.pcifunc = pcifunc; in rvu_mcam_add_counter_to_rule()
1135 if (req->hdr.pcifunc && in npc_mcast_update_action_index()
1267 u16 owner = req->hdr.pcifunc; in npc_install_flow()
1334 write_req.hdr.pcifunc = owner; in npc_install_flow()
1340 write_req.hdr.pcifunc = 0; in npc_install_flow()
1473 if (!req->hdr.pcifunc) in rvu_mbox_handler_npc_install_flow()
1483 target = req->hdr.pcifunc; in rvu_mbox_handler_npc_install_flow()
1544 u16 pcifunc) in npc_delete_flow() argument
1555 dis_req.hdr.pcifunc = pcifunc; in npc_delete_flow()
[all …]
A Dmcs_cnf10kb.c187 event.pcifunc = mcs->tx.sa2pf_map[event.sa_id]; in cnf10kb_mcs_tx_pn_thresh_reached_handler()
214 event.pcifunc = mcs->tx.sa2pf_map[event.sa_id]; in cnf10kb_mcs_tx_pn_wrapped_handler()
229 event.pcifunc = mcs->pf_map[0]; in cnf10kb_mcs_bbe_intr_handler()
263 event.pcifunc = mcs->pf_map[0]; in cnf10kb_mcs_pab_intr_handler()
A Dmbox.c413 otx2_reply_invalid_msg(struct otx2_mbox *mbox, int devid, u16 pcifunc, u16 id) in otx2_reply_invalid_msg() argument
424 rsp->hdr.pcifunc = pcifunc; in otx2_reply_invalid_msg()
/linux/drivers/crypto/marvell/octeontx2/
A Dotx2_cptpf_mbox.c45 msg->pcifunc = req->pcifunc; in forward_to_af()
79 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_get_caps()
102 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_get_eng_grp_num()
123 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_kvf_limits()
145 req->hdr.pcifunc = OTX2_CPT_RVU_PFFUNC(cptpf->pf_id, 0); in send_inline_ipsec_inbound_msg()
400 msg->pcifunc = ((u16)cptpf->pf_id << RVU_PFVF_PF_SHIFT) | in otx2_cptpf_vfpf_mbox_handler()
477 cptpf->pf_id = (msg->pcifunc >> RVU_PFVF_PF_SHIFT) & in process_afpf_mbox_msg()
556 fwd->pcifunc = msg->pcifunc; in forward_to_vf()
584 vf_id = (msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) & in otx2_cptpf_afpf_mbox_handler()
618 rsp->hdr.pcifunc = 0; in handle_msg_cpt_inst_lmtst()
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()
172 req->hdr.pcifunc = 0; in otx2_cpt_detach_rsrcs_msg()
201 req->pcifunc = 0; in otx2_cpt_msix_offset_msg()
249 req->hdr.pcifunc = 0; in otx2_cpt_lf_reset_msg()
A Dotx2_cptvf_mbox.c93 cptvf->vf_id = ((msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) in process_pfvf_mbox_mbox_msg()
191 req->hdr.pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_eng_grp_num_msg()
212 req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_kvf_limits_msg()
232 req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_caps_msg()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_pf.c229 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr()
239 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr()
474 msg->pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler()
693 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr()
709 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr()
770 pf->pcifunc = msg->pcifunc; in otx2_process_pfaf_mbox_msg()
907 rsp->hdr.pcifunc = 0; \ in otx2_process_mbox_msg_up()
1697 if (is_otx2_vf(pfvf->pcifunc)) in otx2_promisc_use_mce_list()
1878 rvu_get_pf(pf->pcifunc)); in otx2_open()
1896 rvu_get_pf(pf->pcifunc), qidx); in otx2_open()
[all …]
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()
679 n = (vf->pcifunc >> RVU_PFVF_FUNC_SHIFT) & RVU_PFVF_FUNC_MASK; in otx2vf_probe()
A Dotx2_common.h484 u16 pcifunc; /* RVU PF_FUNC */ member
881 static inline bool is_otx2_vf(u16 pcifunc) in is_otx2_vf() argument
883 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_otx2_vf()
886 static inline int rvu_get_pf(u16 pcifunc) in rvu_get_pf() argument
888 return (pcifunc >> RVU_PFVF_PF_SHIFT) & RVU_PFVF_PF_MASK; in rvu_get_pf()

Completed in 892 milliseconds

12