| /linux-6.15/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_rep.c | 54 msg->hdr.pcifunc = event->pcifunc; in rvu_rep_up_notify() 129 req->pcifunc = pcifunc; in rvu_rep_notify_pfvf_state() 149 u16 pcifunc = req->pcifunc; in rvu_mbox_handler_nix_lf_stats() local 159 rst_req.hdr.pcifunc = pcifunc; in rvu_mbox_handler_nix_lf_stats() 178 rsp->pcifunc = req->pcifunc; in rvu_mbox_handler_nix_lf_stats() 201 req.hdr.pcifunc = pcifunc; in rvu_rep_tx_vlan_cfg() 222 req.hdr.pcifunc = pcifunc; in rvu_rep_rx_vlan_cfg() 251 req.vf = pcifunc; in rvu_rep_install_rx_rule() 295 req.vf = pcifunc; in rvu_rep_install_tx_rule() 317 u16 pcifunc, entry = 0; in rvu_rep_install_mcam_rules() local [all …]
|
| H A D | rvu_switch.c | 29 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() 226 u16 pcifunc; in rvu_switch_disable() local [all …]
|
| H A D | rvu_cgx.c | 485 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_rxtx() 502 int pf = rvu_get_pf(pcifunc); in rvu_cgx_tx_enable() 527 int pf = rvu_get_pf(pcifunc); in rvu_cgx_disable_dmac_entries() 790 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cgx_promisc_enable() local 791 int pf = rvu_get_pf(pcifunc); in rvu_mbox_handler_cgx_promisc_enable() 829 int pf = rvu_get_pf(pcifunc); in rvu_cgx_ptp_rx_cfg() 879 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_linkevents() 976 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_intlbk() 1006 int pf = rvu_get_pf(pcifunc); in rvu_cgx_cfg_pause_frm() 1092 u16 pcifunc; in rvu_cgx_nix_cuml_stats() local [all …]
|
| H A D | rvu.h | 139 u32 pcifunc; member 808 return (!(pcifunc & ~RVU_PFVF_FUNC_MASK) && in is_lbk_vf() 812 static inline bool is_vf(u16 pcifunc) in is_vf() argument 814 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_vf() 818 static inline bool is_pffunc_af(u16 pcifunc) in is_pffunc_af() argument 820 return !pcifunc; in is_pffunc_af() 839 int rvu_get_pf(u16 pcifunc); 868 bool is_sdp_pfvf(u16 pcifunc); 869 bool is_sdp_pf(u16 pcifunc); 895 return ((pcifunc & RVU_PFVF_FUNC_MASK) && in is_cgx_vf() [all …]
|
| H A D | rvu_nix.c | 584 u16 pcifunc = req->hdr.pcifunc; in nix_bp_disable() local 732 u16 pcifunc = req->hdr.pcifunc; in nix_bp_enable() local 1036 u16 pcifunc = req->hdr.pcifunc; in rvu_nix_blk_aq_enq_inst() local 1497 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_lf_alloc() local 1731 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_lf_free() local 1778 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_mark_format_cfg() local 2141 u16 pcifunc = rsp->hdr.pcifunc; in nix_txsch_alloc() local 2225 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_nix_txsch_alloc() local 2610 u16 pcifunc = req->hdr.pcifunc; in nix_txschq_free_one() local 3432 mce->pcifunc = pcifunc; in nix_update_mce_list_entry() [all …]
|
| H A D | rvu_npc.c | 2742 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_alloc_entry() local 2788 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_free_entry() local 2835 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_read_entry() local 2860 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_write_entry() local 2911 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_ena_entry() local 2934 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_dis_entry() local 2957 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npc_mcam_shift_entry() local 3026 u16 pcifunc = req->hdr.pcifunc; in __npc_mcam_alloc_counter() local 3161 free_req.hdr.pcifunc = pcifunc; in __rvu_mcam_remove_counter_from_rule() 3176 cntr_req.hdr.pcifunc = pcifunc; in __rvu_mcam_add_counter_to_rule() [all …]
|
| H A D | rvu_sdp.c | 20 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()
|
| H A D | rvu.c | 268 if (!pcifunc) { in rvu_get_blkaddr() 284 if (!pcifunc) { in rvu_get_blkaddr() 1604 pcifunc); in rvu_check_rsrc_availability() 1621 pcifunc); in rvu_check_rsrc_availability() 1718 u16 pcifunc = attach->hdr.pcifunc; in rvu_mbox_handler_attach_resources() local 1846 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_msix_offset() local 2001 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_vf_flr() local 2041 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_set_vf_perm() local 2047 if ((pcifunc & RVU_PFVF_FUNC_MASK) || is_lbk_vf(rvu, pcifunc)) in rvu_mbox_handler_set_vf_perm() 2084 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_ndc_sync_op() local [all …]
|
| H A D | mcs_rvu_if.c | 92 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 …]
|
| H A D | rvu_npa.c | 65 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 …]
|
| H A D | rvu_cpt.c | 415 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 …]
|
| H A D | rvu_cn10k.c | 69 return ((rvu_get_pf(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 86 pf = rvu_get_pf(pcifunc) & RVU_PFVF_PF_MASK; in rvu_get_lmtaddr() 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() 256 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_reset_lmt_map_tbl() [all …]
|
| H A D | rvu_npc_hash.c | 835 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 …]
|
| H A D | mcs.c | 318 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 …]
|
| H A D | rvu_npc_hash.h | 160 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);
|
| H A D | rvu_debugfs.c | 682 u16 pcifunc; in get_max_column_width() local 826 u16 pcifunc; in rvu_dbg_rvu_pf_cgx_map_display() local 933 u16 pcifunc; in rvu_dbg_qsize_display() local 975 u16 pcifunc; in rvu_dbg_qsize_write() local 1138 u16 pcifunc; in rvu_dbg_npa_ctx_display() local 1171 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_npa_ctx_display() 1219 u16 pcifunc; in write_npa_ctx() local 1617 u16 pcifunc; in rvu_dbg_nix_tm_tree_display() local 1629 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_nix_tm_tree_display() 1894 aq_req.hdr.pcifunc = pcifunc; in rvu_dbg_nix_tm_topo_display() [all …]
|
| H A D | mcs.h | 88 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);
|
| H A D | rvu_npc_fs.c | 1117 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 …]
|
| H A D | mcs_cnf10kb.c | 187 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()
|
| /linux-6.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | rep.c | 59 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 …]
|
| H A D | otx2_pf.c | 231 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr() 241 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr() 476 msg->pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler() 696 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr() 712 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr() 773 pf->pcifunc = msg->pcifunc; in otx2_process_pfaf_mbox_msg() 942 rsp->hdr.pcifunc = 0; \ in otx2_process_mbox_msg_up() 1746 if (is_otx2_vf(pfvf->pcifunc)) in otx2_promisc_use_mce_list() 1957 rvu_get_pf(pf->pcifunc)); in otx2_open() 1975 rvu_get_pf(pf->pcifunc), qidx); in otx2_open() [all …]
|
| H A D | rep.h | 42 u16 pcifunc; member
|
| /linux-6.15/drivers/crypto/marvell/octeontx2/ |
| H A D | otx2_cptpf_mbox.c | 45 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()
|
| H A D | otx2_cpt_mbox_common.c | 36 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()
|
| H A D | otx2_cptvf_mbox.c | 93 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()
|