Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu_rep.c54 msg->hdr.pcifunc = event->pcifunc; in rvu_rep_up_notify()
131 req->pcifunc = pcifunc; in rvu_rep_notify_pfvf_state()
151 u16 pcifunc = req->pcifunc; in rvu_mbox_handler_nix_lf_stats() local
161 rst_req.hdr.pcifunc = pcifunc; in rvu_mbox_handler_nix_lf_stats()
180 rsp->pcifunc = req->pcifunc; in rvu_mbox_handler_nix_lf_stats()
203 req.hdr.pcifunc = pcifunc; in rvu_rep_tx_vlan_cfg()
224 req.hdr.pcifunc = pcifunc; in rvu_rep_rx_vlan_cfg()
253 req.vf = pcifunc; in rvu_rep_install_rx_rule()
297 req.vf = pcifunc; in rvu_rep_install_tx_rule()
319 u16 pcifunc, entry = 0; in rvu_rep_install_mcam_rules() local
[all …]
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()
71 req.hdr.pcifunc = 0; /* AF is requester */ 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
103 rvu_get_nix_blkaddr(rvu, pcifunc); in rvu_switch_install_rules()
125 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_switch_install_rules()
130 rvu_get_nix_blkaddr(rvu, pcifunc); in rvu_switch_install_rules()
[all …]
A Drvu_cgx.c459 if ((pcifunc & RVU_PFVF_FUNC_MASK) || in is_cgx_config_permitted()
487 int pf = rvu_get_pf(rvu->pdev, pcifunc); in rvu_cgx_config_rxtx()
504 int pf = rvu_get_pf(rvu->pdev, pcifunc); in rvu_cgx_tx_enable()
529 int pf = rvu_get_pf(rvu->pdev, pcifunc); in rvu_cgx_disable_dmac_entries()
540 rvu_npc_exact_reset(rvu, pcifunc); in rvu_cgx_disable_dmac_entries()
787 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cgx_promisc_enable() local
788 int pf = rvu_get_pf(rvu->pdev, pcifunc); in rvu_mbox_handler_cgx_promisc_enable()
826 int pf = rvu_get_pf(rvu->pdev, pcifunc); in rvu_cgx_ptp_rx_cfg()
876 int pf = rvu_get_pf(rvu->pdev, pcifunc); in rvu_cgx_config_linkevents()
1089 u16 pcifunc; in rvu_cgx_nix_cuml_stats() local
[all …]
A Drvu.h167 u32 pcifunc; member
855 return (!(pcifunc & ~RVU_PFVF_FUNC_MASK) && in is_lbk_vf()
859 static inline bool is_vf(u16 pcifunc) in is_vf() argument
861 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_vf()
865 static inline bool is_pffunc_af(u16 pcifunc) in is_pffunc_af() argument
867 return !pcifunc; in is_pffunc_af()
915 bool is_sdp_pf(struct rvu *rvu, u16 pcifunc);
916 bool is_sdp_vf(struct rvu *rvu, u16 pcifunc);
932 return (pcifunc >> RVU_OTX2_PFVF_PF_SHIFT) & in rvu_get_pf()
951 return ((pcifunc & RVU_PFVF_FUNC_MASK) && in is_cgx_vf()
[all …]
A Drvu_nix.c585 u16 pcifunc = req->hdr.pcifunc; in nix_bp_disable() local
733 u16 pcifunc = req->hdr.pcifunc; in nix_bp_enable() local
1037 u16 pcifunc = req->hdr.pcifunc; in rvu_nix_blk_aq_enq_inst() local
1498 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_lf_alloc() local
1732 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_lf_free() local
1779 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_mark_format_cfg() local
2143 u16 pcifunc = rsp->hdr.pcifunc; in nix_txsch_alloc() local
2227 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_txsch_alloc() local
2612 u16 pcifunc = req->hdr.pcifunc; in nix_txschq_free_one() local
3435 mce->pcifunc = pcifunc; in nix_update_mce_list_entry()
[all …]
A Drvu_npc.c2730 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_alloc_entry() local
2776 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_free_entry() local
2823 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_read_entry() local
2848 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_write_entry() local
2899 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_ena_entry() local
2922 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_dis_entry() local
2945 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_shift_entry() local
3014 u16 pcifunc = req->hdr.pcifunc; in __npc_mcam_alloc_counter() local
3149 free_req.hdr.pcifunc = pcifunc; in __rvu_mcam_remove_counter_from_rule()
3164 cntr_req.hdr.pcifunc = pcifunc; in __rvu_mcam_add_counter_to_rule()
[all …]
A Drvu_trace.h22 TP_ARGS(pdev, id, size, pcifunc),
26 __field(u16, pcifunc)
31 __entry->pcifunc = pcifunc;
35 __entry->pcifunc)
40 u16 id, u16 pcifunc),
46 __field(u16, pcifunc)
52 __entry->pcifunc = pcifunc;
94 TP_ARGS(pdev, id, err, pcifunc),
98 __field(u16, pcifunc)
103 __entry->pcifunc = pcifunc;
[all …]
A Drvu.c268 if (!pcifunc) { in rvu_get_blkaddr()
284 if (!pcifunc) { in rvu_get_blkaddr()
1606 pcifunc); in rvu_check_rsrc_availability()
1623 pcifunc); in rvu_check_rsrc_availability()
1720 u16 pcifunc = attach->hdr.pcifunc; in rvu_mbox_handler_attach_resources() local
1848 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_msix_offset() local
2003 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_vf_flr() local
2046 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_set_vf_perm() local
2052 if ((pcifunc & RVU_PFVF_FUNC_MASK) || is_lbk_vf(rvu, pcifunc)) in rvu_mbox_handler_set_vf_perm()
2089 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()
183 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_intr_cfg() local
198 mcs->pf_map[0] = pcifunc; in rvu_mbox_handler_mcs_intr_cfg()
242 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_clear_stats() local
633 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_free_resources() local
683 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_alloc_resources() local
706 pcifunc, req->dir); in rvu_mbox_handler_mcs_alloc_resources()
765 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule() local
799 pcifunc); in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule()
[all …]
A Drvu_sdp.c20 bool is_sdp_pfvf(struct rvu *rvu, u16 pcifunc) in is_sdp_pfvf() argument
22 u16 pf = rvu_get_pf(rvu->pdev, pcifunc); in is_sdp_pfvf()
37 bool is_sdp_pf(struct rvu *rvu, u16 pcifunc) in is_sdp_pf() argument
39 return (is_sdp_pfvf(rvu, 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(rvu, 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_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.c69 return ((rvu_get_pf(rvu->pdev, pcifunc) * LMT_MAX_VFS) + in rvu_get_lmtst_tbl_index()
70 (pcifunc & RVU_PFVF_FUNC_MASK)) * LMT_MAPTBL_ENTRY_SIZE; in rvu_get_lmtst_tbl_index()
73 static int rvu_get_lmtaddr(struct rvu *rvu, u16 pcifunc, in rvu_get_lmtaddr() argument
88 ((pcifunc & RVU_PFVF_FUNC_MASK) & 0xFF); in rvu_get_lmtaddr()
115 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_update_lmtaddr()
121 tbl_idx = rvu_get_lmtst_tbl_index(rvu, pcifunc); in rvu_update_lmtaddr()
163 err = rvu_get_lmtaddr(rvu, req->hdr.pcifunc, in rvu_mbox_handler_lmtst_tbl_setup()
199 err = rvu_update_lmtaddr(rvu, req->hdr.pcifunc, val); in rvu_mbox_handler_lmtst_tbl_setup()
254 void rvu_reset_lmt_map_tbl(struct rvu *rvu, u16 pcifunc) in rvu_reset_lmt_map_tbl() argument
256 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()
1127 u64 *mask, u16 *pcifunc) in rvu_npc_exact_get_drop_rule_info() argument
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
1651 mcam_idx, req->hdr.pcifunc); in rvu_npc_exact_mac_addr_update()
1689 true, -1, req->hdr.pcifunc); in rvu_npc_exact_mac_addr_add()
1838 if (pcifunc != iter->pcifunc) in rvu_npc_exact_reset()
1843 pcifunc, seq_id); in rvu_npc_exact_reset()
[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_debugfs.c682 u16 pcifunc; in get_max_column_width() local
826 u16 pcifunc; in rvu_dbg_rvu_pf_cgx_map_display() local
998 u16 pcifunc; in rvu_dbg_qsize_display() local
1040 u16 pcifunc; in rvu_dbg_qsize_write() local
1203 u16 pcifunc; in rvu_dbg_npa_ctx_display() local
1236 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_npa_ctx_display()
1284 u16 pcifunc; in write_npa_ctx() local
1682 u16 pcifunc; in rvu_dbg_nix_tm_tree_display() local
1694 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_nix_tm_tree_display()
1959 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_nix_tm_topo_display()
[all …]
A Drvu_npc_hash.h158 u16 pcifunc; member
193 u16 pcifunc; member
229 void rvu_npc_exact_reset(struct rvu *rvu, u16 pcifunc);
233 void rvu_npc_exact_reset(struct rvu *rvu, u16 pcifunc);
235 int rvu_npc_exact_promisc_disable(struct rvu *rvu, u16 pcifunc);
236 int rvu_npc_exact_promisc_enable(struct rvu *rvu, u16 pcifunc);
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.c1117 if (req->hdr.pcifunc && in npc_mcast_update_action_index()
1204 if (is_pffunc_af(req->hdr.pcifunc)) in npc_update_tx_entry()
1249 u16 owner = req->hdr.pcifunc; in npc_install_flow()
1316 write_req.hdr.pcifunc = owner; in npc_install_flow()
1322 write_req.hdr.pcifunc = 0; in npc_install_flow()
1455 if (!req->hdr.pcifunc) { in rvu_mbox_handler_npc_install_flow()
1468 target = req->hdr.pcifunc; in rvu_mbox_handler_npc_install_flow()
1532 u16 pcifunc) in npc_delete_flow() argument
1543 dis_req.hdr.pcifunc = pcifunc; in npc_delete_flow()
1558 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_delete_flow() local
[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()
/drivers/net/ethernet/marvell/octeontx2/nic/
A Drep.c59 req->hdr.pcifunc = rep->pcifunc; in rvu_rep_mcam_flow_init()
120 priv->pcifunc = rep->pcifunc; in rvu_rep_setup_tc_cb()
210 evt.pcifunc = rep->pcifunc; in rvu_rep_dl_port_fn_hw_addr_set()
289 req->pcifunc = data->pcifunc; in rvu_rep_notify_pfvf()
329 evt.pcifunc = rep->pcifunc; in rvu_rep_change_mtu()
353 req->pcifunc = rep->pcifunc; in rvu_rep_get_stats()
453 evt.pcifunc = rep->pcifunc; in rvu_rep_open()
471 evt.pcifunc = rep->pcifunc; in rvu_rep_stop()
642 u16 pcifunc; in rvu_rep_create() local
672 rep->pcifunc = pcifunc; in rvu_rep_create()
[all …]
A Dotx2_pf.c131 req->hdr.pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_flr_handler()
210 rvu_get_pf(pf->pdev, pf->pcifunc)); in otx2_register_flr_me_intr()
221 rvu_get_pf(pf->pdev, pf->pcifunc)); in otx2_register_flr_me_intr()
233 rvu_get_pf(pf->pdev, pf->pcifunc)); in otx2_register_flr_me_intr()
243 rvu_get_pf(pf->pdev, pf->pcifunc)); in otx2_register_flr_me_intr()
736 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr()
752 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr()
814 pf->pcifunc = msg->pcifunc; in otx2_process_pfaf_mbox_msg()
986 rsp->hdr.pcifunc = 0; \ in otx2_process_mbox_msg_up()
1835 if (is_otx2_vf(pfvf->pcifunc)) in otx2_promisc_use_mce_list()
[all …]
/drivers/crypto/marvell/octeontx2/
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()
275 req->hdr.pcifunc = 0; in otx2_cpt_lmtst_tbl_setup_msg()
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->pdev, cptpf->pf_id, 0); in send_inline_ipsec_inbound_msg()
396 msg->pcifunc = rvu_make_pcifunc(cptpf->pdev, cptpf->pf_id, in otx2_cptpf_vfpf_mbox_handler()
472 cptpf->pf_id = rvu_get_pf(cptpf->pdev, msg->pcifunc); in process_afpf_mbox_msg()
551 fwd->pcifunc = msg->pcifunc; in forward_to_vf()
579 vf_id = (msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) & in otx2_cptpf_afpf_mbox_handler()
613 rsp->hdr.pcifunc = 0; in handle_msg_cpt_inst_lmtst()
A Dotx2_cptvf_mbox.c94 cptvf->vf_id = ((msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) in process_pfvf_mbox_mbox_msg()
197 req->hdr.pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->pdev, cptvf->vf_id, 0); in otx2_cptvf_send_eng_grp_num_msg()
218 req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->pdev, cptvf->vf_id, 0); in otx2_cptvf_send_kvf_limits_msg()
238 req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->pdev, cptvf->vf_id, 0); in otx2_cptvf_send_caps_msg()

Completed in 94 milliseconds

12