Lines Matching refs:lf

671 	int lf = 0, seq = 0, len = 0, prev_lf = block.lf.max;  in get_lf_str_list()  local
673 for_each_set_bit(lf, block.lf.bmap, block.lf.max) { in get_lf_str_list()
674 if (lf >= block.lf.max) in get_lf_str_list()
677 if (block.fn_map[lf] != pcifunc) in get_lf_str_list()
680 if (lf == prev_lf + 1) { in get_lf_str_list()
681 prev_lf = lf; in get_lf_str_list()
687 len += sprintf(lfs + len, "-%d,%d", prev_lf, lf); in get_lf_str_list()
689 len += (len ? sprintf(lfs + len, ",%d", lf) : in get_lf_str_list()
690 sprintf(lfs + len, "%d", lf)); in get_lf_str_list()
692 prev_lf = lf; in get_lf_str_list()
891 static bool rvu_dbg_is_valid_lf(struct rvu *rvu, int blkaddr, int lf, in rvu_dbg_is_valid_lf() argument
900 if (lf < 0 || lf >= block->lf.max) { in rvu_dbg_is_valid_lf()
902 block->lf.max - 1); in rvu_dbg_is_valid_lf()
906 *pcifunc = block->fn_map[lf]; in rvu_dbg_is_valid_lf()
1002 int ret, lf; in rvu_dbg_qsize_write() local
1018 ret = subtoken ? kstrtoint(subtoken, 10, &lf) : -EINVAL; in rvu_dbg_qsize_write()
1035 if (!rvu_dbg_is_valid_lf(rvu, blkaddr, lf, &pcifunc)) { in rvu_dbg_qsize_write()
1040 rvu->rvu_dbg.npa_qsize_id = lf; in rvu_dbg_qsize_write()
1042 rvu->rvu_dbg.nix_qsize_id = lf; in rvu_dbg_qsize_write()
1175 npalf = rvu->rvu_dbg.npa_aura_ctx.lf; in rvu_dbg_npa_ctx_display()
1181 npalf = rvu->rvu_dbg.npa_pool_ctx.lf; in rvu_dbg_npa_ctx_display()
1275 rvu->rvu_dbg.npa_aura_ctx.lf = npalf; in write_npa_ctx()
1281 rvu->rvu_dbg.npa_pool_ctx.lf = npalf; in write_npa_ctx()
1867 nixlf = rvu->rvu_dbg.nix_cq_ctx.lf; in rvu_dbg_nix_queue_ctx_display()
1873 nixlf = rvu->rvu_dbg.nix_sq_ctx.lf; in rvu_dbg_nix_queue_ctx_display()
1879 nixlf = rvu->rvu_dbg.nix_rq_ctx.lf; in rvu_dbg_nix_queue_ctx_display()
1980 rvu->rvu_dbg.nix_cq_ctx.lf = nixlf; in write_nix_queue_ctx()
1986 rvu->rvu_dbg.nix_sq_ctx.lf = nixlf; in write_nix_queue_ctx()
1992 rvu->rvu_dbg.nix_rq_ctx.lf = nixlf; in write_nix_queue_ctx()
3251 u32 lf; in rvu_dbg_cpt_lfs_info_display() local
3255 if (!block->lf.bmap) in rvu_dbg_cpt_lfs_info_display()
3259 for (lf = 0; lf < block->lf.max; lf++) { in rvu_dbg_cpt_lfs_info_display()
3260 reg = rvu_read64(rvu, blkaddr, CPT_AF_LFX_CTL(lf)); in rvu_dbg_cpt_lfs_info_display()
3261 seq_printf(filp, "CPT Lf[%u] CTL 0x%llx\n", lf, reg); in rvu_dbg_cpt_lfs_info_display()
3262 reg = rvu_read64(rvu, blkaddr, CPT_AF_LFX_CTL2(lf)); in rvu_dbg_cpt_lfs_info_display()
3263 seq_printf(filp, "CPT Lf[%u] CTL2 0x%llx\n", lf, reg); in rvu_dbg_cpt_lfs_info_display()
3264 reg = rvu_read64(rvu, blkaddr, CPT_AF_LFX_PTR_CTL(lf)); in rvu_dbg_cpt_lfs_info_display()
3265 seq_printf(filp, "CPT Lf[%u] PTR_CTL 0x%llx\n", lf, reg); in rvu_dbg_cpt_lfs_info_display()
3267 (lf << block->lfshift)); in rvu_dbg_cpt_lfs_info_display()
3268 seq_printf(filp, "CPT Lf[%u] CFG 0x%llx\n", lf, reg); in rvu_dbg_cpt_lfs_info_display()