Lines Matching refs:rvu

40 	struct	rvu *rvu;  member
224 struct rvu { struct
268 static inline void rvu_write64(struct rvu *rvu, u64 block, u64 offset, u64 val) in rvu_write64() argument
270 writeq(val, rvu->afreg_base + ((block << 28) | offset)); in rvu_write64()
273 static inline u64 rvu_read64(struct rvu *rvu, u64 block, u64 offset) in rvu_read64() argument
275 return readq(rvu->afreg_base + ((block << 28) | offset)); in rvu_read64()
278 static inline void rvupf_write64(struct rvu *rvu, u64 offset, u64 val) in rvupf_write64() argument
280 writeq(val, rvu->pfreg_base + offset); in rvupf_write64()
283 static inline u64 rvupf_read64(struct rvu *rvu, u64 offset) in rvupf_read64() argument
285 return readq(rvu->pfreg_base + offset); in rvupf_read64()
288 static inline bool is_rvu_9xxx_A0(struct rvu *rvu) in is_rvu_9xxx_A0() argument
290 struct pci_dev *pdev = rvu->pdev; in is_rvu_9xxx_A0()
311 struct rvu_pfvf *rvu_get_pfvf(struct rvu *rvu, int pcifunc);
312 void rvu_get_pf_numvfs(struct rvu *rvu, int pf, int *numvfs, int *hwvf);
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);
316 int rvu_lf_reset(struct rvu *rvu, struct rvu_block *block, int lf);
317 int rvu_get_blkaddr(struct rvu *rvu, int blktype, u16 pcifunc);
318 int rvu_poll_reg(struct rvu *rvu, u64 block, u64 offset, u64 mask, bool zero);
329 int rvu_aq_alloc(struct rvu *rvu, struct admin_queue **ad_queue,
331 void rvu_aq_free(struct rvu *rvu, struct admin_queue *aq);
334 static inline bool is_pf_cgxmapped(struct rvu *rvu, u8 pf) in is_pf_cgxmapped() argument
336 return (pf >= PF_CGXMAP_BASE && pf <= rvu->cgx_mapped_pfs); in is_pf_cgxmapped()
345 int rvu_cgx_init(struct rvu *rvu);
346 int rvu_cgx_exit(struct rvu *rvu);
347 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu);
348 int rvu_cgx_config_rxtx(struct rvu *rvu, u16 pcifunc, bool start);
349 int rvu_mbox_handler_cgx_start_rxtx(struct rvu *rvu, struct msg_req *req,
351 int rvu_mbox_handler_cgx_stop_rxtx(struct rvu *rvu, struct msg_req *req,
353 int rvu_mbox_handler_cgx_stats(struct rvu *rvu, struct msg_req *req,
355 int rvu_mbox_handler_cgx_mac_addr_set(struct rvu *rvu,
358 int rvu_mbox_handler_cgx_mac_addr_get(struct rvu *rvu,
361 int rvu_mbox_handler_cgx_promisc_enable(struct rvu *rvu, struct msg_req *req,
363 int rvu_mbox_handler_cgx_promisc_disable(struct rvu *rvu, struct msg_req *req,
365 int rvu_mbox_handler_cgx_start_linkevents(struct rvu *rvu, struct msg_req *req,
367 int rvu_mbox_handler_cgx_stop_linkevents(struct rvu *rvu, struct msg_req *req,
369 int rvu_mbox_handler_cgx_get_linkinfo(struct rvu *rvu, struct msg_req *req,
371 int rvu_mbox_handler_cgx_intlbk_enable(struct rvu *rvu, struct msg_req *req,
373 int rvu_mbox_handler_cgx_intlbk_disable(struct rvu *rvu, struct msg_req *req,
377 int rvu_npa_init(struct rvu *rvu);
378 void rvu_npa_freemem(struct rvu *rvu);
379 void rvu_npa_lf_teardown(struct rvu *rvu, u16 pcifunc, int npalf);
380 int rvu_mbox_handler_npa_aq_enq(struct rvu *rvu,
383 int rvu_mbox_handler_npa_hwctx_disable(struct rvu *rvu,
386 int rvu_mbox_handler_npa_lf_alloc(struct rvu *rvu,
389 int rvu_mbox_handler_npa_lf_free(struct rvu *rvu, struct msg_req *req,
393 bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc);
394 int rvu_nix_init(struct rvu *rvu);
395 int rvu_nix_reserve_mark_format(struct rvu *rvu, struct nix_hw *nix_hw,
397 void rvu_nix_freemem(struct rvu *rvu);
398 int rvu_get_nixlf_count(struct rvu *rvu);
399 void rvu_nix_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int npalf);
400 int rvu_mbox_handler_nix_lf_alloc(struct rvu *rvu,
403 int rvu_mbox_handler_nix_lf_free(struct rvu *rvu, struct msg_req *req,
405 int rvu_mbox_handler_nix_aq_enq(struct rvu *rvu,
408 int rvu_mbox_handler_nix_hwctx_disable(struct rvu *rvu,
411 int rvu_mbox_handler_nix_txsch_alloc(struct rvu *rvu,
414 int rvu_mbox_handler_nix_txsch_free(struct rvu *rvu,
417 int rvu_mbox_handler_nix_txschq_cfg(struct rvu *rvu,
420 int rvu_mbox_handler_nix_stats_rst(struct rvu *rvu, struct msg_req *req,
422 int rvu_mbox_handler_nix_vtag_cfg(struct rvu *rvu,
425 int rvu_mbox_handler_nix_rxvlan_alloc(struct rvu *rvu, struct msg_req *req,
427 int rvu_mbox_handler_nix_rss_flowkey_cfg(struct rvu *rvu,
430 int rvu_mbox_handler_nix_set_mac_addr(struct rvu *rvu,
433 int rvu_mbox_handler_nix_set_rx_mode(struct rvu *rvu, struct nix_rx_mode *req,
435 int rvu_mbox_handler_nix_set_hw_frs(struct rvu *rvu, struct nix_frs_cfg *req,
437 int rvu_mbox_handler_nix_lf_start_rx(struct rvu *rvu, struct msg_req *req,
439 int rvu_mbox_handler_nix_lf_stop_rx(struct rvu *rvu, struct msg_req *req,
441 int rvu_mbox_handler_nix_mark_format_cfg(struct rvu *rvu,
444 int rvu_mbox_handler_nix_set_rx_cfg(struct rvu *rvu, struct nix_rx_cfg *req,
446 int rvu_mbox_handler_nix_lso_format_cfg(struct rvu *rvu,
451 int rvu_npc_init(struct rvu *rvu);
452 void rvu_npc_freemem(struct rvu *rvu);
453 int rvu_npc_get_pkind(struct rvu *rvu, u16 pf);
454 void rvu_npc_set_pkind(struct rvu *rvu, int pkind, struct rvu_pfvf *pfvf);
455 void rvu_npc_install_ucast_entry(struct rvu *rvu, u16 pcifunc,
457 void rvu_npc_install_promisc_entry(struct rvu *rvu, u16 pcifunc,
459 void rvu_npc_disable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf);
460 void rvu_npc_enable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf);
461 void rvu_npc_install_bcast_match_entry(struct rvu *rvu, u16 pcifunc,
463 int rvu_npc_update_rxvlan(struct rvu *rvu, u16 pcifunc, int nixlf);
464 void rvu_npc_disable_mcam_entries(struct rvu *rvu, u16 pcifunc, int nixlf);
465 void rvu_npc_disable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf);
466 void rvu_npc_enable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf);
467 void rvu_npc_update_flowkey_alg_idx(struct rvu *rvu, u16 pcifunc, int nixlf,
469 int rvu_mbox_handler_npc_mcam_alloc_entry(struct rvu *rvu,
472 int rvu_mbox_handler_npc_mcam_free_entry(struct rvu *rvu,
475 int rvu_mbox_handler_npc_mcam_write_entry(struct rvu *rvu,
478 int rvu_mbox_handler_npc_mcam_ena_entry(struct rvu *rvu,
481 int rvu_mbox_handler_npc_mcam_dis_entry(struct rvu *rvu,
484 int rvu_mbox_handler_npc_mcam_shift_entry(struct rvu *rvu,
487 int rvu_mbox_handler_npc_mcam_alloc_counter(struct rvu *rvu,
490 int rvu_mbox_handler_npc_mcam_free_counter(struct rvu *rvu,
492 int rvu_mbox_handler_npc_mcam_clear_counter(struct rvu *rvu,
494 int rvu_mbox_handler_npc_mcam_unmap_counter(struct rvu *rvu,
496 int rvu_mbox_handler_npc_mcam_counter_stats(struct rvu *rvu,
499 int rvu_mbox_handler_npc_mcam_alloc_and_write_entry(struct rvu *rvu,
502 int rvu_mbox_handler_npc_get_kex_cfg(struct rvu *rvu, struct msg_req *req,