Home
last modified time | relevance | path

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

12

/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_switch.c11 static int rvu_switch_install_rx_rule(struct rvu *rvu, u16 pcifunc, in rvu_switch_install_rx_rule() argument
18 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()
40 static int rvu_switch_install_tx_rule(struct rvu *rvu, u16 pcifunc, u16 entry) in rvu_switch_install_tx_rule() argument
47 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_tx_rule()
58 req.hdr.pcifunc = 0; /* AF is requester */ 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()
[all …]
Drvu_nix.c18 static void nix_free_tx_vtag_entries(struct rvu *rvu, u16 pcifunc);
21 static int nix_update_mce_rule(struct rvu *rvu, u16 pcifunc,
27 struct nix_hw *nix_hw, u16 pcifunc);
28 static int nix_free_all_bandprof(struct rvu *rvu, u16 pcifunc);
77 u16 pcifunc; member
97 bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc) in is_nixlf_attached() argument
99 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in is_nixlf_attached()
102 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); in is_nixlf_attached()
122 int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf, int *nix_blkaddr) in nix_get_nixlf() argument
124 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_get_nixlf()
[all …]
Drvu_cgx.c414 static bool is_cgx_config_permitted(struct rvu *rvu, u16 pcifunc) in is_cgx_config_permitted() argument
416 if ((pcifunc & RVU_PFVF_FUNC_MASK) || in is_cgx_config_permitted()
417 !is_pf_cgxmapped(rvu, rvu_get_pf(pcifunc))) in is_cgx_config_permitted()
442 int rvu_cgx_config_rxtx(struct rvu *rvu, u16 pcifunc, bool start) in rvu_cgx_config_rxtx() argument
444 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_rxtx()
447 if (!is_cgx_config_permitted(rvu, pcifunc)) in rvu_cgx_config_rxtx()
457 void rvu_cgx_disable_dmac_entries(struct rvu *rvu, u16 pcifunc) in rvu_cgx_disable_dmac_entries() argument
459 int pf = rvu_get_pf(pcifunc); in rvu_cgx_disable_dmac_entries()
465 if (!is_cgx_config_permitted(rvu, pcifunc)) in rvu_cgx_disable_dmac_entries()
485 rvu_cgx_config_rxtx(rvu, req->hdr.pcifunc, true); in rvu_mbox_handler_cgx_start_rxtx()
[all …]
Drvu.h618 static inline bool is_afvf(u16 pcifunc) in is_afvf() argument
620 return !(pcifunc & ~RVU_PFVF_FUNC_MASK); in is_afvf()
623 static inline bool is_vf(u16 pcifunc) in is_vf() argument
625 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_vf()
629 static inline bool is_pffunc_af(u16 pcifunc) in is_pffunc_af() argument
631 return !pcifunc; in is_pffunc_af()
649 int rvu_get_pf(u16 pcifunc);
650 struct rvu_pfvf *rvu_get_pfvf(struct rvu *rvu, int pcifunc);
653 bool is_pffunc_map_valid(struct rvu *rvu, u16 pcifunc, int blktype);
654 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot);
[all …]
Drvu_npc.c32 int blkaddr, u16 pcifunc);
34 u16 pcifunc);
65 u16 pcifunc) in npc_mcam_verify_pf_func() argument
79 (pcifunc & ~RVU_PFVF_FUNC_MASK))) in npc_mcam_verify_pf_func()
115 int npc_config_ts_kpuaction(struct rvu *rvu, int pf, u16 pcifunc, bool enable) in npc_config_ts_kpuaction() argument
126 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, pcifunc); in npc_config_ts_kpuaction()
143 static int npc_get_ucast_mcam_index(struct npc_mcam *mcam, u16 pcifunc, in npc_get_ucast_mcam_index() argument
152 pfvf = rvu_get_pfvf(rvu, pcifunc); in npc_get_ucast_mcam_index()
169 u16 pcifunc, int nixlf, int type) in npc_get_nixlf_mcam_index() argument
171 int pf = rvu_get_pf(pcifunc); in npc_get_nixlf_mcam_index()
[all …]
Drvu_cpt.c62 static bool is_cpt_pf(struct rvu *rvu, u16 pcifunc) in is_cpt_pf() argument
66 if (rvu_get_pf(pcifunc) != cpt_pf_num) in is_cpt_pf()
68 if (pcifunc & RVU_PFVF_FUNC_MASK) in is_cpt_pf()
74 static bool is_cpt_vf(struct rvu *rvu, u16 pcifunc) in is_cpt_vf() argument
78 if (rvu_get_pf(pcifunc) != cpt_pf_num) in is_cpt_vf()
80 if (!(pcifunc & RVU_PFVF_FUNC_MASK)) in is_cpt_vf()
101 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cpt_lf_alloc() local
115 num_lfs = rvu_get_rsrc_mapcount(rvu_get_pfvf(rvu, pcifunc), in rvu_mbox_handler_cpt_lf_alloc()
124 req->nix_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc()
133 req->sso_pf_func = pcifunc; in rvu_mbox_handler_cpt_lf_alloc()
[all …]
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()
82 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_set_sdp_chan_info()
Drvu.c25 static int rvu_get_hwvf(struct rvu *rvu, int pcifunc);
31 static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc);
220 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot) in rvu_get_lf() argument
227 if (block->fn_map[lf] == pcifunc) { in rvu_get_lf()
248 int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc) in rvu_get_blkaddr() argument
263 if (!pcifunc) { in rvu_get_blkaddr()
279 if (!pcifunc) { in rvu_get_blkaddr()
287 if (pcifunc & RVU_PFVF_FUNC_MASK) { in rvu_get_blkaddr()
289 devnum = rvu_get_hwvf(rvu, pcifunc); in rvu_get_blkaddr()
292 devnum = rvu_get_pf(pcifunc); in rvu_get_blkaddr()
[all …]
Drvu_npa.c56 u16 pcifunc = req->hdr.pcifunc; in rvu_npa_aq_enq_inst() local
65 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npa_aq_enq_inst()
69 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_npa_aq_enq_inst()
80 npalf = rvu_get_lf(rvu, block, pcifunc, 0); in rvu_npa_aq_enq_inst()
203 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in npa_lf_hwctx_disable()
213 aq_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_disable()
258 lock_ctx_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_lockdown()
266 req->hdr.pcifunc, in npa_lf_hwctx_lockdown()
324 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npa_lf_alloc() local
337 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_mbox_handler_npa_lf_alloc()
[all …]
Drvu_cn10k.c53 static u32 rvu_get_lmtst_tbl_index(struct rvu *rvu, u16 pcifunc) in rvu_get_lmtst_tbl_index() argument
55 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()
96 static int rvu_update_lmtaddr(struct rvu *rvu, u16 pcifunc, u64 lmt_addr) in rvu_update_lmtaddr() argument
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()
135 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_lmtst_tbl_setup()
[all …]
Drvu_debugfs.c229 static void get_lf_str_list(struct rvu_block block, int pcifunc, in get_lf_str_list() argument
238 if (block.fn_map[lf] != pcifunc) in get_lf_str_list()
267 u16 pcifunc; in get_max_column_width() local
276 pcifunc = pf << 10 | vf; in get_max_column_width()
277 if (!pcifunc) in get_max_column_width()
285 get_lf_str_list(block, pcifunc, buf); in get_max_column_width()
305 int pf, vf, pcifunc; in rvu_dbg_rsrc_attach_status() local
347 pcifunc = pf << 10 | vf; in rvu_dbg_rsrc_attach_status()
348 if (!pcifunc) in rvu_dbg_rsrc_attach_status()
369 get_lf_str_list(block, pcifunc, lfs); in rvu_dbg_rsrc_attach_status()
[all …]
Drvu_npc_fs.c893 static void rvu_mcam_remove_counter_from_rule(struct rvu *rvu, u16 pcifunc, in rvu_mcam_remove_counter_from_rule() argument
902 free_req.hdr.pcifunc = pcifunc; in rvu_mcam_remove_counter_from_rule()
909 static void rvu_mcam_add_counter_to_rule(struct rvu *rvu, u16 pcifunc, in rvu_mcam_add_counter_to_rule() argument
917 cntr_req.hdr.pcifunc = pcifunc; in rvu_mcam_add_counter_to_rule()
985 if (is_pffunc_af(req->hdr.pcifunc)) in npc_update_tx_entry()
1023 u16 owner = req->hdr.pcifunc; in npc_install_flow()
1083 write_req.hdr.pcifunc = owner; in npc_install_flow()
1089 write_req.hdr.pcifunc = 0; in npc_install_flow()
1145 return rvu_nix_setup_ratelimit_aggr(rvu, req->hdr.pcifunc, in npc_install_flow()
1155 bool from_vf = !!(req->hdr.pcifunc & RVU_PFVF_FUNC_MASK); in rvu_mbox_handler_npc_install_flow()
[all …]
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()
Dmbox.h82 u16 pcifunc; /* Who's sending this msg */ member
111 u16 pcifunc, u16 id);
/Linux-v5.15/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_mbox.c28 msg->pcifunc = req->pcifunc; in forward_to_af()
58 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_get_caps()
81 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_get_eng_grp_num()
102 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_kvf_limits()
195 msg->pcifunc = ((u16)cptpf->pf_id << RVU_PFVF_PF_SHIFT) | in otx2_cptpf_vfpf_mbox_handler()
249 cptpf->pf_id = (msg->pcifunc >> RVU_PFVF_PF_SHIFT) & in process_afpf_mbox_msg()
316 fwd->pcifunc = msg->pcifunc; in forward_to_vf()
344 vf_id = (msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) & in otx2_cptpf_afpf_mbox_handler()
Dotx2_cpt_mbox_common.c35 req->pcifunc = 0; in otx2_cpt_send_ready_msg()
60 reg_msg->hdr.pcifunc = 0; in otx2_cpt_add_read_af_reg()
85 reg_msg->hdr.pcifunc = 0; in otx2_cpt_add_write_af_reg()
135 req->hdr.pcifunc = 0; in otx2_cpt_attach_rscrs_msg()
163 req->hdr.pcifunc = 0; in otx2_cpt_detach_rsrcs_msg()
190 req->pcifunc = 0; in otx2_cpt_msix_offset_msg()
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()
205 req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_kvf_limits_msg()
Dotx2_cptpf_main.c149 req->pcifunc &= RVU_PFVF_FUNC_MASK; in cptpf_flr_wq_handler()
150 req->pcifunc |= (vf + 1) & RVU_PFVF_FUNC_MASK; in cptpf_flr_wq_handler()
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_pf.c118 req->hdr.pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_flr_handler()
119 req->hdr.pcifunc |= (vf + 1) & RVU_PFVF_FUNC_MASK; in otx2_flr_handler()
196 snprintf(irq_name, NAME_SIZE, "RVUPF%d_ME0", rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr()
206 snprintf(irq_name, NAME_SIZE, "RVUPF%d_FLR0", rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr()
218 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr()
228 rvu_get_pf(pf->pcifunc)); in otx2_register_flr_me_intr()
473 msg->pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler()
474 msg->pcifunc |= (vf_idx + 1) & RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler()
692 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr()
694 "RVUPF%d_VF Mbox0", rvu_get_pf(pf->pcifunc)); in otx2_register_pfvf_mbox_intr()
[all …]
Dotx2_common.h352 u16 pcifunc; /* RVU PF_FUNC */ member
720 static inline bool is_otx2_vf(u16 pcifunc) in is_otx2_vf() argument
722 return !!(pcifunc & RVU_PFVF_FUNC_MASK); in is_otx2_vf()
725 static inline int rvu_get_pf(u16 pcifunc) in rvu_get_pf() argument
727 return (pcifunc >> RVU_PFVF_PF_SHIFT) & RVU_PFVF_PF_MASK; in rvu_get_pf()
Dotx2_vf.c60 vf->pcifunc = msg->pcifunc; in otx2vf_process_vfaf_mbox_msg()
135 rsp->hdr.pcifunc = 0; in otx2vf_process_mbox_msg_up()
672 n = (vf->pcifunc >> RVU_PFVF_FUNC_SHIFT) & RVU_PFVF_FUNC_MASK; in otx2vf_probe()
Dotx2_devlink.c88 if (is_otx2_vf(pfvf->pcifunc)) in otx2_devlink_info_get()
Dotx2_tc.c61 if (!nic->flow_cfg->max_flows || is_otx2_vf(nic->pcifunc)) in otx2_tc_alloc_ent_bitmap()
337 if (rvu_get_pf(nic->pcifunc) != rvu_get_pf(priv->pcifunc)) { in otx2_tc_parse_actions()
342 req->vf = priv->pcifunc & RVU_PFVF_FUNC_MASK; in otx2_tc_parse_actions()
Dotx2_flows.c111 if (!is_otx2_vf(pfvf->pcifunc)) { in otx2_alloc_mcam_entries()
/Linux-v5.15/drivers/video/fbdev/sis/
Dsis.h581 unsigned int pcifunc; member

12