Home
last modified time | relevance | path

Searched refs:rvu (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_cgx.c26 *otx2_mbox_alloc_msg_ ## _fn_name(struct rvu *rvu, int devid) \
31 &rvu->afpf_wq_info.mbox_up, devid, sizeof(struct _req_type), \
37 trace_otx2_msg_alloc(rvu->pdev, _id, sizeof(*req), 0); \
44 bool is_mac_feature_supported(struct rvu *rvu, int pf, int feature) in is_mac_feature_supported() argument
49 if (!is_pf_cgxmapped(rvu, pf)) in is_mac_feature_supported()
52 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in is_mac_feature_supported()
53 cgxd = rvu_cgx_pdata(cgx_id, rvu); in is_mac_feature_supported()
58 #define CGX_OFFSET(x) ((x) * rvu->hw->lmac_per_cgx)
60 static u64 cgxlmac_to_pfmap(struct rvu *rvu, u8 cgx_id, u8 lmac_id) in cgxlmac_to_pfmap() argument
62 return rvu->cgxlmac2pf_map[CGX_OFFSET(cgx_id) + lmac_id]; in cgxlmac_to_pfmap()
[all …]
H A Drvu.h88 struct rvu *rvu; member
118 struct rvu *rvu; member
144 struct rvu *rvu; member
398 struct rvu *rvu; member
464 struct rvu *rvu; member
486 struct rvu *rvu; global() member
584 struct rvu { global() struct
589 hwrvu global() argument
590 pfrvu global() argument
591 hwvfrvu global() argument
604 flr_wrkrvu global() argument
605 flr_wqrvu global() argument
606 flr_lockrvu global() argument
609 num_vecrvu global() argument
610 irq_namervu global() argument
611 irq_allocatedrvu global() argument
612 msix_base_iovarvu global() argument
636 fwdatarvu global() argument
650 rvu_dbgrvu global() argument
652 rvu_dlrvu global() argument
655 rswitchrvu global() argument
677 ng_rvurvu global() argument
680 rvu_write64(struct rvu * rvu,u64 block,u64 offset,u64 val) rvu_write64() argument
685 rvu_read64(struct rvu * rvu,u64 block,u64 offset) rvu_read64() argument
690 rvupf_write64(struct rvu * rvu,u64 offset,u64 val) rvupf_write64() argument
695 rvupf_read64(struct rvu * rvu,u64 offset) rvupf_read64() argument
700 rvu_bar2_sel_write64(struct rvu * rvu,u64 block,u64 offset,u64 val) rvu_bar2_sel_write64() argument
712 is_rvu_pre_96xx_C0(struct rvu * rvu) is_rvu_pre_96xx_C0() argument
721 is_rvu_96xx_A0(struct rvu * rvu) is_rvu_96xx_A0() argument
728 is_rvu_96xx_B0(struct rvu * rvu) is_rvu_96xx_B0() argument
735 is_rvu_95xx_A0(struct rvu * rvu) is_rvu_95xx_A0() argument
753 is_rvu_otx2(struct rvu * rvu) is_rvu_otx2() argument
764 is_cnf10ka_a0(struct rvu * rvu) is_cnf10ka_a0() argument
774 is_cn10ka_a0(struct rvu * rvu) is_cn10ka_a0() argument
784 is_cn10ka_a1(struct rvu * rvu) is_cn10ka_a1() argument
794 is_cn10kb(struct rvu * rvu) is_cn10kb() argument
817 is_rvu_npc_hash_extract_en(struct rvu * rvu) is_rvu_npc_hash_extract_en() argument
828 rvu_nix_chan_cgx(struct rvu * rvu,u8 cgxid,u8 lmacid,u8 chan) rvu_nix_chan_cgx() argument
842 rvu_nix_chan_lbk(struct rvu * rvu,u8 lbkid,u8 chan) rvu_nix_chan_lbk() argument
855 rvu_nix_chan_sdp(struct rvu * rvu,u8 chan) rvu_nix_chan_sdp() argument
865 rvu_nix_chan_cpt(struct rvu * rvu,u8 chan) rvu_nix_chan_cpt() argument
870 is_rvu_supports_nix1(struct rvu * rvu) is_rvu_supports_nix1() argument
884 is_lbk_vf(struct rvu * rvu,u16 pcifunc) is_lbk_vf() argument
901 is_rvu_fwdata_valid(struct rvu * rvu) is_rvu_fwdata_valid() argument
950 is_rep_dev(struct rvu * rvu,u16 pcifunc) is_rep_dev() argument
969 is_pf_cgxmapped(struct rvu * rvu,u8 pf) is_pf_cgxmapped() argument
981 is_cgx_vf(struct rvu * rvu,u16 pcifunc) is_cgx_vf() argument
1168 rvu_dbg_init(struct rvu * rvu) rvu_dbg_init() argument
1169 rvu_dbg_exit(struct rvu * rvu) rvu_dbg_exit() argument
[all...]
H A Drvu.c16 #include "rvu.h"
30 static void rvu_set_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf,
32 static void rvu_clear_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf,
34 static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc);
36 static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw,
62 static void rvu_setup_hw_capabilities(struct rvu *rv argument
99 rvu_poll_reg(struct rvu * rvu,u64 block,u64 offset,u64 mask,bool zero) rvu_poll_reg() argument
226 rvu_get_lf(struct rvu * rvu,struct rvu_block * block,u16 pcifunc,u16 slot) rvu_get_lf() argument
254 rvu_get_blkaddr(struct rvu * rvu,int blktype,u16 pcifunc) rvu_get_blkaddr() argument
342 rvu_update_rsrc_map(struct rvu * rvu,struct rvu_pfvf * pfvf,struct rvu_block * block,u16 pcifunc,u16 lf,bool attach) rvu_update_rsrc_map() argument
404 rvu_get_pf_numvfs(struct rvu * rvu,int pf,int * numvfs,int * hwvf) rvu_get_pf_numvfs() argument
416 rvu_get_hwvf(struct rvu * rvu,int pcifunc) rvu_get_hwvf() argument
430 rvu_get_pfvf(struct rvu * rvu,int pcifunc) rvu_get_pfvf() argument
439 is_pf_func_valid(struct rvu * rvu,u16 pcifunc) is_pf_func_valid() argument
472 rvu_check_block_implemented(struct rvu * rvu) rvu_check_block_implemented() argument
488 rvu_setup_rvum_blk_revid(struct rvu * rvu) rvu_setup_rvum_blk_revid() argument
495 rvu_clear_rvum_blk_revid(struct rvu * rvu) rvu_clear_rvum_blk_revid() argument
501 rvu_lf_reset(struct rvu * rvu,struct rvu_block * block,int lf) rvu_lf_reset() argument
514 rvu_block_reset(struct rvu * rvu,int blkaddr,u64 rst_reg) rvu_block_reset() argument
531 rvu_reset_all_blocks(struct rvu * rvu) rvu_reset_all_blocks() argument
549 rvu_scan_block(struct rvu * rvu,struct rvu_block * block) rvu_scan_block() argument
574 rvu_check_min_msix_vec(struct rvu * rvu,int nvecs,int pf,int vf) rvu_check_min_msix_vec() argument
601 rvu_setup_msix_resources(struct rvu * rvu) rvu_setup_msix_resources() argument
736 rvu_reset_msix(struct rvu * rvu) rvu_reset_msix() argument
743 rvu_free_hw_resources(struct rvu * rvu) rvu_free_hw_resources() argument
790 rvu_setup_pfvf_macaddress(struct rvu * rvu) rvu_setup_pfvf_macaddress() argument
836 rvu_fwdata_init(struct rvu * rvu) rvu_fwdata_init() argument
863 rvu_fwdata_exit(struct rvu * rvu) rvu_fwdata_exit() argument
869 rvu_setup_nix_hw_resource(struct rvu * rvu,int blkaddr) rvu_setup_nix_hw_resource() argument
898 rvu_setup_cpt_hw_resource(struct rvu * rvu,int blkaddr) rvu_setup_cpt_hw_resource() argument
927 rvu_get_lbk_bufsize(struct rvu * rvu) rvu_get_lbk_bufsize() argument
952 rvu_setup_hw_resources(struct rvu * rvu) rvu_setup_hw_resources() argument
1226 rvu_aq_free(struct rvu * rvu,struct admin_queue * aq) rvu_aq_free() argument
1236 rvu_aq_alloc(struct rvu * rvu,struct admin_queue ** ad_queue,int qsize,int inst_size,int res_size) rvu_aq_alloc() argument
1265 rvu_mbox_handler_ready(struct rvu * rvu,struct msg_req * req,struct ready_msg_rsp * rsp) rvu_mbox_handler_ready() argument
1321 is_pffunc_map_valid(struct rvu * rvu,u16 pcifunc,int blktype) is_pffunc_map_valid() argument
1337 rvu_lookup_rsrc(struct rvu * rvu,struct rvu_block * block,int pcifunc,int slot) rvu_lookup_rsrc() argument
1358 rvu_get_blkaddr_from_slot(struct rvu * rvu,int blktype,u16 pcifunc,u16 global_slot,u16 * slot_in_block) rvu_get_blkaddr_from_slot() argument
1412 rvu_detach_block(struct rvu * rvu,int pcifunc,int blktype) rvu_detach_block() argument
1455 rvu_detach_rsrcs(struct rvu * rvu,struct rsrc_detach * detach,u16 pcifunc) rvu_detach_rsrcs() argument
1508 rvu_mbox_handler_detach_resources(struct rvu * rvu,struct rsrc_detach * detach,struct msg_rsp * rsp) rvu_mbox_handler_detach_resources() argument
1515 rvu_get_nix_blkaddr(struct rvu * rvu,u16 pcifunc) rvu_get_nix_blkaddr() argument
1558 rvu_get_attach_blkaddr(struct rvu * rvu,int blktype,u16 pcifunc,struct rsrc_attach * attach) rvu_get_attach_blkaddr() argument
1585 rvu_attach_block(struct rvu * rvu,int pcifunc,int blktype,int num_lfs,struct rsrc_attach * attach) rvu_attach_block() argument
1625 rvu_check_rsrc_availability(struct rvu * rvu,struct rsrc_attach * req,u16 pcifunc) rvu_check_rsrc_availability() argument
1736 rvu_attach_from_same_block(struct rvu * rvu,int blktype,struct rsrc_attach * attach) rvu_attach_from_same_block() argument
1752 rvu_mbox_handler_attach_resources(struct rvu * rvu,struct rsrc_attach * attach,struct msg_rsp * rsp) rvu_mbox_handler_attach_resources() argument
1866 rvu_get_msix_offset(struct rvu * rvu,struct rvu_pfvf * pfvf,int blkaddr,int lf) rvu_get_msix_offset() argument
1881 rvu_set_msix_offset(struct rvu * rvu,struct rvu_pfvf * pfvf,struct rvu_block * block,int lf) rvu_set_msix_offset() argument
1906 rvu_clear_msix_offset(struct rvu * rvu,struct rvu_pfvf * pfvf,struct rvu_block * block,int lf) rvu_clear_msix_offset() argument
1930 rvu_mbox_handler_msix_offset(struct rvu * rvu,struct msg_req * req,struct msix_offset_rsp * rsp) rvu_mbox_handler_msix_offset() argument
1993 rvu_mbox_handler_free_rsrc_cnt(struct rvu * rvu,struct msg_req * req,struct free_rsrcs_rsp * rsp) rvu_mbox_handler_free_rsrc_cnt() argument
2086 rvu_mbox_handler_vf_flr(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_vf_flr() argument
2106 rvu_ndc_sync(struct rvu * rvu,int lfblkaddr,int lfidx,u64 lfoffset) rvu_ndc_sync() argument
2113 rvu_mbox_handler_get_hw_cap(struct rvu * rvu,struct msg_req * req,struct get_hw_cap_rsp * rsp) rvu_mbox_handler_get_hw_cap() argument
2128 rvu_mbox_handler_set_vf_perm(struct rvu * rvu,struct set_vf_perm * req,struct msg_rsp * rsp) rvu_mbox_handler_set_vf_perm() argument
2170 rvu_mbox_handler_ndc_sync_op(struct rvu * rvu,struct ndc_sync_op * req,struct msg_rsp * rsp) rvu_mbox_handler_ndc_sync_op() argument
2229 rvu_notify_altaf(struct rvu * rvu,u16 pcifunc,u64 op) rvu_notify_altaf() argument
2259 struct rvu *rvu = pci_get_drvdata(mbox->pdev); rvu_process_mbox_msg() local
2309 struct rvu *rvu = mwork->rvu; __rvu_mbox_handler() local
2401 struct rvu *rvu = mwork->rvu; rvu_afpf_mbox_handler() local
2417 struct rvu *rvu = mwork->rvu; __rvu_mbox_up_handler() local
2497 rvu_get_mbox_regions(struct rvu * rvu,void __iomem ** mbox_addr,int num,int type,unsigned long * pf_bmap) rvu_get_mbox_regions() argument
2570 rvu_mbox_init(struct rvu * rvu,struct mbox_wq_info * mw,int type,int num,void (mbox_handler)(struct work_struct *),void (mbox_up_handler)(struct work_struct *)) rvu_mbox_init() argument
2777 struct rvu *rvu = (struct rvu *)rvu_irq; rvu_mbox_pf_intr_handler() local
2796 struct rvu *rvu = (struct rvu *)rvu_irq; rvu_mbox_intr_handler() local
2822 rvu_enable_mbox_intr(struct rvu * rvu) rvu_enable_mbox_intr() argument
2840 rvu_blklf_teardown(struct rvu * rvu,u16 pcifunc,u8 blkaddr) rvu_blklf_teardown() argument
2884 __rvu_flr_handler(struct rvu * rvu,u16 pcifunc) __rvu_flr_handler() argument
2925 rvu_afvf_flr_handler(struct rvu * rvu,int vf) rvu_afvf_flr_handler() argument
2945 struct rvu *rvu = flrwork->rvu; rvu_flr_handler() local
2972 rvu_afvf_queue_flr_work(struct rvu * rvu,int start_vf,int numvfs) rvu_afvf_queue_flr_work() argument
2998 struct rvu *rvu = (struct rvu *)rvu_irq; rvu_flr_intr_handler() local
3027 rvu_me_handle_vfset(struct rvu * rvu,int idx,u64 intr) rvu_me_handle_vfset() argument
3047 struct rvu *rvu = (struct rvu *)rvu_irq; rvu_me_vf_intr_handler() local
3065 struct rvu *rvu = (struct rvu *)rvu_irq; rvu_me_pf_intr_handler() local
3088 rvu_unregister_interrupts(struct rvu * rvu) rvu_unregister_interrupts() argument
3120 rvu_afvf_msix_vectors_num_ok(struct rvu * rvu) rvu_afvf_msix_vectors_num_ok() argument
3140 rvu_register_interrupts(struct rvu * rvu) rvu_register_interrupts() argument
3347 rvu_flr_wq_destroy(struct rvu * rvu) rvu_flr_wq_destroy() argument
3355 rvu_flr_init(struct rvu * rvu) rvu_flr_init() argument
3391 rvu_disable_afvf_intr(struct rvu * rvu) rvu_disable_afvf_intr() argument
3410 rvu_enable_afvf_intr(struct rvu * rvu) rvu_enable_afvf_intr() argument
3466 rvu_enable_sriov(struct rvu * rvu) rvu_enable_sriov() argument
3528 rvu_disable_sriov(struct rvu * rvu) rvu_disable_sriov() argument
3535 rvu_update_module_params(struct rvu * rvu) rvu_update_module_params() argument
3548 struct rvu *rvu; rvu_probe() local
3695 struct rvu *rvu = pci_get_drvdata(pdev); rvu_remove() local
3723 struct rvu *rvu = pci_get_drvdata(pdev); rvu_shutdown() local
[all...]
H A Drvu_cpt.c35 reg = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_STS(e)); \
50 static u16 cpt_max_engines_get(struct rvu *rvu) in cpt_max_engines_get() argument
55 reg = rvu_read64(rvu, BLKADDR_CPT0, CPT_AF_CONSTANTS1); in cpt_max_engines_get()
66 static int cpt_10k_flt_nvecs_get(struct rvu *rvu, u16 max_engs) in cpt_10k_flt_nvecs_get() argument
73 dev_warn_once(rvu->dev, "flt_vecs:%d exceeds the max vectors:%d\n", in cpt_10k_flt_nvecs_get()
84 struct rvu *rvu = block->rvu; in cpt_af_flt_intr_handler() local
90 reg = rvu_read64(rvu, blkaddr, CPT_AF_FLTX_INT(vec)); in cpt_af_flt_intr_handler()
91 dev_err_ratelimited(rvu->dev, "Received CPTAF FLT%d irq : 0x%llx", vec, reg); in cpt_af_flt_intr_handler()
106 grp = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_CTL2(eng)) & 0xFF; in cpt_af_flt_intr_handler()
108 rvu_write64(rvu, blkaddr, CPT_AF_EXEX_CTL2(eng), 0x0); in cpt_af_flt_intr_handler()
[all …]
H A Drvu_devlink.c10 #include "rvu.h"
30 static bool rvu_common_request_irq(struct rvu *rvu, int offset, in rvu_common_request_irq() argument
33 struct rvu_devlink *rvu_dl = rvu->rvu_dl; in rvu_common_request_irq()
36 sprintf(&rvu->irq_name[offset * NAME_SIZE], "%s", name); in rvu_common_request_irq()
37 rc = request_irq(pci_irq_vector(rvu->pdev, offset), fn, 0, in rvu_common_request_irq()
38 &rvu->irq_name[offset * NAME_SIZE], rvu_dl); in rvu_common_request_irq()
40 dev_warn(rvu->dev, "Failed to register %s irq\n", name); in rvu_common_request_irq()
42 rvu->irq_allocated[offset] = true; in rvu_common_request_irq()
44 return rvu in rvu_common_request_irq()
61 struct rvu *rvu; rvu_nix_af_rvu_intr_handler() local
96 struct rvu *rvu; rvu_nix_af_rvu_gen_handler() local
131 struct rvu *rvu; rvu_nix_af_rvu_err_handler() local
166 struct rvu *rvu; rvu_nix_af_rvu_ras_handler() local
187 rvu_nix_unregister_interrupts(struct rvu * rvu) rvu_nix_unregister_interrupts() argument
218 rvu_nix_register_interrupts(struct rvu * rvu) rvu_nix_register_interrupts() argument
365 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_intr_dump() local
378 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_intr_recover() local
396 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_gen_dump() local
409 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_gen_recover() local
427 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_err_dump() local
440 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_err_recover() local
458 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_ras_dump() local
471 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_nix_ras_recover() local
496 struct rvu *rvu = rvu_dl->rvu; rvu_nix_register_reporters() local
562 struct rvu *rvu = rvu_dl->rvu; rvu_nix_health_reporters_create() local
579 struct rvu *rvu = rvu_dl->rvu; rvu_nix_health_reporters_destroy() local
616 struct rvu *rvu; rvu_npa_af_rvu_intr_handler() local
651 struct rvu *rvu; rvu_npa_af_gen_intr_handler() local
686 struct rvu *rvu; rvu_npa_af_err_intr_handler() local
720 struct rvu *rvu; rvu_npa_af_ras_intr_handler() local
741 rvu_npa_unregister_interrupts(struct rvu * rvu) rvu_npa_unregister_interrupts() argument
766 rvu_npa_register_interrupts(struct rvu * rvu) rvu_npa_register_interrupts() argument
919 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_intr_dump() local
932 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_intr_recover() local
950 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_gen_dump() local
963 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_gen_recover() local
981 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_err_dump() local
994 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_err_recover() local
1012 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_ras_dump() local
1025 struct rvu *rvu = devlink_health_reporter_priv(reporter); rvu_hw_npa_ras_recover() local
1050 struct rvu *rvu = rvu_dl->rvu; rvu_npa_register_reporters() local
1116 struct rvu *rvu = rvu_dl->rvu; rvu_npa_health_reporters_create() local
1133 struct rvu *rvu = rvu_dl->rvu; rvu_npa_health_reporters_destroy() local
1156 rvu_health_reporters_create(struct rvu * rvu) rvu_health_reporters_create() argument
1169 rvu_health_reporters_destroy(struct rvu * rvu) rvu_health_reporters_destroy() argument
1187 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_dwrr_mtu_validate() local
1226 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_dwrr_mtu_set() local
1241 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_dwrr_mtu_get() local
1269 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_defrag_feature_get() local
1285 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_defrag() local
1302 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_defrag_feature_validate() local
1330 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_exact_feature_get() local
1346 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_exact_feature_disable() local
1358 struct rvu *rvu = rvu_dl->rvu; rvu_af_npc_exact_feature_validate() local
1386 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_mcam_high_zone_percent_get() local
1402 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_mcam_high_zone_percent_set() local
1421 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_mcam_high_zone_percent_validate() local
1449 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_def_rule_cntr_get() local
1461 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_npc_def_rule_cntr_set() local
1476 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_nix_maxlf_get() local
1488 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_nix_maxlf_set() local
1511 struct rvu *rvu = rvu_dl->rvu; rvu_af_dl_nix_maxlf_validate() local
1584 struct rvu *rvu = rvu_dl->rvu; rvu_devlink_eswitch_mode_get() local
1600 struct rvu *rvu = rvu_dl->rvu; rvu_devlink_eswitch_mode_set() local
1636 rvu_register_dl(struct rvu * rvu) rvu_register_dl() argument
1710 rvu_unregister_dl(struct rvu * rvu) rvu_unregister_dl() argument
[all...]
H A Drvu_rep.c19 *otx2_mbox_alloc_msg_ ## _fn_name(struct rvu *rvu, int devid) \
24 &rvu->afpf_wq_info.mbox_up, devid, sizeof(struct _req_type), \
36 static int rvu_rep_up_notify(struct rvu *rvu, struct rep_event *event) in rvu_rep_up_notify() argument
38 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, event->pcifunc); in rvu_rep_up_notify()
42 pf = rvu_get_pf(rvu->pdev, event->pcifunc); in rvu_rep_up_notify()
47 mutex_lock(&rvu->mbox_lock); in rvu_rep_up_notify()
48 msg = otx2_mbox_alloc_msg_rep_event_up_notify(rvu, pf); in rvu_rep_up_notify()
50 mutex_unlock(&rvu->mbox_lock); in rvu_rep_up_notify()
59 otx2_mbox_wait_for_zero(&rvu->afpf_wq_info.mbox_up, pf); in rvu_rep_up_notify()
61 otx2_mbox_msg_send_up(&rvu->afpf_wq_info.mbox_up, pf); in rvu_rep_up_notify()
[all …]
H A Drvu_npc.c14 #include "rvu.h"
35 static void npc_mcam_free_all_entries(struct rvu *rvu, struct npc_mcam *mcam,
37 static void npc_mcam_free_all_counters(struct rvu *rvu, struct npc_mcam *mcam,
50 bool is_npc_interface_valid(struct rvu *rvu, u8 intf) in is_npc_interface_valid() argument
52 struct rvu_hwinfo *hw = rvu->hw; in is_npc_interface_valid()
57 int rvu_npc_get_tx_nibble_cfg(struct rvu *rvu, u6 argument
67 rvu_npc_set_pkind(struct rvu * rvu,int pkind,struct rvu_pfvf * pfvf) rvu_npc_set_pkind() argument
81 rvu_npc_get_pkind(struct rvu * rvu,u16 pf) rvu_npc_get_pkind() argument
97 npc_config_ts_kpuaction(struct rvu * rvu,int pf,u16 pcifunc,bool enable) npc_config_ts_kpuaction() argument
129 struct rvu *rvu = hw->rvu; npc_get_ucast_mcam_index() local
154 struct rvu *rvu = hw->rvu; npc_get_nixlf_mcam_index() local
225 struct rvu *rvu = hw->rvu; npc_get_bank() local
237 is_mcam_entry_enabled(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index) is_mcam_entry_enabled() argument
255 npc_enable_mcam_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,bool enable) npc_enable_mcam_entry() argument
276 npc_clear_mcam_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index) npc_clear_mcam_entry() argument
439 npc_get_default_entry_action(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 pf_func) npc_get_default_entry_action() argument
475 npc_fixup_vf_rule(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,struct mcam_entry * entry,bool * enable) npc_fixup_vf_rule() argument
518 npc_config_mcam_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,u8 intf,struct mcam_entry * entry,bool enable) npc_config_mcam_entry() argument
593 npc_read_mcam_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 src,struct mcam_entry * entry,u8 * intf,u8 * ena) npc_read_mcam_entry() argument
629 npc_copy_mcam_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 src,u16 dest) npc_copy_mcam_entry() argument
673 npc_get_mcam_action(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index) npc_get_mcam_action() argument
688 npc_set_mcam_action(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,u64 cfg) npc_set_mcam_action() argument
704 rvu_get_cpt_chan_mask(struct rvu * rvu) rvu_get_cpt_chan_mask() argument
717 rvu_npc_install_ucast_entry(struct rvu * rvu,u16 pcifunc,int nixlf,u64 chan,u8 * mac_addr) rvu_npc_install_ucast_entry() argument
781 rvu_npc_install_promisc_entry(struct rvu * rvu,u16 pcifunc,int nixlf,u64 chan,u8 chan_cnt) rvu_npc_install_promisc_entry() argument
890 rvu_npc_enable_promisc_entry(struct rvu * rvu,u16 pcifunc,int nixlf,bool enable) rvu_npc_enable_promisc_entry() argument
916 rvu_npc_install_bcast_match_entry(struct rvu * rvu,u16 pcifunc,int nixlf,u64 chan) rvu_npc_install_bcast_match_entry() argument
987 rvu_npc_install_allmulti_entry(struct rvu * rvu,u16 pcifunc,int nixlf,u64 chan) rvu_npc_install_allmulti_entry() argument
1082 rvu_npc_enable_allmulti_entry(struct rvu * rvu,u16 pcifunc,int nixlf,bool enable) rvu_npc_enable_allmulti_entry() argument
1107 npc_update_vf_flow_entry(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 pcifunc,u64 rx_action) npc_update_vf_flow_entry() argument
1159 npc_update_rx_action_with_alg_idx(struct rvu * rvu,struct nix_rx_action action,struct rvu_pfvf * pfvf,int mcam_index,int blkaddr,int alg_idx) npc_update_rx_action_with_alg_idx() argument
1192 rvu_npc_update_flowkey_alg_idx(struct rvu * rvu,u16 pcifunc,int nixlf,int group,int alg_idx,int mcam_index) rvu_npc_update_flowkey_alg_idx() argument
1280 npc_enadis_default_mce_entry(struct rvu * rvu,u16 pcifunc,int nixlf,int type,bool enable) npc_enadis_default_mce_entry() argument
1326 npc_enadis_default_entries(struct rvu * rvu,u16 pcifunc,int nixlf,bool enable) npc_enadis_default_entries() argument
1366 rvu_npc_disable_default_entries(struct rvu * rvu,u16 pcifunc,int nixlf) rvu_npc_disable_default_entries() argument
1380 rvu_npc_enable_mcam_by_entry_index(struct rvu * rvu,int entry,int intf,bool enable) rvu_npc_enable_mcam_by_entry_index() argument
1408 rvu_npc_enable_default_entries(struct rvu * rvu,u16 pcifunc,int nixlf) rvu_npc_enable_default_entries() argument
1419 rvu_npc_disable_mcam_entries(struct rvu * rvu,u16 pcifunc,int nixlf) rvu_npc_disable_mcam_entries() argument
1456 rvu_npc_free_mcam_entries(struct rvu * rvu,u16 pcifunc,int nixlf) rvu_npc_free_mcam_entries() argument
1487 npc_program_mkex_rx(struct rvu * rvu,int blkaddr,struct npc_mcam_kex * mkex,u8 intf) npc_program_mkex_rx() argument
1516 npc_program_mkex_tx(struct rvu * rvu,int blkaddr,struct npc_mcam_kex * mkex,u8 intf) npc_program_mkex_tx() argument
1545 npc_program_mkex_profile(struct rvu * rvu,int blkaddr,struct npc_mcam_kex * mkex) npc_program_mkex_profile() argument
1565 npc_fwdb_prfl_img_map(struct rvu * rvu,void __iomem ** prfl_img_addr,u64 * size) npc_fwdb_prfl_img_map() argument
1591 npc_load_mkex_profile(struct rvu * rvu,int blkaddr,const char * mkex_profile) npc_load_mkex_profile() argument
1640 npc_config_kpuaction(struct rvu * rvu,int blkaddr,const struct npc_kpu_profile_action * kpuaction,int kpu,int entry,bool pkind) npc_config_kpuaction() argument
1682 npc_config_kpucam(struct rvu * rvu,int blkaddr,const struct npc_kpu_profile_cam * kpucam,int kpu,int entry) npc_config_kpucam() argument
1710 npc_program_kpu_profile(struct rvu * rvu,int blkaddr,int kpu,const struct npc_kpu_profile * profile) npc_program_kpu_profile() argument
1754 npc_prepare_default_kpu(struct rvu * rvu,struct npc_kpu_profile_adapter * profile) npc_prepare_default_kpu() argument
1781 npc_apply_custom_kpu(struct rvu * rvu,struct npc_kpu_profile_adapter * profile) npc_apply_custom_kpu() argument
1866 npc_load_kpu_prfl_img(struct rvu * rvu,void __iomem * prfl_addr,u64 prfl_sz,const char * kpu_profile) npc_load_kpu_prfl_img() argument
1886 npc_fwdb_detect_load_prfl_img(struct rvu * rvu,uint64_t prfl_sz,const char * kpu_profile) npc_fwdb_detect_load_prfl_img() argument
1924 npc_load_kpu_profile_fwdb(struct rvu * rvu,const char * kpu_profile) npc_load_kpu_profile_fwdb() argument
1951 npc_load_kpu_profile(struct rvu * rvu) npc_load_kpu_profile() argument
2028 npc_parser_profile_init(struct rvu * rvu,int blkaddr) npc_parser_profile_init() argument
2063 npc_mcam_rsrcs_deinit(struct rvu * rvu) npc_mcam_rsrcs_deinit() argument
2077 npc_mcam_rsrcs_init(struct rvu * rvu,int blkaddr) npc_mcam_rsrcs_init() argument
2230 rvu_npc_hw_init(struct rvu * rvu,int blkaddr) rvu_npc_hw_init() argument
2288 rvu_npc_setup_interfaces(struct rvu * rvu,int blkaddr) rvu_npc_setup_interfaces() argument
2375 rvu_npc_init(struct rvu * rvu) rvu_npc_init() argument
2471 rvu_npc_freemem(struct rvu * rvu) rvu_npc_freemem() argument
2488 rvu_npc_get_mcam_entry_alloc_info(struct rvu * rvu,u16 pcifunc,int blkaddr,int * alloc_cnt,int * enable_cnt) rvu_npc_get_mcam_entry_alloc_info() argument
2507 rvu_npc_get_mcam_counter_alloc_info(struct rvu * rvu,u16 pcifunc,int blkaddr,int * alloc_cnt,int * enable_cnt) rvu_npc_get_mcam_counter_alloc_info() argument
2559 npc_map_mcam_entry_and_cntr(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 entry,u16 cntr) npc_map_mcam_entry_and_cntr() argument
2579 npc_unmap_mcam_entry_and_cntr(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 entry,u16 cntr) npc_unmap_mcam_entry_and_cntr() argument
2630 npc_mcam_free_all_entries(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,u16 pcifunc) npc_mcam_free_all_entries() argument
2688 npc_mcam_free_all_counters(struct rvu * rvu,struct npc_mcam * mcam,u16 pcifunc) npc_mcam_free_all_counters() argument
2833 struct rvu *rvu = hw->rvu; npc_mcam_alloc_entries() local
3091 npc_mcam_rsrcs_reserve(struct rvu * rvu,int blkaddr,int entry_idx) npc_mcam_rsrcs_reserve() argument
3098 npc_config_cntr_default_entries(struct rvu * rvu,bool enable) npc_config_cntr_default_entries() argument
3145 rvu_mbox_handler_npc_mcam_alloc_entry(struct rvu * rvu,struct npc_mcam_alloc_entry_req * req,struct npc_mcam_alloc_entry_rsp * rsp) rvu_mbox_handler_npc_mcam_alloc_entry() argument
3191 rvu_mbox_handler_npc_mcam_free_entry(struct rvu * rvu,struct npc_mcam_free_entry_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_free_entry() argument
3248 rvu_mbox_handler_npc_mcam_read_entry(struct rvu * rvu,struct npc_mcam_read_entry_req * req,struct npc_mcam_read_entry_rsp * rsp) rvu_mbox_handler_npc_mcam_read_entry() argument
3272 rvu_mbox_handler_npc_mcam_write_entry(struct rvu * rvu,struct npc_mcam_write_entry_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_write_entry() argument
3327 rvu_mbox_handler_npc_mcam_ena_entry(struct rvu * rvu,struct npc_mcam_ena_dis_entry_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_ena_entry() argument
3352 rvu_mbox_handler_npc_mcam_dis_entry(struct rvu * rvu,struct npc_mcam_ena_dis_entry_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_dis_entry() argument
3377 rvu_mbox_handler_npc_mcam_shift_entry(struct rvu * rvu,struct npc_mcam_shift_entry_req * req,struct npc_mcam_shift_entry_rsp * rsp) rvu_mbox_handler_npc_mcam_shift_entry() argument
3450 __npc_mcam_alloc_counter(struct rvu * rvu,struct npc_mcam_alloc_counter_req * req,struct npc_mcam_alloc_counter_rsp * rsp) __npc_mcam_alloc_counter() argument
3510 rvu_mbox_handler_npc_mcam_alloc_counter(struct rvu * rvu,struct npc_mcam_alloc_counter_req * req,struct npc_mcam_alloc_counter_rsp * rsp) rvu_mbox_handler_npc_mcam_alloc_counter() argument
3529 __npc_mcam_free_counter(struct rvu * rvu,struct npc_mcam_oper_counter_req * req,struct msg_rsp * rsp) __npc_mcam_free_counter() argument
3569 rvu_mbox_handler_npc_mcam_free_counter(struct rvu * rvu,struct npc_mcam_oper_counter_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_free_counter() argument
3588 __rvu_mcam_remove_counter_from_rule(struct rvu * rvu,u16 pcifunc,struct rvu_npc_mcam_rule * rule) __rvu_mcam_remove_counter_from_rule() argument
3604 __rvu_mcam_add_counter_to_rule(struct rvu * rvu,u16 pcifunc,struct rvu_npc_mcam_rule * rule,struct npc_install_flow_rsp * rsp) __rvu_mcam_add_counter_to_rule() argument
3630 rvu_mbox_handler_npc_mcam_unmap_counter(struct rvu * rvu,struct npc_mcam_unmap_counter_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_unmap_counter() argument
3681 rvu_mbox_handler_npc_mcam_clear_counter(struct rvu * rvu,struct npc_mcam_oper_counter_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_mcam_clear_counter() argument
3713 rvu_mbox_handler_npc_mcam_counter_stats(struct rvu * rvu,struct npc_mcam_oper_counter_req * req,struct npc_mcam_oper_counter_rsp * rsp) rvu_mbox_handler_npc_mcam_counter_stats() argument
3750 rvu_mbox_handler_npc_mcam_alloc_and_write_entry(struct rvu * rvu,struct npc_mcam_alloc_and_write_entry_req * req,struct npc_mcam_alloc_and_write_entry_rsp * rsp) rvu_mbox_handler_npc_mcam_alloc_and_write_entry() argument
3844 rvu_mbox_handler_npc_get_kex_cfg(struct rvu * rvu,struct msg_req * req,struct npc_get_kex_cfg_rsp * rsp) rvu_mbox_handler_npc_get_kex_cfg() argument
3877 npc_set_var_len_offset_pkind(struct rvu * rvu,u16 pcifunc,u64 pkind,u8 var_len_off,u8 var_len_off_mask,u8 shift_dir) npc_set_var_len_offset_pkind() argument
3909 rvu_npc_set_parse_mode(struct rvu * rvu,u16 pcifunc,u64 mode,u8 dir,u64 pkind,u8 var_len_off,u8 var_len_off_mask,u8 shift_dir) rvu_npc_set_parse_mode() argument
3964 rvu_mbox_handler_npc_set_pkind(struct rvu * rvu,struct npc_set_pkind * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_set_pkind() argument
3972 rvu_mbox_handler_npc_read_base_steer_rule(struct rvu * rvu,struct msg_req * req,struct npc_mcam_read_base_rule_rsp * rsp) rvu_mbox_handler_npc_read_base_steer_rule() argument
4024 rvu_mbox_handler_npc_mcam_entry_stats(struct rvu * rvu,struct npc_mcam_get_stats_req * req,struct npc_mcam_get_stats_rsp * rsp) rvu_mbox_handler_npc_mcam_entry_stats() argument
4076 rvu_npc_clear_ucast_entry(struct rvu * rvu,int pcifunc,int nixlf) rvu_npc_clear_ucast_entry() argument
[all...]
H A Drvu_cn10k.c9 #include "rvu.h"
23 static int lmtst_map_table_ops(struct rvu *rvu, u32 index, u64 *val, in lmtst_map_table_ops() argument
30 tbl_base = rvu_read64(rvu, BLKADDR_APR, APR_AF_LMT_MAP_BASE); in lmtst_map_table_ops()
31 cfg = rvu_read64(rvu, BLKADDR_APR, APR_AF_LMT_CFG); in lmtst_map_table_ops()
37 dev_err(rvu->dev, "Failed to setup lmt map table mapping!!\n"); in lmtst_map_table_ops()
57 rvu_write64(rvu, BLKADDR_APR, APR_AF_LMT_CTL, BIT_ULL(0)); in lmtst_map_table_ops()
58 rvu_read64(rvu, BLKADDR_APR, APR_AF_LMT_CTL); in lmtst_map_table_ops()
59 rvu_write64(rvu, BLKADDR_APR, APR_AF_LMT_CTL, 0x00); in lmtst_map_table_ops()
67 static u32 rvu_get_lmtst_tbl_index(struct rvu *rv argument
73 rvu_get_lmtaddr(struct rvu * rvu,u16 pcifunc,u64 iova,u64 * lmt_addr) rvu_get_lmtaddr() argument
113 rvu_update_lmtaddr(struct rvu * rvu,u16 pcifunc,u64 lmt_addr) rvu_update_lmtaddr() argument
148 rvu_mbox_handler_lmtst_tbl_setup(struct rvu * rvu,struct lmtst_tbl_setup_req * req,struct msg_rsp * rsp) rvu_mbox_handler_lmtst_tbl_setup() argument
254 rvu_reset_lmt_map_tbl(struct rvu * rvu,u16 pcifunc) rvu_reset_lmt_map_tbl() argument
296 rvu_set_channels_base(struct rvu * rvu) rvu_set_channels_base() argument
367 __rvu_lbk_set_chans(struct rvu * rvu,void __iomem * base,u64 offset,int lbkid,u16 chans) __rvu_lbk_set_chans() argument
383 rvu_lbk_set_channels(struct rvu * rvu) rvu_lbk_set_channels() argument
451 __rvu_nix_set_channels(struct rvu * rvu,int blkaddr) __rvu_nix_set_channels() argument
507 rvu_nix_set_channels(struct rvu * rvu) rvu_nix_set_channels() argument
533 rvu_rpm_set_channels(struct rvu * rvu) rvu_rpm_set_channels() argument
547 rvu_program_channels(struct rvu * rvu) rvu_program_channels() argument
559 rvu_nix_block_cn10k_init(struct rvu * rvu,struct nix_hw * nix_hw) rvu_nix_block_cn10k_init() argument
577 rvu_apr_block_cn10k_init(struct rvu * rvu) rvu_apr_block_cn10k_init() argument
[all...]
H A Drvu_nix.c13 #include "rvu.h"
21 static void nix_free_tx_vtag_entries(struct rvu *rvu, u16 pcifunc);
22 static int rvu_nix_get_bpid(struct rvu *rvu, struct nix_bp_cfg_req *req,
24 static int nix_update_mce_rule(struct rvu *rvu, u16 pcifunc,
26 static int nix_setup_ipolicers(struct rvu *rvu,
28 static void nix_ipolicer_freemem(struct rvu *rv
91 rvu_get_next_nix_blkaddr(struct rvu * rvu,int blkaddr) rvu_get_next_nix_blkaddr() argument
108 is_nixlf_attached(struct rvu * rvu,u16 pcifunc) is_nixlf_attached() argument
119 rvu_get_nixlf_count(struct rvu * rvu) rvu_get_nixlf_count() argument
133 nix_get_nixlf(struct rvu * rvu,u16 pcifunc,int * nixlf,int * nix_blkaddr) nix_get_nixlf() argument
153 nix_get_struct_ptrs(struct rvu * rvu,u16 pcifunc,struct nix_hw ** nix_hw,int * blkaddr) nix_get_struct_ptrs() argument
206 struct rvu *rvu = hw->rvu; get_nix_hw() local
271 nix_rx_sync(struct rvu * rvu,int blkaddr) nix_rx_sync() argument
293 is_valid_txschq(struct rvu * rvu,int blkaddr,int lvl,u16 pcifunc,u16 schq) is_valid_txschq() argument
331 nix_interface_init(struct rvu * rvu,u16 pcifunc,int type,int nixlf,struct nix_lf_alloc_rsp * rsp,bool loop) nix_interface_init() argument
482 nix_interface_deinit(struct rvu * rvu,u16 pcifunc,u8 nixlf) nix_interface_deinit() argument
507 nix_setup_bpids(struct rvu * rvu,struct nix_hw * hw,int blkaddr) nix_setup_bpids() argument
545 rvu_nix_flr_free_bpids(struct rvu * rvu,u16 pcifunc) rvu_nix_flr_free_bpids() argument
581 nix_bp_disable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct msg_rsp * rsp,bool cpt_link) nix_bp_disable() argument
634 rvu_mbox_handler_nix_bp_disable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_bp_disable() argument
641 rvu_mbox_handler_nix_cpt_bp_disable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_cpt_bp_disable() argument
648 rvu_nix_get_bpid(struct rvu * rvu,struct nix_bp_cfg_req * req,int type,int chan_id) rvu_nix_get_bpid() argument
727 nix_bp_enable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct nix_bp_cfg_rsp * rsp,bool cpt_link) nix_bp_enable() argument
788 rvu_mbox_handler_nix_bp_enable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct nix_bp_cfg_rsp * rsp) rvu_mbox_handler_nix_bp_enable() argument
795 rvu_mbox_handler_nix_cpt_bp_enable(struct rvu * rvu,struct nix_bp_cfg_req * req,struct nix_bp_cfg_rsp * rsp) rvu_mbox_handler_nix_cpt_bp_enable() argument
802 nix_setup_lso_tso_l3(struct rvu * rvu,int blkaddr,u64 format,bool v4,u64 * fidx) nix_setup_lso_tso_l3() argument
831 nix_setup_lso_tso_l4(struct rvu * rvu,int blkaddr,u64 format,u64 * fidx) nix_setup_lso_tso_l4() argument
855 nix_setup_lso(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr) nix_setup_lso() argument
901 nix_ctx_free(struct rvu * rvu,struct rvu_pfvf * pfvf) nix_ctx_free() argument
930 nixlf_rss_ctx_init(struct rvu * rvu,int blkaddr,struct rvu_pfvf * pfvf,int nixlf,int rss_sz,int rss_grps,int hwctx_size,u64 way_mask,bool tag_lsb_as_adder) nixlf_rss_ctx_init() argument
966 nix_aq_enqueue_wait(struct rvu * rvu,struct rvu_block * block,struct nix_aq_inst_s * inst) nix_aq_enqueue_wait() argument
1017 nix_get_aq_req_smq(struct rvu * rvu,struct nix_aq_enq_req * req,u16 * smq,u16 * smq_mask) nix_get_aq_req_smq() argument
1038 rvu_nix_blk_aq_enq_inst(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_aq_enq_req * req,struct nix_aq_enq_rsp * rsp) rvu_nix_blk_aq_enq_inst() argument
1275 rvu_nix_verify_aq_ctx(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_aq_enq_req * req,u8 ctype) rvu_nix_verify_aq_ctx() argument
1332 rvu_nix_aq_enq_inst(struct rvu * rvu,struct nix_aq_enq_req * req,struct nix_aq_enq_rsp * rsp) rvu_nix_aq_enq_inst() argument
1382 nix_lf_hwctx_disable(struct rvu * rvu,struct hwctx_disable_req * req) nix_lf_hwctx_disable() argument
1436 nix_lf_hwctx_lockdown(struct rvu * rvu,struct nix_aq_enq_req * req) nix_lf_hwctx_lockdown() argument
1462 rvu_mbox_handler_nix_aq_enq(struct rvu * rvu,struct nix_aq_enq_req * req,struct nix_aq_enq_rsp * rsp) rvu_mbox_handler_nix_aq_enq() argument
1475 rvu_mbox_handler_nix_aq_enq(struct rvu * rvu,struct nix_aq_enq_req * req,struct nix_aq_enq_rsp * rsp) rvu_mbox_handler_nix_aq_enq() argument
1483 rvu_mbox_handler_nix_cn10k_aq_enq(struct rvu * rvu,struct nix_cn10k_aq_enq_req * req,struct nix_cn10k_aq_enq_rsp * rsp) rvu_mbox_handler_nix_cn10k_aq_enq() argument
1491 rvu_mbox_handler_nix_hwctx_disable(struct rvu * rvu,struct hwctx_disable_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_hwctx_disable() argument
1498 rvu_mbox_handler_nix_lf_alloc(struct rvu * rvu,struct nix_lf_alloc_req * req,struct nix_lf_alloc_rsp * rsp) rvu_mbox_handler_nix_lf_alloc() argument
1734 rvu_mbox_handler_nix_lf_free(struct rvu * rvu,struct nix_lf_free_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_lf_free() argument
1781 rvu_mbox_handler_nix_mark_format_cfg(struct rvu * rvu,struct nix_mark_format_cfg * req,struct nix_mark_format_cfg_rsp * rsp) rvu_mbox_handler_nix_mark_format_cfg() argument
1819 handle_txschq_shaper_update(struct rvu * rvu,int blkaddr,int nixlf,int lvl,u64 reg,u64 regval) handle_txschq_shaper_update() argument
1908 nix_reset_tx_schedule(struct rvu * rvu,int blkaddr,int lvl,int schq) nix_reset_tx_schedule() argument
1947 nix_reset_tx_shaping(struct rvu * rvu,int blkaddr,int nixlf,int lvl,int schq) nix_reset_tx_shaping() argument
1999 nix_reset_tx_linkcfg(struct rvu * rvu,int blkaddr,int lvl,int schq) nix_reset_tx_linkcfg() argument
2024 nix_clear_tx_xoff(struct rvu * rvu,int blkaddr,int lvl,int schq) nix_clear_tx_xoff() argument
2058 nix_get_tx_link(struct rvu * rvu,u16 pcifunc) nix_get_tx_link() argument
2075 nix_get_txschq_range(struct rvu * rvu,u16 pcifunc,int link,int * start,int * end) nix_get_txschq_range() argument
2095 nix_check_txschq_alloc_req(struct rvu * rvu,int lvl,u16 pcifunc,struct nix_hw * nix_hw,struct nix_txsch_alloc_req * req) nix_check_txschq_alloc_req() argument
2144 nix_txsch_alloc(struct rvu * rvu,struct nix_txsch * txsch,struct nix_txsch_alloc_rsp * rsp,int lvl,int start,int end) nix_txsch_alloc() argument
2228 rvu_mbox_handler_nix_txsch_alloc(struct rvu * rvu,struct nix_txsch_alloc_req * req,struct nix_txsch_alloc_rsp * rsp) rvu_mbox_handler_nix_txsch_alloc() argument
2321 nix_smq_flush_fill_ctx(struct rvu * rvu,int blkaddr,int smq,struct nix_smq_flush_ctx * smq_flush_ctx) nix_smq_flush_fill_ctx() argument
2370 nix_smq_flush_enadis_xoff(struct rvu * rvu,int blkaddr,struct nix_smq_flush_ctx * smq_flush_ctx,bool enable) nix_smq_flush_enadis_xoff() argument
2406 nix_smq_flush_enadis_rate(struct rvu * rvu,int blkaddr,struct nix_smq_flush_ctx * smq_flush_ctx,bool enable) nix_smq_flush_enadis_rate() argument
2432 nix_smq_flush(struct rvu * rvu,int blkaddr,int smq,u16 pcifunc,int nixlf) nix_smq_flush() argument
2528 nix_txschq_free(struct rvu * rvu,u16 pcifunc) nix_txschq_free() argument
2614 nix_txschq_free_one(struct rvu * rvu,struct nix_txsch_free_req * req) nix_txschq_free_one() argument
2682 rvu_mbox_handler_nix_txsch_free(struct rvu * rvu,struct nix_txsch_free_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_txsch_free() argument
2692 is_txschq_hierarchy_valid(struct rvu * rvu,u16 pcifunc,int blkaddr,int lvl,u64 reg,u64 regval) is_txschq_hierarchy_valid() argument
2771 nix_tl1_default_cfg(struct rvu * rvu,struct nix_hw * nix_hw,u16 pcifunc,int blkaddr) nix_tl1_default_cfg() argument
2804 nix_txschq_cfg_read(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr,struct nix_txschq_config * req,struct nix_txschq_config * rsp) nix_txschq_cfg_read() argument
2826 rvu_nix_tx_tl2_cfg(struct rvu * rvu,int blkaddr,u16 pcifunc,struct nix_txsch * txsch,bool enable) rvu_nix_tx_tl2_cfg() argument
2856 rvu_mbox_handler_nix_txschq_cfg(struct rvu * rvu,struct nix_txschq_config * req,struct nix_txschq_config * rsp) rvu_mbox_handler_nix_txschq_cfg() argument
2961 nix_rx_vtag_cfg(struct rvu * rvu,int nixlf,int blkaddr,struct nix_vtag_config * req) nix_rx_vtag_cfg() argument
2984 nix_tx_vtag_free(struct rvu * rvu,int blkaddr,u16 pcifunc,int index) nix_tx_vtag_free() argument
3008 nix_free_tx_vtag_entries(struct rvu * rvu,u16 pcifunc) nix_free_tx_vtag_entries() argument
3033 nix_tx_vtag_alloc(struct rvu * rvu,int blkaddr,u64 vtag,u8 size) nix_tx_vtag_alloc() argument
3066 nix_tx_vtag_decfg(struct rvu * rvu,int blkaddr,struct nix_vtag_config * req) nix_tx_vtag_decfg() argument
3101 nix_tx_vtag_cfg(struct rvu * rvu,int blkaddr,struct nix_vtag_config * req,struct nix_vtag_config_rsp * rsp) nix_tx_vtag_cfg() argument
3144 rvu_mbox_handler_nix_vtag_cfg(struct rvu * rvu,struct nix_vtag_config * req,struct nix_vtag_config_rsp * rsp) rvu_mbox_handler_nix_vtag_cfg() argument
3176 nix_blk_setup_mce(struct rvu * rvu,struct nix_hw * nix_hw,int mce,u8 op,u16 pcifunc,int next,int index,u8 mce_op,bool eol) nix_blk_setup_mce() argument
3228 nix_update_ingress_mce_list_hw(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_mcast_grp_elem * elem) nix_update_ingress_mce_list_hw() argument
3278 nix_update_egress_mce_list_hw(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_mcast_grp_elem * elem) nix_update_egress_mce_list_hw() argument
3325 nix_del_mce_list_entry(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_mcast_grp_elem * elem,struct nix_mcast_grp_update_req * req) nix_del_mce_list_entry() argument
3363 nix_add_mce_list_entry(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_mcast_grp_elem * elem,struct nix_mcast_grp_update_req * req) nix_add_mce_list_entry() argument
3450 nix_update_mce_list(struct rvu * rvu,u16 pcifunc,struct nix_mce_list * mce_list,int mce_idx,int mcam_index,bool add) nix_update_mce_list() argument
3515 nix_get_mce_list(struct rvu * rvu,u16 pcifunc,int type,struct nix_mce_list ** mce_list,int * mce_idx) nix_get_mce_list() argument
3547 nix_update_mce_rule(struct rvu * rvu,u16 pcifunc,int type,bool add) nix_update_mce_rule() argument
3598 nix_setup_mce_tables(struct rvu * rvu,struct nix_hw * nix_hw) nix_setup_mce_tables() argument
3669 nix_setup_mcast(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr) nix_setup_mcast() argument
3735 nix_setup_txvlan(struct rvu * rvu,struct nix_hw * nix_hw) nix_setup_txvlan() argument
3760 nix_setup_txschq(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr) nix_setup_txschq() argument
3823 rvu_nix_reserve_mark_format(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr,u32 cfg) rvu_nix_reserve_mark_format() argument
3841 nix_af_mark_format_setup(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr) nix_af_mark_format_setup() argument
3874 rvu_get_lbk_link_max_frs(struct rvu * rvu,u16 * max_mtu) rvu_get_lbk_link_max_frs() argument
3883 rvu_get_lmac_link_max_frs(struct rvu * rvu,u16 * max_mtu) rvu_get_lmac_link_max_frs() argument
3896 rvu_mbox_handler_nix_get_hw_info(struct rvu * rvu,struct msg_req * req,struct nix_hw_info * rsp) rvu_mbox_handler_nix_get_hw_info() argument
3939 rvu_mbox_handler_nix_stats_rst(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_stats_rst() argument
4309 reserve_flowkey_alg_idx(struct rvu * rvu,int blkaddr,u32 flow_cfg) reserve_flowkey_alg_idx() argument
4342 rvu_mbox_handler_nix_rss_flowkey_cfg(struct rvu * rvu,struct nix_rss_flowkey_cfg * req,struct nix_rss_flowkey_cfg_rsp * rsp) rvu_mbox_handler_nix_rss_flowkey_cfg() argument
4373 nix_rx_flowkey_alg_cfg(struct rvu * rvu,int blkaddr) nix_rx_flowkey_alg_cfg() argument
4442 rvu_mbox_handler_nix_set_mac_addr(struct rvu * rvu,struct nix_set_mac_addr * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_set_mac_addr() argument
4476 rvu_mbox_handler_nix_get_mac_addr(struct rvu * rvu,struct msg_req * req,struct nix_get_mac_addr_rsp * rsp) rvu_mbox_handler_nix_get_mac_addr() argument
4493 rvu_mbox_handler_nix_set_rx_mode(struct rvu * rvu,struct nix_rx_mode * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_set_rx_mode() argument
4567 nix_find_link_frs(struct rvu * rvu,struct nix_frs_cfg * req,u16 pcifunc) nix_find_link_frs() argument
4612 rvu_mbox_handler_nix_set_hw_frs(struct rvu * rvu,struct nix_frs_cfg * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_set_hw_frs() argument
4680 rvu_mbox_handler_nix_set_rx_cfg(struct rvu * rvu,struct nix_rx_cfg * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_set_rx_cfg() argument
4717 rvu_get_lbk_link_credits(struct rvu * rvu,u16 lbk_max_frs) rvu_get_lbk_link_credits() argument
4722 nix_link_config(struct rvu * rvu,int blkaddr,struct nix_hw * nix_hw) nix_link_config() argument
4810 nix_calibrate_x2p(struct rvu * rvu,int blkaddr) nix_calibrate_x2p() argument
4856 nix_aq_init(struct rvu * rvu,struct rvu_block * block) nix_aq_init() argument
4896 rvu_nix_setup_capabilities(struct rvu * rvu,int blkaddr) rvu_nix_setup_capabilities() argument
4921 rvu_nix_block_init(struct rvu * rvu,struct nix_hw * nix_hw) rvu_nix_block_init() argument
5105 rvu_nix_init(struct rvu * rvu) rvu_nix_init() argument
5132 rvu_nix_block_freemem(struct rvu * rvu,int blkaddr,struct rvu_block * block) rvu_nix_block_freemem() argument
5168 rvu_nix_freemem(struct rvu * rvu) rvu_nix_freemem() argument
5182 nix_mcast_update_action(struct rvu * rvu,struct nix_mcast_grp_elem * elem) nix_mcast_update_action() argument
5208 nix_mcast_update_mce_entry(struct rvu * rvu,u16 pcifunc,u8 is_active) nix_mcast_update_mce_entry() argument
5250 rvu_mbox_handler_nix_lf_start_rx(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_lf_start_rx() argument
5280 rvu_mbox_handler_nix_lf_stop_rx(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_lf_stop_rx() argument
5313 rvu_nix_lf_teardown(struct rvu * rvu,u16 pcifunc,int blkaddr,int nixlf) rvu_nix_lf_teardown() argument
5398 rvu_nix_lf_ptp_tx_cfg(struct rvu * rvu,u16 pcifunc,bool enable) rvu_nix_lf_ptp_tx_cfg() argument
5431 rvu_mbox_handler_nix_lf_ptp_tx_enable(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_lf_ptp_tx_enable() argument
5437 rvu_mbox_handler_nix_lf_ptp_tx_disable(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_lf_ptp_tx_disable() argument
5443 rvu_mbox_handler_nix_lso_format_cfg(struct rvu * rvu,struct nix_lso_format_cfg * req,struct nix_lso_format_cfg_rsp * rsp) rvu_mbox_handler_nix_lso_format_cfg() argument
5507 nix_inline_ipsec_cfg(struct rvu * rvu,struct nix_inline_ipsec_cfg * req,int blkaddr) nix_inline_ipsec_cfg() argument
5563 rvu_mbox_handler_nix_inline_ipsec_cfg(struct rvu * rvu,struct nix_inline_ipsec_cfg * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_inline_ipsec_cfg() argument
5577 rvu_mbox_handler_nix_read_inline_ipsec_cfg(struct rvu * rvu,struct msg_req * req,struct nix_inline_ipsec_cfg * rsp) rvu_mbox_handler_nix_read_inline_ipsec_cfg() argument
5601 rvu_mbox_handler_nix_inline_ipsec_lf_cfg(struct rvu * rvu,struct nix_inline_ipsec_lf_cfg * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_inline_ipsec_lf_cfg() argument
5655 nix_config_rx_pkt_policer_precolor(struct rvu * rvu,int blkaddr) nix_config_rx_pkt_policer_precolor() argument
5697 nix_init_policer_context(struct rvu * rvu,struct nix_hw * nix_hw,int layer,int prof_idx) nix_init_policer_context() argument
5718 nix_setup_ipolicers(struct rvu * rvu,struct nix_hw * nix_hw,int blkaddr) nix_setup_ipolicers() argument
5811 nix_ipolicer_freemem(struct rvu * rvu,struct nix_hw * nix_hw) nix_ipolicer_freemem() argument
5878 rvu_mbox_handler_nix_bandprof_alloc(struct rvu * rvu,struct nix_bandprof_alloc_req * req,struct nix_bandprof_alloc_rsp * rsp) rvu_mbox_handler_nix_bandprof_alloc() argument
5919 nix_free_all_bandprof(struct rvu * rvu,u16 pcifunc) nix_free_all_bandprof() argument
5957 rvu_mbox_handler_nix_bandprof_free(struct rvu * rvu,struct nix_bandprof_free_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_bandprof_free() argument
6007 nix_aq_context_read(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_cn10k_aq_enq_req * aq_req,struct nix_cn10k_aq_enq_rsp * aq_rsp,u16 pcifunc,u8 ctype,u32 qidx) nix_aq_context_read() argument
6023 nix_ipolicer_map_leaf_midprofs(struct rvu * rvu,struct nix_hw * nix_hw,struct nix_cn10k_aq_enq_req * aq_req,struct nix_cn10k_aq_enq_rsp * aq_rsp,u32 leaf_prof,u16 mid_prof) nix_ipolicer_map_leaf_midprofs() argument
6049 rvu_nix_setup_ratelimit_aggr(struct rvu * rvu,u16 pcifunc,u16 rq_idx,u16 match_id) rvu_nix_setup_ratelimit_aggr() argument
6219 nix_clear_ratelimit_aggr(struct rvu * rvu,struct nix_hw * nix_hw,u32 leaf_prof) nix_clear_ratelimit_aggr() argument
6255 rvu_mbox_handler_nix_bandprof_get_hwinfo(struct rvu * rvu,struct msg_req * req,struct nix_bandprof_get_hwinfo_rsp * rsp) rvu_mbox_handler_nix_bandprof_get_hwinfo() argument
6307 rvu_nix_mcast_get_mce_index(struct rvu * rvu,u16 pcifunc,u32 mcast_grp_idx) rvu_nix_mcast_get_mce_index() argument
6331 rvu_nix_mcast_flr_free_entries(struct rvu * rvu,u16 pcifunc) rvu_nix_mcast_flr_free_entries() argument
6386 rvu_nix_mcast_update_mcam_entry(struct rvu * rvu,u16 pcifunc,u32 mcast_grp_idx,u16 mcam_index) rvu_nix_mcast_update_mcam_entry() argument
6411 rvu_mbox_handler_nix_mcast_grp_create(struct rvu * rvu,struct nix_mcast_grp_create_req * req,struct nix_mcast_grp_create_rsp * rsp) rvu_mbox_handler_nix_mcast_grp_create() argument
6445 rvu_mbox_handler_nix_mcast_grp_destroy(struct rvu * rvu,struct nix_mcast_grp_destroy_req * req,struct msg_rsp * rsp) rvu_mbox_handler_nix_mcast_grp_destroy() argument
6509 rvu_mbox_handler_nix_mcast_grp_update(struct rvu * rvu,struct nix_mcast_grp_update_req * req,struct nix_mcast_grp_update_rsp * rsp) rvu_mbox_handler_nix_mcast_grp_update() argument
6650 rvu_block_bcast_xon(struct rvu * rvu,int blkaddr) rvu_block_bcast_xon() argument
[all...]
H A Dmcs_rvu_if.c19 *otx2_mbox_alloc_msg_ ## _fn_name(struct rvu *rvu, int devid) \
24 &rvu->afpf_wq_info.mbox_up, devid, sizeof(struct _req_type), \
36 void rvu_mcs_ptp_cfg(struct rvu *rvu, u8 rpm_id, u8 lmac_id, bool ena) in rvu_mcs_ptp_cfg() argument
42 if (!rvu->mcs_blk_cnt) in rvu_mcs_ptp_cfg()
51 if (rvu->mcs_blk_cnt > 1) { in rvu_mcs_ptp_cfg()
63 port = (rpm_id * rvu->hw->lmac_per_cgx) + lmac_id; in rvu_mcs_ptp_cfg()
72 int rvu_mbox_handler_mcs_set_lmac_mode(struct rvu *rvu, in rvu_mbox_handler_mcs_set_lmac_mode() argument
78 if (req->mcs_id >= rvu->mcs_blk_cnt) in rvu_mbox_handler_mcs_set_lmac_mode()
93 struct rvu *rvu = mcs->rvu; in mcs_add_intr_wq_entry() local
98 pfvf = &mcs->vf[rvu_get_hwvf(rvu, pcifunc)]; in mcs_add_intr_wq_entry()
[all …]
H A Drvu_switch.c11 void rvu_switch_enable_lbk_link(struct rvu *rvu, u16 pcifunc, bool enable) in rvu_switch_enable_lbk_link() argument
13 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_enable_lbk_link()
16 nix_hw = get_nix_hw(rvu->hw, pfvf->nix_blkaddr); in rvu_switch_enable_lbk_link()
18 rvu_nix_tx_tl2_cfg(rvu, pfvf->nix_blkaddr, pcifunc, in rvu_switch_enable_lbk_link()
22 static int rvu_switch_install_rx_rule(struct rvu *rvu, u16 pcifunc, in rvu_switch_install_rx_rule() argument
29 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_rx_rule()
48 return rvu_mbox_handler_npc_install_flow(rvu, &req, &rsp); in rvu_switch_install_rx_rule()
51 static int rvu_switch_install_tx_rule(struct rvu *rvu, u16 pcifunc, u16 entry) in rvu_switch_install_tx_rule() argument
58 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_tx_rule()
66 rvu_switch_enable_lbk_link(rvu, pcifunc, true); in rvu_switch_install_tx_rule()
[all …]
H A Drvu_npc_fs.c11 #include "rvu.h"
62 bool npc_is_feature_supported(struct rvu *rvu, u64 features, u8 intf) in npc_is_feature_supported() argument
64 struct npc_mcam *mcam = &rvu->hw->mcam; in npc_is_feature_supported()
86 static void npc_set_kw_masks(struct rvu *rvu, struct npc_mcam *mcam, u8 type, in npc_set_kw_masks() argument
93 if (is_cn20k(rvu->pdev)) { in npc_set_kw_masks()
148 static bool npc_is_field_present(struct rvu *rvu, enum key_fields type, u8 intf) in npc_is_field_present() argument
150 struct npc_mcam *mcam = &rvu in npc_is_field_present()
167 npc_set_layer_mdata(struct rvu * rvu,struct npc_mcam * mcam,enum key_fields type,u64 cfg,u8 lid,u8 lt,u8 intf) npc_set_layer_mdata() argument
212 npc_check_overlap(struct rvu * rvu,int blkaddr,enum key_fields type,u8 start_lid,u8 intf) npc_check_overlap() argument
300 npc_check_field(struct rvu * rvu,int blkaddr,enum key_fields type,u8 intf) npc_check_field() argument
309 npc_scan_exact_result(struct rvu * rvu,struct npc_mcam * mcam,u8 bit_number,u8 key_nibble,u8 intf) npc_scan_exact_result() argument
329 npc_cn20k_scan_parse_result(struct rvu * rvu,struct npc_mcam * mcam,u8 bit_number,u8 key_nibble,u8 intf) npc_cn20k_scan_parse_result() argument
381 npc_scan_parse_result(struct rvu * rvu,struct npc_mcam * mcam,u8 bit_number,u8 key_nibble,u8 intf) npc_scan_parse_result() argument
441 npc_handle_multi_layer_fields(struct rvu * rvu,int blkaddr,u8 intf) npc_handle_multi_layer_fields() argument
577 npc_scan_ldata(struct rvu * rvu,int blkaddr,u8 lid,u8 lt,u64 cfg,u8 intf) npc_scan_ldata() argument
683 npc_set_features(struct rvu * rvu,int blkaddr,u8 intf) npc_set_features() argument
756 npc_scan_kex(struct rvu * rvu,int blkaddr,u8 intf) npc_scan_kex() argument
833 npc_scan_verify_kex(struct rvu * rvu,int blkaddr) npc_scan_verify_kex() argument
864 npc_flow_steering_init(struct rvu * rvu,int blkaddr) npc_flow_steering_init() argument
873 npc_check_unsupported_flows(struct rvu * rvu,u64 features,u8 intf) npc_check_unsupported_flows() argument
905 npc_update_entry(struct rvu * rvu,enum key_fields type,struct mcam_entry_mdata * mdata,u64 val_lo,u64 val_hi,u64 mask_lo,u64 mask_hi,u8 intf) npc_update_entry() argument
998 npc_update_ipv6_flow(struct rvu * rvu,struct mcam_entry_mdata * mdata,u64 features,struct flow_msg * pkt,struct flow_msg * mask,struct rvu_npc_mcam_rule * output,u8 intf) npc_update_ipv6_flow() argument
1046 npc_update_vlan_features(struct rvu * rvu,struct mcam_entry_mdata * mdata,u64 features,u8 intf) npc_update_vlan_features() argument
1069 npc_update_flow(struct rvu * rvu,struct mcam_entry_mdata * mdata,u64 features,struct flow_msg * pkt,struct flow_msg * mask,struct rvu_npc_mcam_rule * output,u8 intf,int blkaddr) npc_update_flow() argument
1247 rvu_mcam_remove_counter_from_rule(struct rvu * rvu,u16 pcifunc,struct rvu_npc_mcam_rule * rule) rvu_mcam_remove_counter_from_rule() argument
1263 rvu_mcam_add_counter_to_rule(struct rvu * rvu,u16 pcifunc,struct rvu_npc_mcam_rule * rule,struct npc_install_flow_rsp * rsp) rvu_mcam_add_counter_to_rule() argument
1276 npc_mcast_update_action_index(struct rvu * rvu,struct npc_install_flow_req * req,u64 op,void * action) npc_mcast_update_action_index() argument
1303 npc_populate_mcam_mdata(struct rvu * rvu,struct mcam_entry_mdata * mdata,struct cn20k_mcam_entry * cn20k_entry,struct mcam_entry * entry) npc_populate_mcam_mdata() argument
1323 npc_update_rx_entry(struct rvu * rvu,struct rvu_pfvf * pfvf,struct mcam_entry_mdata * mdata,struct npc_install_flow_req * req,u16 target,bool pf_set_vfs_mac) npc_update_rx_entry() argument
1384 npc_update_tx_entry(struct rvu * rvu,struct rvu_pfvf * pfvf,struct mcam_entry_mdata * mdata,struct npc_install_flow_req * req,u16 target) npc_update_tx_entry() argument
1428 npc_install_flow(struct rvu * rvu,int blkaddr,u16 target,int nixlf,struct rvu_pfvf * pfvf,struct npc_install_flow_req * req,struct npc_install_flow_rsp * rsp,bool enable,bool pf_set_vfs_mac) npc_install_flow() argument
1650 rvu_npc_free_entry_for_flow_install(struct rvu * rvu,u16 pcifunc,bool free_entry,int mcam_idx) rvu_npc_free_entry_for_flow_install() argument
1667 rvu_npc_alloc_entry_for_flow_install(struct rvu * rvu,struct npc_install_flow_req * fl_req,u16 * mcam_idx,u8 * kw_type,bool * allocated) rvu_npc_alloc_entry_for_flow_install() argument
1722 rvu_mbox_handler_npc_install_flow(struct rvu * rvu,struct npc_install_flow_req * req,struct npc_install_flow_rsp * rsp) rvu_mbox_handler_npc_install_flow() argument
1898 npc_delete_flow(struct rvu * rvu,struct rvu_npc_mcam_rule * rule,u16 pcifunc) npc_delete_flow() argument
1919 rvu_mbox_handler_npc_delete_flow(struct rvu * rvu,struct npc_delete_flow_req * req,struct npc_delete_flow_rsp * rsp) rvu_mbox_handler_npc_delete_flow() argument
1971 npc_update_dmac_value(struct rvu * rvu,int npcblkaddr,struct rvu_npc_mcam_rule * rule,struct rvu_pfvf * pfvf) npc_update_dmac_value() argument
2025 npc_mcam_enable_flows(struct rvu * rvu,u16 target) npc_mcam_enable_flows() argument
2085 npc_mcam_disable_flows(struct rvu * rvu,u16 target) npc_mcam_disable_flows() argument
2107 npc_install_mcam_drop_rule(struct rvu * rvu,int mcam_idx,u16 * counter_idx,u64 chan_val,u64 chan_mask,u64 exact_val,u64 exact_mask,u64 bcast_mcast_val,u64 bcast_mcast_mask) npc_install_mcam_drop_rule() argument
2229 rvu_mbox_handler_npc_get_field_status(struct rvu * rvu,struct npc_get_field_status_req * req,struct npc_get_field_status_rsp * rsp) rvu_mbox_handler_npc_get_field_status() argument
[all...]
H A Drvu_sdp.c20 bool is_sdp_pfvf(struct rvu *rvu, u16 pcifunc) in is_sdp_pfvf() argument
22 u16 pf = rvu_get_pf(rvu->pdev, pcifunc); in is_sdp_pfvf()
37 bool is_sdp_pf(struct rvu *rvu, u16 pcifunc) in is_sdp_pf() argument
39 return (is_sdp_pfvf(rvu, pcifunc) && in is_sdp_pf()
44 bool is_sdp_vf(struct rvu *rvu, u16 pcifunc) in is_sdp_vf() argument
47 return (rvu->vf_devid == RVU_SDP_VF_DEVID); in is_sdp_vf()
49 return (is_sdp_pfvf(rvu, pcifunc) && in is_sdp_vf()
53 int rvu_sdp_init(struct rvu *rvu) in rvu_sdp_init() argument
59 if (rvu->fwdata && rvu->fwdata->channel_data.valid) { in rvu_sdp_init()
61 pfvf = &rvu->pf[sdp_pf_num[0]]; in rvu_sdp_init()
[all …]
H A Dptp.c99 static bool is_tstmp_atomic_update_supported(struct rvu *rvu) in is_tstmp_atomic_update_supported() argument
101 struct ptp *ptp = rvu->ptp; in is_tstmp_atomic_update_supported()
103 if (is_rvu_otx2(rvu)) in is_tstmp_atomic_update_supported()
367 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts) in ptp_start() argument
369 struct ptp *ptp = rvu->ptp; in ptp_start()
388 if (is_tstmp_atomic_update_supported(rvu)) { in ptp_start()
619 int rvu_mbox_handler_ptp_op(struct rvu *rvu, struct ptp_req *req, in rvu_mbox_handler_ptp_op() argument
631 if (!rvu->ptp) in rvu_mbox_handler_ptp_op()
636 err = ptp_adjfine(rvu->ptp, req->scaled_ppm); in rvu_mbox_handler_ptp_op()
639 err = ptp_get_clock(rvu->ptp, &rsp->clk); in rvu_mbox_handler_ptp_op()
[all …]
H A Drvu_devlink.h72 struct rvu *rvu; member
79 int rvu_register_dl(struct rvu *rvu);
80 void rvu_unregister_dl(struct rvu *rvu);
H A Dptp.h26 struct rvu;
29 void ptp_start(struct rvu *rvu, u64 sclk, u32 ext_clk_freq, u32 extts);
H A Drvu_reg.h643 if (rvu->hw->npc_ext_set) \
651 if (rvu->hw->npc_ext_set) \
659 if (rvu->hw->npc_ext_set) \
667 if (rvu->hw->npc_ext_set) \
675 if (rvu->hw->npc_ext_set) \
683 if (rvu->hw->npc_ext_set) \
691 if (rvu->hw->npc_ext_set) \
699 if (rvu->hw->npc_ext_set) \
H A Dmcs.h150 void *rvu; member
/linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/
H A Dnpc.c10 #include "rvu.h"
293 static int npc_vidx_maps_del_entry(struct rvu *rvu, u16 vidx, u16 *old_midx) in npc_cn20k_idx2vidx()
299 dev_err(rvu->dev, in npc_vidx_maps_del_entry()
309 dev_err(rvu->dev, in npc_vidx_maps_del_entry()
317 dev_err(rvu->dev, in npc_vidx_maps_del_entry()
329 static int npc_vidx_maps_modify(struct rvu *rvu, u16 vidx, u16 new_midx) in npc_vidx_maps_del_entry()
336 dev_err(rvu->dev, in npc_vidx_maps_modify()
344 dev_err(rvu in npc_vidx_maps_modify()
295 npc_vidx_maps_del_entry(struct rvu * rvu,u16 vidx,u16 * old_midx) npc_vidx_maps_del_entry() argument
331 npc_vidx_maps_modify(struct rvu * rvu,u16 vidx,u16 new_midx) npc_vidx_maps_modify() argument
408 npc_vidx_maps_add_entry(struct rvu * rvu,u16 mcam_idx,int pcifunc,u16 * vidx) npc_vidx_maps_add_entry() argument
448 npc_config_kpmcam(struct rvu * rvu,int blkaddr,const struct npc_kpu_profile_cam * kpucam,int kpm,int entry) npc_config_kpmcam() argument
472 npc_config_kpmaction(struct rvu * rvu,int blkaddr,const struct npc_kpu_profile_action * kpuaction,int kpm,int entry,bool pkind) npc_config_kpmaction() argument
520 npc_program_single_kpm_profile(struct rvu * rvu,int blkaddr,int kpm,int start_entry,const struct npc_kpu_profile * profile) npc_program_single_kpm_profile() argument
553 npc_enable_kpm_entry(struct rvu * rvu,int blkaddr,int kpm,int num_entries) npc_enable_kpm_entry() argument
611 npc_program_kpm_profile(struct rvu * rvu,int blkaddr,int num_kpms) npc_program_kpm_profile() argument
635 npc_cn20k_parser_profile_init(struct rvu * rvu,int blkaddr) npc_cn20k_parser_profile_init() argument
681 npc_program_mkex_rx(struct rvu * rvu,int blkaddr,struct npc_mcam_kex_extr * mkex_extr,u8 intf) npc_program_mkex_rx() argument
710 npc_program_mkex_tx(struct rvu * rvu,int blkaddr,struct npc_mcam_kex_extr * mkex_extr,u8 intf) npc_program_mkex_tx() argument
739 npc_program_mkex_profile(struct rvu * rvu,int blkaddr,struct npc_mcam_kex_extr * mkex_extr) npc_program_mkex_profile() argument
754 npc_cn20k_load_mkex_profile(struct rvu * rvu,int blkaddr,const char * mkex_profile) npc_cn20k_load_mkex_profile() argument
802 npc_cn20k_enable_mcam_entry(struct rvu * rvu,int blkaddr,int index,bool enable) npc_cn20k_enable_mcam_entry() argument
849 npc_clear_x2_entry(struct rvu * rvu,int blkaddr,int bank,int index) npc_clear_x2_entry() argument
884 npc_cn20k_clear_mcam_entry(struct rvu * rvu,int blkaddr,int mcam_idx) npc_cn20k_clear_mcam_entry() argument
955 npc_cn20k_config_kw_x2(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,u8 intf,struct cn20k_mcam_entry * entry,int bank,u8 kw_type,int kw,u8 req_kw_type) npc_cn20k_config_kw_x2() argument
1037 npc_cn20k_config_kw_x4(struct rvu * rvu,struct npc_mcam * mcam,int blkaddr,int index,u8 intf,struct cn20k_mcam_entry * entry,u8 kw_type,u8 req_kw_type) npc_cn20k_config_kw_x4() argument
1051 npc_cn20k_config_mcam_entry(struct rvu * rvu,int blkaddr,int index,u8 intf,struct cn20k_mcam_entry * entry,bool enable,u8 hw_prio,u8 req_kw_type) npc_cn20k_config_mcam_entry() argument
1149 npc_cn20k_copy_mcam_entry(struct rvu * rvu,int blkaddr,u16 src,u16 dest) npc_cn20k_copy_mcam_entry() argument
1216 npc_cn20k_read_mcam_entry(struct rvu * rvu,int blkaddr,u16 index,struct cn20k_mcam_entry * entry,u8 * intf,u8 * ena,u8 * hw_prio) npc_cn20k_read_mcam_entry() argument
1343 rvu_mbox_handler_npc_cn20k_mcam_write_entry(struct rvu * rvu,struct npc_cn20k_mcam_write_entry_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_cn20k_mcam_write_entry() argument
1387 rvu_mbox_handler_npc_cn20k_mcam_read_entry(struct rvu * rvu,struct npc_mcam_read_entry_req * req,struct npc_cn20k_mcam_read_entry_rsp * rsp) rvu_mbox_handler_npc_cn20k_mcam_read_entry() argument
1414 rvu_mbox_handler_npc_cn20k_mcam_alloc_and_write_entry(struct rvu * rvu,struct npc_cn20k_mcam_alloc_and_write_entry_req * req,struct npc_mcam_alloc_and_write_entry_rsp * rsp) rvu_mbox_handler_npc_cn20k_mcam_alloc_and_write_entry() argument
1482 rvu_npc_get_base_steer_rule_type(struct rvu * rvu,u16 pcifunc) rvu_npc_get_base_steer_rule_type() argument
1490 rvu_mbox_handler_npc_cn20k_read_base_steer_rule(struct rvu * rvu,struct msg_req * req,struct npc_cn20k_mcam_read_base_rule_rsp * rsp) rvu_mbox_handler_npc_cn20k_read_base_steer_rule() argument
1575 npc_cn20k_update_action_entries_n_flags(struct rvu * rvu,struct npc_kpu_profile_adapter * pfl) npc_cn20k_update_action_entries_n_flags() argument
1624 npc_cn20k_apply_custom_kpu(struct rvu * rvu,struct npc_kpu_profile_adapter * profile) npc_cn20k_apply_custom_kpu() argument
1719 npc_mcam_idx_2_key_type(struct rvu * rvu,u16 mcam_idx,u8 * key_type) npc_mcam_idx_2_key_type() argument
1753 npc_subbank_idx_2_mcam_idx(struct rvu * rvu,struct npc_subbank * sb,u16 sub_off,u16 * mcam_idx) npc_subbank_idx_2_mcam_idx() argument
1792 npc_mcam_idx_2_subbank_idx(struct rvu * rvu,u16 mcam_idx,struct npc_subbank ** sb,int * sb_off) npc_mcam_idx_2_subbank_idx() argument
1834 __npc_subbank_contig_alloc(struct rvu * rvu,struct npc_subbank * sb,int key_type,int sidx,int eidx,int prio,int count,int t,int b,unsigned long * bmap,u16 * save) __npc_subbank_contig_alloc() argument
1901 __npc_subbank_non_contig_alloc(struct rvu * rvu,struct npc_subbank * sb,int key_type,int sidx,int eidx,int prio,int t,int b,unsigned long * bmap,int count,u16 * save,bool max_alloc,int * alloc_cnt) __npc_subbank_non_contig_alloc() argument
1970 __npc_subbank_sboff_2_off(struct rvu * rvu,struct npc_subbank * sb,int sb_off,unsigned long ** bmap,int * off) __npc_subbank_sboff_2_off() argument
1983 __npc_subbank_mark_slot(struct rvu * rvu,struct npc_subbank * sb,int sb_off,bool set) __npc_subbank_mark_slot() argument
2018 __npc_subbank_mark_free(struct rvu * rvu,struct npc_subbank * sb) __npc_subbank_mark_free() argument
2059 __npc_subbank_mark_used(struct rvu * rvu,struct npc_subbank * sb,int key_type) __npc_subbank_mark_used() argument
2090 __npc_subbank_free(struct rvu * rvu,struct npc_subbank * sb,u16 sb_off) __npc_subbank_free() argument
2124 npc_subbank_free(struct rvu * rvu,struct npc_subbank * sb,u16 sb_off) npc_subbank_free() argument
2135 __npc_subbank_alloc(struct rvu * rvu,struct npc_subbank * sb,int key_type,int ref,int limit,int prio,bool contig,int count,u16 * mcam_idx,int idx_sz,bool max_alloc,int * alloc_cnt) __npc_subbank_alloc() argument
2367 npc_subbank_alloc(struct rvu * rvu,struct npc_subbank * sb,int key_type,int ref,int limit,int prio,bool contig,int count,u16 * mcam_idx,int idx_sz,bool max_alloc,int * alloc_cnt) npc_subbank_alloc() argument
2384 npc_del_from_pf_maps(struct rvu * rvu,u16 mcam_idx) npc_del_from_pf_maps() argument
2419 npc_add_to_pf_maps(struct rvu * rvu,u16 mcam_idx,int pcifunc) npc_add_to_pf_maps() argument
2488 npc_subbank_iter_down(struct rvu * rvu,int ref,int limit,int * cur_ref,int * cur_limit,bool * start,bool * stop) npc_subbank_iter_down() argument
2522 npc_subbank_iter_up(struct rvu * rvu,int ref,int limit,int * cur_ref,int * cur_limit,bool * start,bool * stop) npc_subbank_iter_up() argument
2564 npc_subbank_iter(struct rvu * rvu,int key_type,int ref,int limit,int prio,int * cur_ref,int * cur_limit,bool * start,bool * stop) npc_subbank_iter() argument
2596 npc_idx_free(struct rvu * rvu,u16 * mcam_idx,int count,bool maps_del) npc_idx_free() argument
2668 npc_multi_subbank_ref_alloc(struct rvu * rvu,int key_type,int ref,int limit,int prio,bool contig,int count,u16 * mcam_idx) npc_multi_subbank_ref_alloc() argument
2815 npc_subbank_free_cnt(struct rvu * rvu,struct npc_subbank * sb,int key_type) npc_subbank_free_cnt() argument
2832 npc_subbank_ref_alloc(struct rvu * rvu,int key_type,int ref,int limit,int prio,bool contig,int count,u16 * mcam_idx) npc_subbank_ref_alloc() argument
2950 npc_subbank_restrict_usage(struct rvu * rvu,int index) npc_subbank_restrict_usage() argument
2965 npc_subbank_noref_alloc(struct rvu * rvu,int key_type,bool contig,int count,u16 * mcam_idx) npc_subbank_noref_alloc() argument
3169 npc_cn20k_idx_free(struct rvu * rvu,u16 * mcam_idx,int count) npc_cn20k_idx_free() argument
3174 npc_cn20k_ref_idx_alloc(struct rvu * rvu,int pcifunc,int key_type,int prio,u16 * mcam_idx,int ref,int limit,bool contig,int count,bool virt) npc_cn20k_ref_idx_alloc() argument
3297 npc_cn20k_subbank_calc_free(struct rvu * rvu,int * x2_free,int * x4_free,int * sb_free) npc_cn20k_subbank_calc_free() argument
3332 rvu_mbox_handler_npc_cn20k_get_fcnt(struct rvu * rvu,struct msg_req * req,struct npc_cn20k_get_fcnt_rsp * rsp) rvu_mbox_handler_npc_cn20k_get_fcnt() argument
3342 rvu_mbox_handler_npc_cn20k_get_kex_cfg(struct rvu * rvu,struct msg_req * req,struct npc_cn20k_get_kex_cfg_rsp * rsp) rvu_mbox_handler_npc_cn20k_get_kex_cfg() argument
3403 npc_subbank_init(struct rvu * rvu,struct npc_subbank * sb,int idx) npc_subbank_init() argument
3427 npc_pcifunc_map_create(struct rvu * rvu) npc_pcifunc_map_create() argument
3534 npc_defrag_alloc_free_slots(struct rvu * rvu,struct npc_defrag_node * f,int cnt,u16 * save) npc_defrag_alloc_free_slots() argument
3599 npc_defrag_add_2_show_list(struct rvu * rvu,u16 old_midx,u16 new_midx,u16 vidx) npc_defrag_add_2_show_list() argument
3621 npc_defrag_move_vdx_to_free(struct rvu * rvu,struct npc_defrag_node * f,struct npc_defrag_node * v,int cnt,u16 * save) npc_defrag_move_vdx_to_free() argument
3774 npc_defrag_process(struct rvu * rvu,struct list_head * lh) npc_defrag_process() argument
3906 npc_cn20k_defrag(struct rvu * rvu) npc_cn20k_defrag() argument
4016 rvu_mbox_handler_npc_defrag(struct rvu * rvu,struct msg_req * req,struct msg_rsp * rsp) rvu_mbox_handler_npc_defrag() argument
4022 npc_cn20k_dft_rules_idx_get(struct rvu * rvu,u16 pcifunc,u16 * bcast,u16 * mcast,u16 * promisc,u16 * ucast) npc_cn20k_dft_rules_idx_get() argument
4101 rvu_mbox_handler_npc_get_pfl_info(struct rvu * rvu,struct msg_req * req,struct npc_get_pfl_info_rsp * rsp) rvu_mbox_handler_npc_get_pfl_info() argument
4114 rvu_mbox_handler_npc_get_num_kws(struct rvu * rvu,struct npc_get_num_kws_req * req,struct npc_get_num_kws_rsp * rsp) rvu_mbox_handler_npc_get_num_kws() argument
4159 rvu_mbox_handler_npc_get_dft_rl_idxs(struct rvu * rvu,struct msg_req * req,struct npc_get_dft_rl_idxs_rsp * rsp) rvu_mbox_handler_npc_get_dft_rl_idxs() argument
4185 npc_is_cgx_or_lbk(struct rvu * rvu,u16 pcifunc) npc_is_cgx_or_lbk() argument
4191 npc_cn20k_dft_rules_free(struct rvu * rvu,u16 pcifunc) npc_cn20k_dft_rules_free() argument
4294 npc_cn20k_dft_rules_alloc(struct rvu * rvu,u16 pcifunc) npc_cn20k_dft_rules_alloc() argument
4479 npc_priv_init(struct rvu * rvu) npc_priv_init() argument
4587 npc_cn20k_deinit(struct rvu * rvu) npc_cn20k_deinit() argument
4610 npc_setup_mcam_section(struct rvu * rvu,int key_type) npc_setup_mcam_section() argument
4627 npc_cn20k_init(struct rvu * rvu) npc_cn20k_init() argument
[all...]
H A Dnpc.h29 rvu_write64(rvu, BLKADDR_NPC, \
33 rvu_read64(rvu, BLKADDR_NPC, NPC_AF_INTFX_KEX_CFG(intf))
36 rvu_read64(rvu, BLKADDR_NPC, \
40 rvu_write64(rvu, BLKADDR_NPC, \
44 rvu_read64(rvu, BLKADDR_NPC, \
299 struct rvu;
302 int npc_cn20k_init(struct rvu *rvu);
303 void npc_cn20k_deinit(struct rvu *rvu);
[all...]
H A Dapi.h20 int cn20k_rvu_mbox_init(struct rvu *rvu, int type, int num);
21 int cn20k_rvu_get_mbox_regions(struct rvu *rvu, void **mbox_addr,
23 void cn20k_free_mbox_memory(struct rvu *rvu);
24 int cn20k_register_afpf_mbox_intr(struct rvu *rvu);
25 int cn20k_register_afvf_mbox_intr(struct rvu *rvu, int pf_vec_start);
26 void cn20k_rvu_enable_mbox_intr(struct rvu *rvu);
27 void cn20k_rvu_unregister_interrupts(struct rvu *rvu);
30 void cn20k_rvu_enable_afvf_intr(struct rvu *rvu, int vfs);
31 void cn20k_rvu_disable_afvf_intr(struct rvu *rvu, int vfs);
H A Ddebugfs.c14 #include "rvu.h"
186 struct rvu *rvu;
192 rvu = s->private; in npc_vidx2idx_map_show()
193 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); in npc_vidx2idx_map_show()
203 if (npc_mcam_idx_2_key_type(rvu, mcam_idx, &key_type)) in npc_vidx2idx_map_show()
212 stats = rvu_read64(rvu, blkaddr, in npc_idx2vidx_map_show()
250 struct rvu *rvu; in npc_cn20k_debugfs_init()
256 rvu in npc_cn20k_debugfs_init()
153 struct rvu *rvu; npc_mcam_default_show() local
249 npc_cn20k_debugfs_init(struct rvu * rvu) npc_cn20k_debugfs_init() argument
271 npc_cn20k_debugfs_deinit(struct rvu * rvu) npc_cn20k_debugfs_deinit() argument
[all...]