Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_nix.c20 static int nix_update_bcast_mce_list(struct rvu *rvu, u16 pcifunc, bool add);
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()
139 int lvl, u16 pcifunc, u16 schq) in is_valid_txschq() argument
160 rvu_get_pf(map_func) != rvu_get_pf(pcifunc)) in is_valid_txschq()
164 map_func != pcifunc) in is_valid_txschq()
170 static int nix_interface_init(struct rvu *rvu, u16 pcifunc, int type, int nixlf) in nix_interface_init() argument
172 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_interface_init()
[all …]
Drvu_cgx.c337 int rvu_cgx_config_rxtx(struct rvu *rvu, u16 pcifunc, bool start) in rvu_cgx_config_rxtx() argument
339 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_rxtx()
345 if ((pcifunc & RVU_PFVF_FUNC_MASK) || !is_pf_cgxmapped(rvu, pf)) in rvu_cgx_config_rxtx()
358 rvu_cgx_config_rxtx(rvu, req->hdr.pcifunc, true); in rvu_mbox_handler_cgx_start_rxtx()
365 rvu_cgx_config_rxtx(rvu, req->hdr.pcifunc, false); in rvu_mbox_handler_cgx_stop_rxtx()
372 int pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_stats()
378 if ((req->hdr.pcifunc & RVU_PFVF_FUNC_MASK) || in rvu_mbox_handler_cgx_stats()
410 int pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_mac_addr_set()
424 int pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_mac_addr_get()
442 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_cgx_promisc_enable() local
[all …]
Drvu.c26 static int rvu_get_hwvf(struct rvu *rvu, int pcifunc);
32 static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc);
165 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot) in rvu_get_lf() argument
172 if (block->fn_map[lf] == pcifunc) { in rvu_get_lf()
190 int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc) in rvu_get_blkaddr() argument
205 if (!pcifunc) { in rvu_get_blkaddr()
221 if (!pcifunc) { in rvu_get_blkaddr()
229 if (pcifunc & RVU_PFVF_FUNC_MASK) { in rvu_get_blkaddr()
231 devnum = rvu_get_hwvf(rvu, pcifunc); in rvu_get_blkaddr()
234 devnum = rvu_get_pf(pcifunc); in rvu_get_blkaddr()
[all …]
Drvu_npc.c32 int blkaddr, u16 pcifunc);
34 u16 pcifunc);
65 u16 pcifunc, int nixlf, int type) in npc_get_nixlf_mcam_index() argument
67 int pf = rvu_get_pf(pcifunc); in npc_get_nixlf_mcam_index()
71 if (pf && !(pcifunc & RVU_PFVF_FUNC_MASK)) { in npc_get_nixlf_mcam_index()
308 void rvu_npc_install_ucast_entry(struct rvu *rvu, u16 pcifunc, in rvu_npc_install_ucast_entry() argument
311 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npc_install_ucast_entry()
319 if (is_afvf(pcifunc)) in rvu_npc_install_ucast_entry()
329 index = npc_get_nixlf_mcam_index(mcam, pcifunc, in rvu_npc_install_ucast_entry()
349 action.pf_func = pcifunc; in rvu_npc_install_ucast_entry()
[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()
201 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in npa_lf_hwctx_disable()
211 aq_req.hdr.pcifunc = req->hdr.pcifunc; in npa_lf_hwctx_disable()
282 u16 pcifunc = req->hdr.pcifunc; in rvu_mbox_handler_npa_lf_alloc() local
292 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_mbox_handler_npa_lf_alloc()
293 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_mbox_handler_npa_lf_alloc()
298 npalf = rvu_get_lf(rvu, block, pcifunc, 0); in rvu_mbox_handler_npa_lf_alloc()
[all …]
Drvu.h299 static inline int is_afvf(u16 pcifunc) in is_afvf() argument
301 return !(pcifunc & ~RVU_PFVF_FUNC_MASK); in is_afvf()
310 int rvu_get_pf(u16 pcifunc);
311 struct rvu_pfvf *rvu_get_pfvf(struct rvu *rvu, int pcifunc);
314 bool is_pffunc_map_valid(struct rvu *rvu, u16 pcifunc, int blktype);
315 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot);
317 int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc);
348 int rvu_cgx_config_rxtx(struct rvu *rvu, u16 pcifunc, bool start);
379 void rvu_npa_lf_teardown(struct rvu *rvu, u16 pcifunc, int npalf);
393 bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc);
[all …]
Dmbox.c261 otx2_reply_invalid_msg(struct otx2_mbox *mbox, int devid, u16 pcifunc, u16 id) in otx2_reply_invalid_msg() argument
272 rsp->hdr.pcifunc = pcifunc; in otx2_reply_invalid_msg()
Dmbox.h83 u16 pcifunc; /* Who's sending this msg */ member
107 u16 pcifunc, u16 id);
/Linux-v5.4/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()