/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_nix.c | 68 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 …]
|
D | rvu_cgx.c | 359 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 …]
|
D | rvu_npc.c | 35 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 …]
|
D | rvu.h | 406 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 …]
|
D | rvu.c | 28 static int rvu_get_hwvf(struct rvu *rvu, int pcifunc); 34 static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc); 199 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot) in rvu_get_lf() argument 206 if (block->fn_map[lf] == pcifunc) { in rvu_get_lf() 224 int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc) in rvu_get_blkaddr() argument 239 if (!pcifunc) { in rvu_get_blkaddr() 255 if (!pcifunc) { in rvu_get_blkaddr() 263 if (pcifunc & RVU_PFVF_FUNC_MASK) { in rvu_get_blkaddr() 265 devnum = rvu_get_hwvf(rvu, pcifunc); in rvu_get_blkaddr() 268 devnum = rvu_get_pf(pcifunc); in rvu_get_blkaddr() [all …]
|
D | rvu_npa.c | 59 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 …]
|
D | rvu_debugfs.c | 142 static void get_lf_str_list(struct rvu_block block, int pcifunc, in get_lf_str_list() argument 151 if (block.fn_map[lf] != pcifunc) in get_lf_str_list() 180 u16 pcifunc; in get_max_column_width() local 189 pcifunc = pf << 10 | vf; in get_max_column_width() 190 if (!pcifunc) in get_max_column_width() 198 get_lf_str_list(block, pcifunc, buf); in get_max_column_width() 218 int pf, vf, pcifunc; in rvu_dbg_rsrc_attach_status() local 260 pcifunc = pf << 10 | vf; in rvu_dbg_rsrc_attach_status() 261 if (!pcifunc) in rvu_dbg_rsrc_attach_status() 282 get_lf_str_list(block, pcifunc, lfs); in rvu_dbg_rsrc_attach_status() [all …]
|
D | mbox.c | 333 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()
|
D | mbox.h | 84 u16 pcifunc; /* Who's sending this msg */ member 110 u16 pcifunc, u16 id);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_pf.c | 118 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() 478 msg->pcifunc &= RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler() 479 msg->pcifunc |= (vf_idx + 1) & RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler() 689 if (pf->pcifunc) in otx2_register_pfvf_mbox_intr() 691 "RVUPF%d_VF Mbox0", rvu_get_pf(pf->pcifunc)); in otx2_register_pfvf_mbox_intr() [all …]
|
D | otx2_vf.c | 55 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()
|
D | otx2_common.h | 255 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()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/sis/ |
D | sis.h | 582 unsigned int pcifunc; member
|
D | sis_main.c | 1761 ivideo->sisfb_infoblock.sisfb_pcifunc = ivideo->pcifunc; in sisfb_ioctl() 5882 ivideo->pcifunc = PCI_FUNC(pdev->devfn); in sisfb_probe()
|