/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | rvu_cgx.c | 81 void *rvu_cgx_pdata(u8 cgx_id, struct rvu *rvu) in rvu_cgx_pdata() argument 90 void *rvu_first_cgx_pdata(struct rvu *rvu) in rvu_first_cgx_pdata() argument 118 static int rvu_map_cgx_lmac_pf(struct rvu *rvu) in rvu_map_cgx_lmac_pf() argument 147 rvu->cgxlmac2pf_map = devm_kzalloc(rvu->dev, in rvu_map_cgx_lmac_pf() 209 struct rvu *rvu = data; in cgx_lmac_postevent() local 263 struct rvu *rvu = container_of(work, struct rvu, cgx_evh_work); in cgx_evhandler_task() local 324 static void rvu_cgx_wq_destroy(struct rvu *rvu) in rvu_cgx_wq_destroy() argument 332 int rvu_cgx_init(struct rvu *rvu) in rvu_cgx_init() argument 346 rvu->cgx_idmap = devm_kzalloc(rvu->dev, rvu->cgx_cnt_max * in rvu_cgx_init() 387 int rvu_cgx_exit(struct rvu *rvu) in rvu_cgx_exit() argument [all …]
|
A D | rvu.h | 53 struct rvu *rvu; member 78 struct rvu *rvu; member 104 struct rvu *rvu; member 312 struct rvu *rvu; member 369 struct rvu *rvu; member 681 int rvu_sdp_init(struct rvu *rvu); 710 int rvu_cgx_init(struct rvu *rvu); 711 int rvu_cgx_exit(struct rvu *rvu); 721 int rvu_npa_init(struct rvu *rvu); 729 int rvu_nix_init(struct rvu *rvu); [all …]
|
A D | rvu.c | 71 hw->rvu = rvu; in rvu_setup_hw_capabilities() 857 block->rvu = rvu; in rvu_setup_nix_hw_resource() 887 block->rvu = rvu; in rvu_setup_cpt_hw_resource() 945 block->rvu = rvu; in rvu_setup_hw_resources() 985 block->rvu = rvu; in rvu_setup_hw_resources() 1010 block->rvu = rvu; in rvu_setup_hw_resources() 1036 block->rvu = rvu; in rvu_setup_hw_resources() 2090 struct rvu *rvu = mwork->rvu; in __rvu_mbox_handler() local 2175 struct rvu *rvu = mwork->rvu; in __rvu_mbox_up_handler() local 2587 struct rvu *rvu = flrwork->rvu; in rvu_flr_handler() local [all …]
|
A D | rvu_cpt.c | 43 struct rvu *rvu = block->rvu; in rvu_cpt_af_flt_intr_handler() local 71 struct rvu *rvu = block->rvu; in rvu_cpt_af_rvu_intr_handler() local 85 struct rvu *rvu = block->rvu; in rvu_cpt_af_ras_intr_handler() local 100 struct rvu *rvu = block->rvu; in rvu_cpt_do_register_interrupt() local 117 struct rvu *rvu = block->rvu; in cpt_10k_unregister_interrupts() local 165 void rvu_cpt_unregister_interrupts(struct rvu *rvu) in rvu_cpt_unregister_interrupts() argument 173 struct rvu *rvu = block->rvu; in cpt_10k_register_interrupts() local 259 int rvu_cpt_register_interrupts(struct rvu *rvu) in rvu_cpt_register_interrupts() argument 270 static int get_cpt_pf_num(struct rvu *rvu) in get_cpt_pf_num() argument 327 int rvu_mbox_handler_cpt_lf_alloc(struct rvu *rvu, in rvu_mbox_handler_cpt_lf_alloc() argument [all …]
|
A D | rvu_nix.c | 21 static int nix_update_mce_rule(struct rvu *rvu, u16 pcifunc, 23 static int nix_setup_ipolicers(struct rvu *rvu, 98 bool is_nixlf_attached(struct rvu *rvu, u16 pcifunc) in is_nixlf_attached() argument 109 int rvu_get_nixlf_count(struct rvu *rvu) in rvu_get_nixlf_count() argument 143 int nix_get_struct_ptrs(struct rvu *rvu, u16 pcifunc, in nix_get_struct_ptrs() argument 181 struct rvu *rvu = hw->rvu; in get_nix_hw() local 234 static void nix_rx_sync(struct rvu *rvu, int blkaddr) in nix_rx_sync() argument 1252 int rvu_mbox_handler_nix_aq_enq(struct rvu *rvu, in rvu_mbox_handler_nix_aq_enq() argument 4399 int rvu_nix_init(struct rvu *rvu) in rvu_nix_init() argument 4414 nix_hw->rvu = rvu; in rvu_nix_init() [all …]
|
A D | rvu_devlink.c | 69 struct rvu *rvu; in rvu_nix_af_rvu_intr_handler() local 73 rvu = rvu_dl->rvu; in rvu_nix_af_rvu_intr_handler() 104 struct rvu *rvu; in rvu_nix_af_rvu_gen_handler() local 598 struct rvu *rvu = rvu_dl->rvu; in rvu_nix_register_reporters() local 659 struct rvu *rvu = rvu_dl->rvu; in rvu_nix_health_reporters_create() local 676 struct rvu *rvu = rvu_dl->rvu; in rvu_nix_health_reporters_destroy() local 1241 struct rvu *rvu = rvu_dl->rvu; in rvu_npa_register_reporters() local 1302 struct rvu *rvu = rvu_dl->rvu; in rvu_npa_health_reporters_create() local 1319 struct rvu *rvu = rvu_dl->rvu; in rvu_npa_health_reporters_destroy() local 1373 struct rvu *rvu = rvu_dl->rvu; in rvu_af_dl_dwrr_mtu_validate() local [all …]
|
A D | rvu_npc.c | 46 bool is_npc_interface_valid(struct rvu *rvu, u8 intf) in is_npc_interface_valid() argument 53 int rvu_npc_get_tx_nibble_cfg(struct rvu *rvu, u64 nibble_ena) in rvu_npc_get_tx_nibble_cfg() argument 63 static int npc_mcam_verify_pf_func(struct rvu *rvu, in npc_mcam_verify_pf_func() argument 99 int rvu_npc_get_pkind(struct rvu *rvu, u16 pf) in rvu_npc_get_pkind() argument 147 struct rvu *rvu = hw->rvu; in npc_get_ucast_mcam_index() local 1455 static int npc_apply_custom_kpu(struct rvu *rvu, in npc_apply_custom_kpu() argument 1567 rc = npc_load_kpu_prfl_img(rvu, rvu->kpu_prfl_addr, in npc_fwdb_detect_load_prfl_img() 1620 static void npc_load_kpu_profile(struct rvu *rvu) in npc_load_kpu_profile() argument 1662 if (rvu->kpu_fwdata || rvu->kpu_fwdata_sz) { in npc_load_kpu_profile() 1969 int rvu_npc_init(struct rvu *rvu) in rvu_npc_init() argument [all …]
|
A D | rvu_cn10k.c | 20 static int lmtst_map_table_ops(struct rvu *rvu, u32 index, u64 *val, in lmtst_map_table_ops() argument 53 static u32 rvu_get_lmtst_tbl_index(struct rvu *rvu, u16 pcifunc) in rvu_get_lmtst_tbl_index() argument 59 static int rvu_get_lmtaddr(struct rvu *rvu, u16 pcifunc, in rvu_get_lmtaddr() argument 107 dev_err(rvu->dev, in rvu_update_lmtaddr() 131 int rvu_mbox_handler_lmtst_tbl_setup(struct rvu *rvu, in rvu_mbox_handler_lmtst_tbl_setup() argument 237 void rvu_reset_lmt_map_tbl(struct rvu *rvu, u16 pcifunc) in rvu_reset_lmt_map_tbl() argument 279 int rvu_set_channels_base(struct rvu *rvu) in rvu_set_channels_base() argument 366 static void rvu_lbk_set_channels(struct rvu *rvu) in rvu_lbk_set_channels() argument 490 static void rvu_nix_set_channels(struct rvu *rvu) in rvu_nix_set_channels() argument 516 static void rvu_rpm_set_channels(struct rvu *rvu) in rvu_rpm_set_channels() argument [all …]
|
A D | rvu_npa.c | 15 static int npa_aq_enqueue_wait(struct rvu *rvu, struct rvu_block *block, in npa_aq_enqueue_wait() argument 52 int rvu_npa_aq_enq_inst(struct rvu *rvu, struct npa_aq_enq_req *req, in rvu_npa_aq_enq_inst() argument 272 int rvu_mbox_handler_npa_aq_enq(struct rvu *rvu, in rvu_mbox_handler_npa_aq_enq() argument 285 int rvu_mbox_handler_npa_aq_enq(struct rvu *rvu, in rvu_mbox_handler_npa_aq_enq() argument 293 int rvu_mbox_handler_npa_hwctx_disable(struct rvu *rvu, in rvu_mbox_handler_npa_hwctx_disable() argument 300 static void npa_ctx_free(struct rvu *rvu, struct rvu_pfvf *pfvf) in npa_ctx_free() argument 318 int rvu_mbox_handler_npa_lf_alloc(struct rvu *rvu, in rvu_mbox_handler_npa_lf_alloc() argument 458 static int npa_aq_init(struct rvu *rvu, struct rvu_block *block) in npa_aq_init() argument 505 int rvu_npa_init(struct rvu *rvu) in rvu_npa_init() argument 518 void rvu_npa_freemem(struct rvu *rvu) in rvu_npa_freemem() argument [all …]
|
A D | rvu_switch.c | 11 static int rvu_switch_install_rx_rule(struct rvu *rvu, u16 pcifunc, in rvu_switch_install_rx_rule() argument 70 static int rvu_switch_install_rules(struct rvu *rvu) in rvu_switch_install_rules() argument 121 dev_err(rvu->dev, in rvu_switch_install_rules() 130 dev_err(rvu->dev, in rvu_switch_install_rules() 143 void rvu_switch_enable(struct rvu *rvu) in rvu_switch_enable() argument 154 alloc_req.count = rvu->cgx_mapped_pfs + rvu->cgx_mapped_vfs; in rvu_switch_enable() 158 dev_err(rvu->dev, in rvu_switch_enable() 164 dev_err(rvu->dev, in rvu_switch_enable() 196 void rvu_switch_disable(struct rvu *rvu) in rvu_switch_disable() argument 217 dev_err(rvu->dev, in rvu_switch_disable() [all …]
|
A D | rvu_debugfs.c | 605 struct rvu *rvu; in rvu_dbg_qsize_display() local 1258 struct rvu *rvu = nix_hw->rvu; in print_nix_sq_ctx() local 1405 struct rvu *rvu = nix_hw->rvu; in print_nix_rq_ctx() local 1506 struct rvu *rvu = nix_hw->rvu; in rvu_dbg_nix_queue_ctx_display() local 1659 struct rvu *rvu = nix_hw->rvu; in rvu_dbg_nix_queue_ctx_write() local 1883 struct rvu *rvu = nix_hw->rvu; in rvu_dbg_nix_band_prof_ctx_display() local 2619 struct rvu *rvu = ctx->rvu; in cpt_eng_sts_display() local 2684 struct rvu *rvu = ctx->rvu; in rvu_dbg_cpt_engines_info_display() local 2718 struct rvu *rvu = ctx->rvu; in rvu_dbg_cpt_lfs_info_display() local 2750 struct rvu *rvu = ctx->rvu; in rvu_dbg_cpt_err_info_display() local [all …]
|
A D | rvu_npc_fs.c | 172 static bool npc_check_overlap(struct rvu *rvu, int blkaddr, in npc_check_overlap() argument 388 static void npc_scan_ldata(struct rvu *rvu, int blkaddr, u8 lid, in npc_scan_ldata() argument 453 static void npc_set_features(struct rvu *rvu, int blkaddr, u8 intf) in npc_set_features() argument 508 static int npc_scan_kex(struct rvu *rvu, int blkaddr, u8 intf) in npc_scan_kex() argument 545 static int npc_scan_verify_kex(struct rvu *rvu, int blkaddr) in npc_scan_verify_kex() argument 586 int npc_flow_steering_init(struct rvu *rvu, int blkaddr) in npc_flow_steering_init() argument 1154 int rvu_mbox_handler_npc_install_flow(struct rvu *rvu, in rvu_mbox_handler_npc_install_flow() argument 1275 int rvu_mbox_handler_npc_delete_flow(struct rvu *rvu, in rvu_mbox_handler_npc_delete_flow() argument 1318 static int npc_update_dmac_value(struct rvu *rvu, int npcblkaddr, in npc_update_dmac_value() argument 1349 void npc_mcam_enable_flows(struct rvu *rvu, u16 target) in npc_mcam_enable_flows() argument [all …]
|
A D | rvu_sdp.c | 49 int rvu_sdp_init(struct rvu *rvu) in rvu_sdp_init() argument 60 pfvf = &rvu->pf[sdp_pf_num[i]]; in rvu_sdp_init() 62 pfvf->sdp_info = devm_kzalloc(rvu->dev, in rvu_sdp_init() 68 dev_info(rvu->dev, "SDP PF number:%d\n", sdp_pf_num[i]); in rvu_sdp_init() 78 rvu_mbox_handler_set_sdp_chan_info(struct rvu *rvu, in rvu_mbox_handler_set_sdp_chan_info() argument 82 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_set_sdp_chan_info() 85 dev_info(rvu->dev, "AF: SDP%d max_vfs %d num_pf_rings %d pf_srn %d\n", in rvu_mbox_handler_set_sdp_chan_info() 92 rvu_mbox_handler_get_sdp_chan_info(struct rvu *rvu, struct msg_req *req, in rvu_mbox_handler_get_sdp_chan_info() argument 95 struct rvu_hwinfo *hw = rvu->hw; in rvu_mbox_handler_get_sdp_chan_info() 102 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_mbox_handler_get_sdp_chan_info() [all …]
|
A D | rvu_devlink.h | 72 struct rvu *rvu; member 79 int rvu_register_dl(struct rvu *rvu); 80 void rvu_unregister_dl(struct rvu *rvu);
|
A D | ptp.c | 278 int rvu_mbox_handler_ptp_op(struct rvu *rvu, struct ptp_req *req, in rvu_mbox_handler_ptp_op() argument 290 if (!rvu->ptp) in rvu_mbox_handler_ptp_op() 295 err = ptp_adjfine(rvu->ptp, req->scaled_ppm); in rvu_mbox_handler_ptp_op() 298 err = ptp_get_clock(rvu->ptp, &rsp->clk); in rvu_mbox_handler_ptp_op() 301 err = ptp_get_tstmp(rvu->ptp, &rsp->clk); in rvu_mbox_handler_ptp_op() 304 err = ptp_set_thresh(rvu->ptp, req->thresh); in rvu_mbox_handler_ptp_op()
|
A D | rvu_reg.h | 606 if (rvu->hw->npc_ext_set) \ 614 if (rvu->hw->npc_ext_set) \ 622 if (rvu->hw->npc_ext_set) \ 630 if (rvu->hw->npc_ext_set) \ 638 if (rvu->hw->npc_ext_set) \ 646 if (rvu->hw->npc_ext_set) \ 654 if (rvu->hw->npc_ext_set) \ 662 if (rvu->hw->npc_ext_set) \
|
A D | Makefile | 11 rvu_af-y := cgx.o rvu.o rvu_cgx.o rvu_npa.o rvu_nix.o \
|
A D | rvu_trace.h | 9 #define TRACE_SYSTEM rvu
|