Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_nix.c68 u16 pcifunc; member
71 bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc) in is_nixlf_attached() argument
73 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in is_nixlf_attached()
76 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); in is_nixlf_attached()
94 int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf, int *nix_blkaddr) in nix_get_nixlf() argument
96 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_get_nixlf()
100 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); in nix_get_nixlf()
104 *nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); in nix_get_nixlf()
153 int lvl, u16 pcifunc, u16 schq) in is_valid_txschq() argument
175 if (rvu_get_pf(map_func) != rvu_get_pf(pcifunc)) in is_valid_txschq()
[all …]
Drvu_cgx.c359 static bool is_cgx_config_permitted(struct rvu *rvu, u16 pcifunc) in is_cgx_config_permitted() argument
361 if ((pcifunc & RVU_PFVF_FUNC_MASK) || in is_cgx_config_permitted()
362 !is_pf_cgxmapped(rvu, rvu_get_pf(pcifunc))) in is_cgx_config_permitted()
385 int rvu_cgx_config_rxtx(struct rvu *rvu, u16 pcifunc, bool start) in rvu_cgx_config_rxtx() argument
387 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_rxtx()
390 if (!is_cgx_config_permitted(rvu, pcifunc)) in rvu_cgx_config_rxtx()
403 rvu_cgx_config_rxtx(rvu, req->hdr.pcifunc, true); in rvu_mbox_handler_cgx_start_rxtx()
410 rvu_cgx_config_rxtx(rvu, req->hdr.pcifunc, false); in rvu_mbox_handler_cgx_stop_rxtx()
417 int pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_stats()
423 if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc)) in rvu_mbox_handler_cgx_stats()
[all …]
Drvu_npc.c35 int blkaddr, u16 pcifunc);
37 u16 pcifunc);
69 int npc_config_ts_kpuaction(struct rvu *rvu, int pf, u16 pcifunc, bool enable) in npc_config_ts_kpuaction() argument
80 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, pcifunc); in npc_config_ts_kpuaction()
98 u16 pcifunc, int nixlf, int type) in npc_get_nixlf_mcam_index() argument
100 int pf = rvu_get_pf(pcifunc); in npc_get_nixlf_mcam_index()
104 if (pf && !(pcifunc & RVU_PFVF_FUNC_MASK)) { in npc_get_nixlf_mcam_index()
370 void rvu_npc_install_ucast_entry(struct rvu *rvu, u16 pcifunc, in rvu_npc_install_ucast_entry() argument
373 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npc_install_ucast_entry()
381 if (is_afvf(pcifunc)) in rvu_npc_install_ucast_entry()
[all …]
Drvu.h406 static inline int is_afvf(u16 pcifunc) in is_afvf() argument
408 return !(pcifunc & ~RVU_PFVF_FUNC_MASK); in is_afvf()
423 int rvu_get_pf(u16 pcifunc);
424 struct rvu_pfvf *rvu_get_pfvf(struct rvu *rvu, int pcifunc);
427 bool is_pffunc_map_valid(struct rvu *rvu, u16 pcifunc, int blktype);
428 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot);
430 int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc);
466 int rvu_cgx_config_rxtx(struct rvu *rvu, u16 pcifunc, bool start);
468 int rvu_cgx_start_stop_io(struct rvu *rvu, u16 pcifunc, bool start);
474 void rvu_npa_lf_teardown(struct rvu *rvu, u16 pcifunc, int npalf);
[all …]
Drvu.c28 static int rvu_get_hwvf(struct rvu *rvu, int pcifunc);
34 static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc);
189 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot) in rvu_get_lf() argument
196 if (block->fn_map[lf] == pcifunc) { in rvu_get_lf()
214 int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc) in rvu_get_blkaddr() argument
229 if (!pcifunc) { in rvu_get_blkaddr()
245 if (!pcifunc) { in rvu_get_blkaddr()
253 if (pcifunc & RVU_PFVF_FUNC_MASK) { in rvu_get_blkaddr()
255 devnum = rvu_get_hwvf(rvu, pcifunc); in rvu_get_blkaddr()
258 devnum = rvu_get_pf(pcifunc); in rvu_get_blkaddr()
[all …]
Drvu_npa.c59 u16 pcifunc = req->hdr.pcifunc; in rvu_npa_aq_enq_inst() local
68 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npa_aq_enq_inst()
72 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_npa_aq_enq_inst()
83 npalf = rvu_get_lf(rvu, block, pcifunc, 0); in rvu_npa_aq_enq_inst()
206 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in npa_lf_hwctx_disable()
216 aq_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_disable()
261 lock_ctx_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_lockdown()
269 req->hdr.pcifunc, in npa_lf_hwctx_lockdown()
327 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npa_lf_alloc() local
340 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_mbox_handler_npa_lf_alloc()
[all …]
Drvu_debugfs.c149 int lf, pf, vf, pcifunc; in rvu_dbg_rsrc_attach_status() local
171 pcifunc = pf << 10 | vf; in rvu_dbg_rsrc_attach_status()
172 if (!pcifunc) in rvu_dbg_rsrc_attach_status()
193 if (block.fn_map[lf] != pcifunc) in rvu_dbg_rsrc_attach_status()
228 u16 *pcifunc) in rvu_dbg_is_valid_lf() argument
249 *pcifunc = block->fn_map[lf]; in rvu_dbg_is_valid_lf()
250 if (!*pcifunc) { in rvu_dbg_is_valid_lf()
297 u16 pcifunc; in rvu_dbg_qsize_display() local
315 if (!rvu_dbg_is_valid_lf(rvu, blktype, qsize_id, &pcifunc)) in rvu_dbg_qsize_display()
318 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_dbg_qsize_display()
[all …]
Dmbox.c333 otx2_reply_invalid_msg(struct otx2_mbox *mbox, int devid, u16 pcifunc, u16 id) in otx2_reply_invalid_msg() argument
344 rsp->hdr.pcifunc = pcifunc; in otx2_reply_invalid_msg()
Dmbox.h84 u16 pcifunc; /* Who's sending this msg */ member
110 u16 pcifunc, u16 id);
/Linux-v5.10/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()
684 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr()
686 "RVUPF%d_VF Mbox0", rvu_get_pf(pf->pcifunc)); in otx2_register_pfvf_mbox_intr()
[all …]
Dotx2_vf.c55 vf->pcifunc = msg->pcifunc; in otx2vf_process_vfaf_mbox_msg()
130 rsp->hdr.pcifunc = 0; in otx2vf_process_mbox_msg_up()
577 n = (vf->pcifunc >> RVU_PFVF_FUNC_SHIFT) & RVU_PFVF_FUNC_MASK; in otx2vf_probe()
Dotx2_common.h255 u16 pcifunc; /* RVU PF_FUNC */ member
551 static inline int rvu_get_pf(u16 pcifunc) in rvu_get_pf() argument
553 return (pcifunc >> RVU_PFVF_PF_SHIFT) & RVU_PFVF_PF_MASK; in rvu_get_pf()
/Linux-v5.10/drivers/video/fbdev/sis/
Dsis.h582 unsigned int pcifunc; member
Dsis_main.c1761 ivideo->sisfb_infoblock.sisfb_pcifunc = ivideo->pcifunc; in sisfb_ioctl()
5882 ivideo->pcifunc = PCI_FUNC(pdev->devfn); in sisfb_probe()