Lines Matching refs:blkaddr

889 static bool rvu_dbg_is_valid_lf(struct rvu *rvu, int blkaddr, int lf,  in rvu_dbg_is_valid_lf()  argument
896 block = &hw->block[blkaddr]; in rvu_dbg_is_valid_lf()
954 int blkaddr; in rvu_dbg_qsize_display() local
973 blkaddr = BLKADDR_NPA; in rvu_dbg_qsize_display()
976 blkaddr = (!strcmp(current_dir->d_name.name, "nix1") ? in rvu_dbg_qsize_display()
980 if (!rvu_dbg_is_valid_lf(rvu, blkaddr, qsize_id, &pcifunc)) in rvu_dbg_qsize_display()
998 int blkaddr; in rvu_dbg_qsize_write() local
1026 blkaddr = BLKADDR_NPA; in rvu_dbg_qsize_write()
1029 blkaddr = (!strcmp(current_dir->d_name.name, "nix1") ? in rvu_dbg_qsize_write()
1033 if (!rvu_dbg_is_valid_lf(rvu, blkaddr, lf, &pcifunc)) { in rvu_dbg_qsize_write()
1480 int blkaddr = 0; in rvu_dbg_nix_ndc_rx_cache_display() local
1483 blkaddr = (nix_hw->blkaddr == BLKADDR_NIX1 ? in rvu_dbg_nix_ndc_rx_cache_display()
1485 ndc_idx = (nix_hw->blkaddr == BLKADDR_NIX1 ? NIX1_RX : NIX0_RX); in rvu_dbg_nix_ndc_rx_cache_display()
1487 return ndc_blk_cache_stats(filp, ndc_idx, blkaddr); in rvu_dbg_nix_ndc_rx_cache_display()
1495 int blkaddr = 0; in rvu_dbg_nix_ndc_tx_cache_display() local
1498 blkaddr = (nix_hw->blkaddr == BLKADDR_NIX1 ? in rvu_dbg_nix_ndc_tx_cache_display()
1500 ndc_idx = (nix_hw->blkaddr == BLKADDR_NIX1 ? NIX1_TX : NIX0_TX); in rvu_dbg_nix_ndc_tx_cache_display()
1502 return ndc_blk_cache_stats(filp, ndc_idx, blkaddr); in rvu_dbg_nix_ndc_tx_cache_display()
1520 int blkaddr = 0; in rvu_dbg_nix_ndc_rx_hits_miss_display() local
1522 blkaddr = (nix_hw->blkaddr == BLKADDR_NIX1 ? in rvu_dbg_nix_ndc_rx_hits_miss_display()
1525 return ndc_blk_hits_miss_stats(filp, ndc_idx, blkaddr); in rvu_dbg_nix_ndc_rx_hits_miss_display()
1535 int blkaddr = 0; in rvu_dbg_nix_ndc_tx_hits_miss_display() local
1537 blkaddr = (nix_hw->blkaddr == BLKADDR_NIX1 ? in rvu_dbg_nix_ndc_tx_hits_miss_display()
1540 return ndc_blk_hits_miss_stats(filp, ndc_idx, blkaddr); in rvu_dbg_nix_ndc_tx_hits_miss_display()
1893 if (!rvu_dbg_is_valid_lf(rvu, nix_hw->blkaddr, nixlf, &pcifunc)) in rvu_dbg_nix_queue_ctx_display()
1953 if (!rvu_dbg_is_valid_lf(rvu, nix_hw->blkaddr, nixlf, &pcifunc)) in write_nix_queue_ctx()
2321 static void rvu_dbg_nix_init(struct rvu *rvu, int blkaddr) in rvu_dbg_nix_init() argument
2325 if (!is_block_implemented(rvu->hw, blkaddr)) in rvu_dbg_nix_init()
2328 if (blkaddr == BLKADDR_NIX0) { in rvu_dbg_nix_init()
2638 u16 pcifunc, int blkaddr) in rvu_print_npc_mcam_info() argument
2644 rvu_npc_get_mcam_entry_alloc_info(rvu, pcifunc, blkaddr, in rvu_print_npc_mcam_info()
2646 rvu_npc_get_mcam_counter_alloc_info(rvu, pcifunc, blkaddr, in rvu_print_npc_mcam_info()
2672 int pf, vf, numvfs, blkaddr; in rvu_dbg_npc_mcam_info_display() local
2677 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); in rvu_dbg_npc_mcam_info_display()
2678 if (blkaddr < 0) in rvu_dbg_npc_mcam_info_display()
2686 cfg = rvu_read64(rvu, blkaddr, NPC_AF_INTFX_KEX_CFG(NIX_INTF_RX)); in rvu_dbg_npc_mcam_info_display()
2691 cfg = rvu_read64(rvu, blkaddr, NPC_AF_INTFX_KEX_CFG(NIX_INTF_TX)); in rvu_dbg_npc_mcam_info_display()
2720 rvu_print_npc_mcam_info(filp, pcifunc, blkaddr); in rvu_dbg_npc_mcam_info_display()
2726 rvu_print_npc_mcam_info(filp, pcifunc, blkaddr); in rvu_dbg_npc_mcam_info_display()
2741 int blkaddr; in rvu_dbg_npc_rx_miss_stats_display() local
2743 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); in rvu_dbg_npc_rx_miss_stats_display()
2744 if (blkaddr < 0) in rvu_dbg_npc_rx_miss_stats_display()
2751 rvu_read64(rvu, blkaddr, in rvu_dbg_npc_rx_miss_stats_display()
2919 int blkaddr; in rvu_dbg_npc_mcam_show_rules() local
2923 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); in rvu_dbg_npc_mcam_show_rules()
2924 if (blkaddr < 0) in rvu_dbg_npc_mcam_show_rules()
2963 enabled = is_mcam_entry_enabled(rvu, mcam, blkaddr, iter->entry); in rvu_dbg_npc_mcam_show_rules()
2970 hits = rvu_read64(rvu, blkaddr, NPC_AF_MATCH_STATX(iter->cntr)); in rvu_dbg_npc_mcam_show_rules()
3110 int blkaddr, i; in rvu_dbg_npc_exact_drop_cnt() local
3114 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); in rvu_dbg_npc_exact_drop_cnt()
3124 cfg = rvu_read64(rvu, blkaddr, NPC_AF_MCAMEX_BANKX_CFG(i, 0)); in rvu_dbg_npc_exact_drop_cnt()
3127 cam1 = rvu_read64(rvu, blkaddr, in rvu_dbg_npc_exact_drop_cnt()
3134 rvu_read64(rvu, blkaddr, in rvu_dbg_npc_exact_drop_cnt()
3177 int blkaddr = ctx->blkaddr; in cpt_eng_sts_display() local
3180 reg = rvu_read64(rvu, blkaddr, CPT_AF_CONSTANTS1); in cpt_eng_sts_display()
3203 reg = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_STS(e)); in cpt_eng_sts_display()
3242 int blkaddr = ctx->blkaddr; in rvu_dbg_cpt_engines_info_display() local
3246 reg = rvu_read64(rvu, blkaddr, CPT_AF_CONSTANTS1); in rvu_dbg_cpt_engines_info_display()
3255 reg = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_CTL2(e)); in rvu_dbg_cpt_engines_info_display()
3258 reg = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_ACTIVE(e)); in rvu_dbg_cpt_engines_info_display()
3261 reg = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_CTL(e)); in rvu_dbg_cpt_engines_info_display()
3274 int blkaddr = ctx->blkaddr; in rvu_dbg_cpt_lfs_info_display() local
3282 block = &hw->block[blkaddr]; in rvu_dbg_cpt_lfs_info_display()
3288 reg = rvu_read64(rvu, blkaddr, CPT_AF_LFX_CTL(lf)); in rvu_dbg_cpt_lfs_info_display()
3290 reg = rvu_read64(rvu, blkaddr, CPT_AF_LFX_CTL2(lf)); in rvu_dbg_cpt_lfs_info_display()
3292 reg = rvu_read64(rvu, blkaddr, CPT_AF_LFX_PTR_CTL(lf)); in rvu_dbg_cpt_lfs_info_display()
3294 reg = rvu_read64(rvu, blkaddr, block->lfcfg_reg | in rvu_dbg_cpt_lfs_info_display()
3308 int blkaddr = ctx->blkaddr; in rvu_dbg_cpt_err_info_display() local
3311 reg0 = rvu_read64(rvu, blkaddr, CPT_AF_FLTX_INT(0)); in rvu_dbg_cpt_err_info_display()
3312 reg1 = rvu_read64(rvu, blkaddr, CPT_AF_FLTX_INT(1)); in rvu_dbg_cpt_err_info_display()
3314 reg0 = rvu_read64(rvu, blkaddr, CPT_AF_PSNX_EXE(0)); in rvu_dbg_cpt_err_info_display()
3315 reg1 = rvu_read64(rvu, blkaddr, CPT_AF_PSNX_EXE(1)); in rvu_dbg_cpt_err_info_display()
3317 reg0 = rvu_read64(rvu, blkaddr, CPT_AF_PSNX_LF(0)); in rvu_dbg_cpt_err_info_display()
3319 reg0 = rvu_read64(rvu, blkaddr, CPT_AF_RVU_INT); in rvu_dbg_cpt_err_info_display()
3321 reg0 = rvu_read64(rvu, blkaddr, CPT_AF_RAS_INT); in rvu_dbg_cpt_err_info_display()
3323 reg0 = rvu_read64(rvu, blkaddr, CPT_AF_EXE_ERR_INFO); in rvu_dbg_cpt_err_info_display()
3335 int blkaddr = ctx->blkaddr; in rvu_dbg_cpt_pc_display() local
3338 reg = rvu_read64(rvu, blkaddr, CPT_AF_INST_REQ_PC); in rvu_dbg_cpt_pc_display()
3340 reg = rvu_read64(rvu, blkaddr, CPT_AF_INST_LATENCY_PC); in rvu_dbg_cpt_pc_display()
3342 reg = rvu_read64(rvu, blkaddr, CPT_AF_RD_REQ_PC); in rvu_dbg_cpt_pc_display()
3344 reg = rvu_read64(rvu, blkaddr, CPT_AF_RD_LATENCY_PC); in rvu_dbg_cpt_pc_display()
3346 reg = rvu_read64(rvu, blkaddr, CPT_AF_RD_UC_PC); in rvu_dbg_cpt_pc_display()
3348 reg = rvu_read64(rvu, blkaddr, CPT_AF_ACTIVE_CYCLES_PC); in rvu_dbg_cpt_pc_display()
3350 reg = rvu_read64(rvu, blkaddr, CPT_AF_CPTCLK_CNT); in rvu_dbg_cpt_pc_display()
3358 static void rvu_dbg_cpt_init(struct rvu *rvu, int blkaddr) in rvu_dbg_cpt_init() argument
3362 if (!is_block_implemented(rvu->hw, blkaddr)) in rvu_dbg_cpt_init()
3365 if (blkaddr == BLKADDR_CPT0) { in rvu_dbg_cpt_init()
3368 ctx->blkaddr = BLKADDR_CPT0; in rvu_dbg_cpt_init()
3374 ctx->blkaddr = BLKADDR_CPT1; in rvu_dbg_cpt_init()