• Home
  • Raw
  • Download

Lines Matching refs:m

473 static void print_npa_qsize(struct seq_file *m, struct rvu_pfvf *pfvf)  in print_npa_qsize()  argument
482 seq_puts(m, "Aura context is not initialized\n"); in print_npa_qsize()
486 seq_printf(m, "Aura count : %d\n", pfvf->aura_ctx->qsize); in print_npa_qsize()
487 seq_printf(m, "Aura context ena/dis bitmap : %s\n", buf); in print_npa_qsize()
491 seq_puts(m, "Pool context is not initialized\n"); in print_npa_qsize()
495 seq_printf(m, "Pool count : %d\n", pfvf->pool_ctx->qsize); in print_npa_qsize()
496 seq_printf(m, "Pool context ena/dis bitmap : %s\n", buf); in print_npa_qsize()
623 static void print_npa_aura_ctx(struct seq_file *m, struct npa_aq_enq_rsp *rsp) in print_npa_aura_ctx() argument
626 struct rvu *rvu = m->private; in print_npa_aura_ctx()
628 seq_printf(m, "W0: Pool addr\t\t%llx\n", aura->pool_addr); in print_npa_aura_ctx()
630 seq_printf(m, "W1: ena\t\t\t%d\nW1: pool caching\t%d\n", in print_npa_aura_ctx()
632 seq_printf(m, "W1: pool way mask\t%d\nW1: avg con\t\t%d\n", in print_npa_aura_ctx()
634 seq_printf(m, "W1: pool drop ena\t%d\nW1: aura drop ena\t%d\n", in print_npa_aura_ctx()
636 seq_printf(m, "W1: bp_ena\t\t%d\nW1: aura drop\t\t%d\n", in print_npa_aura_ctx()
638 seq_printf(m, "W1: aura shift\t\t%d\nW1: avg_level\t\t%d\n", in print_npa_aura_ctx()
641 seq_printf(m, "W2: count\t\t%llu\nW2: nix0_bpid\t\t%d\nW2: nix1_bpid\t\t%d\n", in print_npa_aura_ctx()
644 seq_printf(m, "W3: limit\t\t%llu\nW3: bp\t\t\t%d\nW3: fc_ena\t\t%d\n", in print_npa_aura_ctx()
648 seq_printf(m, "W3: fc_be\t\t%d\n", aura->fc_be); in print_npa_aura_ctx()
649 seq_printf(m, "W3: fc_up_crossing\t%d\nW3: fc_stype\t\t%d\n", in print_npa_aura_ctx()
651 seq_printf(m, "W3: fc_hyst_bits\t%d\n", aura->fc_hyst_bits); in print_npa_aura_ctx()
653 seq_printf(m, "W4: fc_addr\t\t%llx\n", aura->fc_addr); in print_npa_aura_ctx()
655 seq_printf(m, "W5: pool_drop\t\t%d\nW5: update_time\t\t%d\n", in print_npa_aura_ctx()
657 seq_printf(m, "W5: err_int \t\t%d\nW5: err_int_ena\t\t%d\n", in print_npa_aura_ctx()
659 seq_printf(m, "W5: thresh_int\t\t%d\nW5: thresh_int_ena \t%d\n", in print_npa_aura_ctx()
661 seq_printf(m, "W5: thresh_up\t\t%d\nW5: thresh_qint_idx\t%d\n", in print_npa_aura_ctx()
663 seq_printf(m, "W5: err_qint_idx \t%d\n", aura->err_qint_idx); in print_npa_aura_ctx()
665 seq_printf(m, "W6: thresh\t\t%llu\n", (u64)aura->thresh); in print_npa_aura_ctx()
667 seq_printf(m, "W6: fc_msh_dst\t\t%d\n", aura->fc_msh_dst); in print_npa_aura_ctx()
671 static void print_npa_pool_ctx(struct seq_file *m, struct npa_aq_enq_rsp *rsp) in print_npa_pool_ctx() argument
674 struct rvu *rvu = m->private; in print_npa_pool_ctx()
676 seq_printf(m, "W0: Stack base\t\t%llx\n", pool->stack_base); in print_npa_pool_ctx()
678 seq_printf(m, "W1: ena \t\t%d\nW1: nat_align \t\t%d\n", in print_npa_pool_ctx()
680 seq_printf(m, "W1: stack_caching\t%d\nW1: stack_way_mask\t%d\n", in print_npa_pool_ctx()
682 seq_printf(m, "W1: buf_offset\t\t%d\nW1: buf_size\t\t%d\n", in print_npa_pool_ctx()
685 seq_printf(m, "W2: stack_max_pages \t%d\nW2: stack_pages\t\t%d\n", in print_npa_pool_ctx()
688 seq_printf(m, "W3: op_pc \t\t%llu\n", (u64)pool->op_pc); in print_npa_pool_ctx()
690 seq_printf(m, "W4: stack_offset\t%d\nW4: shift\t\t%d\nW4: avg_level\t\t%d\n", in print_npa_pool_ctx()
692 seq_printf(m, "W4: avg_con \t\t%d\nW4: fc_ena\t\t%d\nW4: fc_stype\t\t%d\n", in print_npa_pool_ctx()
694 seq_printf(m, "W4: fc_hyst_bits\t%d\nW4: fc_up_crossing\t%d\n", in print_npa_pool_ctx()
697 seq_printf(m, "W4: fc_be\t\t%d\n", pool->fc_be); in print_npa_pool_ctx()
698 seq_printf(m, "W4: update_time\t\t%d\n", pool->update_time); in print_npa_pool_ctx()
700 seq_printf(m, "W5: fc_addr\t\t%llx\n", pool->fc_addr); in print_npa_pool_ctx()
702 seq_printf(m, "W6: ptr_start\t\t%llx\n", pool->ptr_start); in print_npa_pool_ctx()
704 seq_printf(m, "W7: ptr_end\t\t%llx\n", pool->ptr_end); in print_npa_pool_ctx()
706 seq_printf(m, "W8: err_int\t\t%d\nW8: err_int_ena\t\t%d\n", in print_npa_pool_ctx()
708 seq_printf(m, "W8: thresh_int\t\t%d\n", pool->thresh_int); in print_npa_pool_ctx()
709 seq_printf(m, "W8: thresh_int_ena\t%d\nW8: thresh_up\t\t%d\n", in print_npa_pool_ctx()
711 seq_printf(m, "W8: thresh_qint_idx\t%d\nW8: err_qint_idx\t%d\n", in print_npa_pool_ctx()
714 seq_printf(m, "W8: fc_msh_dst\t\t%d\n", pool->fc_msh_dst); in print_npa_pool_ctx()
718 static int rvu_dbg_npa_ctx_display(struct seq_file *m, void *unused, int ctype) in rvu_dbg_npa_ctx_display() argument
720 void (*print_npa_ctx)(struct seq_file *m, struct npa_aq_enq_rsp *rsp); in rvu_dbg_npa_ctx_display()
729 rvu = m->private; in rvu_dbg_npa_ctx_display()
752 seq_puts(m, "Aura context is not initialized\n"); in rvu_dbg_npa_ctx_display()
755 seq_puts(m, "Pool context is not initialized\n"); in rvu_dbg_npa_ctx_display()
772 seq_printf(m, "Invalid %s, valid range is 0-%d\n", in rvu_dbg_npa_ctx_display()
785 seq_printf(m, "======%s : %d=======\n", in rvu_dbg_npa_ctx_display()
790 seq_puts(m, "Failed to read context\n"); in rvu_dbg_npa_ctx_display()
793 print_npa_ctx(m, &rsp); in rvu_dbg_npa_ctx_display()
1100 static void print_nix_cn10k_sq_ctx(struct seq_file *m, in print_nix_cn10k_sq_ctx() argument
1103 seq_printf(m, "W0: ena \t\t\t%d\nW0: qint_idx \t\t\t%d\n", in print_nix_cn10k_sq_ctx()
1105 seq_printf(m, "W0: substream \t\t\t0x%03x\nW0: sdp_mcast \t\t\t%d\n", in print_nix_cn10k_sq_ctx()
1107 seq_printf(m, "W0: cq \t\t\t\t%d\nW0: sqe_way_mask \t\t%d\n\n", in print_nix_cn10k_sq_ctx()
1110 seq_printf(m, "W1: smq \t\t\t%d\nW1: cq_ena \t\t\t%d\nW1: xoff\t\t\t%d\n", in print_nix_cn10k_sq_ctx()
1112 seq_printf(m, "W1: sso_ena \t\t\t%d\nW1: smq_rr_weight\t\t%d\n", in print_nix_cn10k_sq_ctx()
1114 seq_printf(m, "W1: default_chan\t\t%d\nW1: sqb_count\t\t\t%d\n\n", in print_nix_cn10k_sq_ctx()
1117 seq_printf(m, "W2: smq_rr_count_lb \t\t%d\n", sq_ctx->smq_rr_count_lb); in print_nix_cn10k_sq_ctx()
1118 seq_printf(m, "W2: smq_rr_count_ub \t\t%d\n", sq_ctx->smq_rr_count_ub); in print_nix_cn10k_sq_ctx()
1119 seq_printf(m, "W2: sqb_aura \t\t\t%d\nW2: sq_int \t\t\t%d\n", in print_nix_cn10k_sq_ctx()
1121 seq_printf(m, "W2: sq_int_ena \t\t\t%d\nW2: sqe_stype \t\t\t%d\n", in print_nix_cn10k_sq_ctx()
1124 seq_printf(m, "W3: max_sqe_size\t\t%d\nW3: cq_limit\t\t\t%d\n", in print_nix_cn10k_sq_ctx()
1126 seq_printf(m, "W3: lmt_dis \t\t\t%d\nW3: mnq_dis \t\t\t%d\n", in print_nix_cn10k_sq_ctx()
1128 seq_printf(m, "W3: smq_next_sq\t\t\t%d\nW3: smq_lso_segnum\t\t%d\n", in print_nix_cn10k_sq_ctx()
1130 seq_printf(m, "W3: tail_offset \t\t%d\nW3: smenq_offset\t\t%d\n", in print_nix_cn10k_sq_ctx()
1132 seq_printf(m, "W3: head_offset\t\t\t%d\nW3: smenq_next_sqb_vld\t\t%d\n\n", in print_nix_cn10k_sq_ctx()
1135 seq_printf(m, "W3: smq_next_sq_vld\t\t%d\nW3: smq_pend\t\t\t%d\n", in print_nix_cn10k_sq_ctx()
1137 seq_printf(m, "W4: next_sqb \t\t\t%llx\n\n", sq_ctx->next_sqb); in print_nix_cn10k_sq_ctx()
1138 seq_printf(m, "W5: tail_sqb \t\t\t%llx\n\n", sq_ctx->tail_sqb); in print_nix_cn10k_sq_ctx()
1139 seq_printf(m, "W6: smenq_sqb \t\t\t%llx\n\n", sq_ctx->smenq_sqb); in print_nix_cn10k_sq_ctx()
1140 seq_printf(m, "W7: smenq_next_sqb \t\t%llx\n\n", in print_nix_cn10k_sq_ctx()
1143 seq_printf(m, "W8: head_sqb\t\t\t%llx\n\n", sq_ctx->head_sqb); in print_nix_cn10k_sq_ctx()
1145 seq_printf(m, "W9: vfi_lso_total\t\t%d\n", sq_ctx->vfi_lso_total); in print_nix_cn10k_sq_ctx()
1146 seq_printf(m, "W9: vfi_lso_sizem1\t\t%d\nW9: vfi_lso_sb\t\t\t%d\n", in print_nix_cn10k_sq_ctx()
1148 seq_printf(m, "W9: vfi_lso_mps\t\t\t%d\nW9: vfi_lso_vlan0_ins_ena\t%d\n", in print_nix_cn10k_sq_ctx()
1150 seq_printf(m, "W9: vfi_lso_vlan1_ins_ena\t%d\nW9: vfi_lso_vld \t\t%d\n\n", in print_nix_cn10k_sq_ctx()
1153 seq_printf(m, "W10: scm_lso_rem \t\t%llu\n\n", in print_nix_cn10k_sq_ctx()
1155 seq_printf(m, "W11: octs \t\t\t%llu\n\n", (u64)sq_ctx->octs); in print_nix_cn10k_sq_ctx()
1156 seq_printf(m, "W12: pkts \t\t\t%llu\n\n", (u64)sq_ctx->pkts); in print_nix_cn10k_sq_ctx()
1157 seq_printf(m, "W14: dropped_octs \t\t%llu\n\n", in print_nix_cn10k_sq_ctx()
1159 seq_printf(m, "W15: dropped_pkts \t\t%llu\n\n", in print_nix_cn10k_sq_ctx()
1164 static void print_nix_sq_ctx(struct seq_file *m, struct nix_aq_enq_rsp *rsp) in print_nix_sq_ctx() argument
1167 struct nix_hw *nix_hw = m->private; in print_nix_sq_ctx()
1171 print_nix_cn10k_sq_ctx(m, (struct nix_cn10k_sq_ctx_s *)sq_ctx); in print_nix_sq_ctx()
1174 seq_printf(m, "W0: sqe_way_mask \t\t%d\nW0: cq \t\t\t\t%d\n", in print_nix_sq_ctx()
1176 seq_printf(m, "W0: sdp_mcast \t\t\t%d\nW0: substream \t\t\t0x%03x\n", in print_nix_sq_ctx()
1178 seq_printf(m, "W0: qint_idx \t\t\t%d\nW0: ena \t\t\t%d\n\n", in print_nix_sq_ctx()
1181 seq_printf(m, "W1: sqb_count \t\t\t%d\nW1: default_chan \t\t%d\n", in print_nix_sq_ctx()
1183 seq_printf(m, "W1: smq_rr_quantum \t\t%d\nW1: sso_ena \t\t\t%d\n", in print_nix_sq_ctx()
1185 seq_printf(m, "W1: xoff \t\t\t%d\nW1: cq_ena \t\t\t%d\nW1: smq\t\t\t\t%d\n\n", in print_nix_sq_ctx()
1188 seq_printf(m, "W2: sqe_stype \t\t\t%d\nW2: sq_int_ena \t\t\t%d\n", in print_nix_sq_ctx()
1190 seq_printf(m, "W2: sq_int \t\t\t%d\nW2: sqb_aura \t\t\t%d\n", in print_nix_sq_ctx()
1192 seq_printf(m, "W2: smq_rr_count \t\t%d\n\n", sq_ctx->smq_rr_count); in print_nix_sq_ctx()
1194 seq_printf(m, "W3: smq_next_sq_vld\t\t%d\nW3: smq_pend\t\t\t%d\n", in print_nix_sq_ctx()
1196 seq_printf(m, "W3: smenq_next_sqb_vld \t\t%d\nW3: head_offset\t\t\t%d\n", in print_nix_sq_ctx()
1198 seq_printf(m, "W3: smenq_offset\t\t%d\nW3: tail_offset\t\t\t%d\n", in print_nix_sq_ctx()
1200 seq_printf(m, "W3: smq_lso_segnum \t\t%d\nW3: smq_next_sq\t\t\t%d\n", in print_nix_sq_ctx()
1202 seq_printf(m, "W3: mnq_dis \t\t\t%d\nW3: lmt_dis \t\t\t%d\n", in print_nix_sq_ctx()
1204 seq_printf(m, "W3: cq_limit\t\t\t%d\nW3: max_sqe_size\t\t%d\n\n", in print_nix_sq_ctx()
1207 seq_printf(m, "W4: next_sqb \t\t\t%llx\n\n", sq_ctx->next_sqb); in print_nix_sq_ctx()
1208 seq_printf(m, "W5: tail_sqb \t\t\t%llx\n\n", sq_ctx->tail_sqb); in print_nix_sq_ctx()
1209 seq_printf(m, "W6: smenq_sqb \t\t\t%llx\n\n", sq_ctx->smenq_sqb); in print_nix_sq_ctx()
1210 seq_printf(m, "W7: smenq_next_sqb \t\t%llx\n\n", in print_nix_sq_ctx()
1213 seq_printf(m, "W8: head_sqb\t\t\t%llx\n\n", sq_ctx->head_sqb); in print_nix_sq_ctx()
1215 seq_printf(m, "W9: vfi_lso_vld\t\t\t%d\nW9: vfi_lso_vlan1_ins_ena\t%d\n", in print_nix_sq_ctx()
1217 seq_printf(m, "W9: vfi_lso_vlan0_ins_ena\t%d\nW9: vfi_lso_mps\t\t\t%d\n", in print_nix_sq_ctx()
1219 seq_printf(m, "W9: vfi_lso_sb\t\t\t%d\nW9: vfi_lso_sizem1\t\t%d\n", in print_nix_sq_ctx()
1221 seq_printf(m, "W9: vfi_lso_total\t\t%d\n\n", sq_ctx->vfi_lso_total); in print_nix_sq_ctx()
1223 seq_printf(m, "W10: scm_lso_rem \t\t%llu\n\n", in print_nix_sq_ctx()
1225 seq_printf(m, "W11: octs \t\t\t%llu\n\n", (u64)sq_ctx->octs); in print_nix_sq_ctx()
1226 seq_printf(m, "W12: pkts \t\t\t%llu\n\n", (u64)sq_ctx->pkts); in print_nix_sq_ctx()
1227 seq_printf(m, "W14: dropped_octs \t\t%llu\n\n", in print_nix_sq_ctx()
1229 seq_printf(m, "W15: dropped_pkts \t\t%llu\n\n", in print_nix_sq_ctx()
1233 static void print_nix_cn10k_rq_ctx(struct seq_file *m, in print_nix_cn10k_rq_ctx() argument
1236 seq_printf(m, "W0: ena \t\t\t%d\nW0: sso_ena \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1238 seq_printf(m, "W0: ipsech_ena \t\t\t%d\nW0: ena_wqwd \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1240 seq_printf(m, "W0: cq \t\t\t\t%d\nW0: lenerr_dis \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1242 seq_printf(m, "W0: csum_il4_dis \t\t%d\nW0: csum_ol4_dis \t\t%d\n", in print_nix_cn10k_rq_ctx()
1244 seq_printf(m, "W0: len_il4_dis \t\t%d\nW0: len_il3_dis \t\t%d\n", in print_nix_cn10k_rq_ctx()
1246 seq_printf(m, "W0: len_ol4_dis \t\t%d\nW0: len_ol3_dis \t\t%d\n", in print_nix_cn10k_rq_ctx()
1248 seq_printf(m, "W0: wqe_aura \t\t\t%d\n\n", rq_ctx->wqe_aura); in print_nix_cn10k_rq_ctx()
1250 seq_printf(m, "W1: spb_aura \t\t\t%d\nW1: lpb_aura \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1252 seq_printf(m, "W1: spb_aura \t\t\t%d\n", rq_ctx->spb_aura); in print_nix_cn10k_rq_ctx()
1253 seq_printf(m, "W1: sso_grp \t\t\t%d\nW1: sso_tt \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1255 seq_printf(m, "W1: pb_caching \t\t\t%d\nW1: wqe_caching \t\t%d\n", in print_nix_cn10k_rq_ctx()
1257 seq_printf(m, "W1: xqe_drop_ena \t\t%d\nW1: spb_drop_ena \t\t%d\n", in print_nix_cn10k_rq_ctx()
1259 seq_printf(m, "W1: lpb_drop_ena \t\t%d\nW1: pb_stashing \t\t%d\n", in print_nix_cn10k_rq_ctx()
1261 seq_printf(m, "W1: ipsecd_drop_ena \t\t%d\nW1: chi_ena \t\t\t%d\n\n", in print_nix_cn10k_rq_ctx()
1264 seq_printf(m, "W2: band_prof_id \t\t%d\n", rq_ctx->band_prof_id); in print_nix_cn10k_rq_ctx()
1265 seq_printf(m, "W2: policer_ena \t\t%d\n", rq_ctx->policer_ena); in print_nix_cn10k_rq_ctx()
1266 seq_printf(m, "W2: spb_sizem1 \t\t\t%d\n", rq_ctx->spb_sizem1); in print_nix_cn10k_rq_ctx()
1267 seq_printf(m, "W2: wqe_skip \t\t\t%d\nW2: sqb_ena \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1269 seq_printf(m, "W2: lpb_size1 \t\t\t%d\nW2: first_skip \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1271 seq_printf(m, "W2: later_skip\t\t\t%d\nW2: xqe_imm_size\t\t%d\n", in print_nix_cn10k_rq_ctx()
1273 seq_printf(m, "W2: xqe_imm_copy \t\t%d\nW2: xqe_hdr_split \t\t%d\n\n", in print_nix_cn10k_rq_ctx()
1276 seq_printf(m, "W3: xqe_drop \t\t\t%d\nW3: xqe_pass \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1278 seq_printf(m, "W3: wqe_pool_drop \t\t%d\nW3: wqe_pool_pass \t\t%d\n", in print_nix_cn10k_rq_ctx()
1280 seq_printf(m, "W3: spb_pool_drop \t\t%d\nW3: spb_pool_pass \t\t%d\n", in print_nix_cn10k_rq_ctx()
1282 seq_printf(m, "W3: spb_aura_drop \t\t%d\nW3: spb_aura_pass \t\t%d\n\n", in print_nix_cn10k_rq_ctx()
1285 seq_printf(m, "W4: lpb_aura_drop \t\t%d\nW3: lpb_aura_pass \t\t%d\n", in print_nix_cn10k_rq_ctx()
1287 seq_printf(m, "W4: lpb_pool_drop \t\t%d\nW3: lpb_pool_pass \t\t%d\n", in print_nix_cn10k_rq_ctx()
1289 seq_printf(m, "W4: rq_int \t\t\t%d\nW4: rq_int_ena\t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1291 seq_printf(m, "W4: qint_idx \t\t\t%d\n\n", rq_ctx->qint_idx); in print_nix_cn10k_rq_ctx()
1293 seq_printf(m, "W5: ltag \t\t\t%d\nW5: good_utag \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1295 seq_printf(m, "W5: bad_utag \t\t\t%d\nW5: flow_tagw \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1297 seq_printf(m, "W5: ipsec_vwqe \t\t\t%d\nW5: vwqe_ena \t\t\t%d\n", in print_nix_cn10k_rq_ctx()
1299 seq_printf(m, "W5: vwqe_wait \t\t\t%d\nW5: max_vsize_exp\t\t%d\n", in print_nix_cn10k_rq_ctx()
1301 seq_printf(m, "W5: vwqe_skip \t\t\t%d\n\n", rq_ctx->vwqe_skip); in print_nix_cn10k_rq_ctx()
1303 seq_printf(m, "W6: octs \t\t\t%llu\n\n", (u64)rq_ctx->octs); in print_nix_cn10k_rq_ctx()
1304 seq_printf(m, "W7: pkts \t\t\t%llu\n\n", (u64)rq_ctx->pkts); in print_nix_cn10k_rq_ctx()
1305 seq_printf(m, "W8: drop_octs \t\t\t%llu\n\n", (u64)rq_ctx->drop_octs); in print_nix_cn10k_rq_ctx()
1306 seq_printf(m, "W9: drop_pkts \t\t\t%llu\n\n", (u64)rq_ctx->drop_pkts); in print_nix_cn10k_rq_ctx()
1307 seq_printf(m, "W10: re_pkts \t\t\t%llu\n", (u64)rq_ctx->re_pkts); in print_nix_cn10k_rq_ctx()
1311 static void print_nix_rq_ctx(struct seq_file *m, struct nix_aq_enq_rsp *rsp) in print_nix_rq_ctx() argument
1314 struct nix_hw *nix_hw = m->private; in print_nix_rq_ctx()
1318 print_nix_cn10k_rq_ctx(m, (struct nix_cn10k_rq_ctx_s *)rq_ctx); in print_nix_rq_ctx()
1322 seq_printf(m, "W0: wqe_aura \t\t\t%d\nW0: substream \t\t\t0x%03x\n", in print_nix_rq_ctx()
1324 seq_printf(m, "W0: cq \t\t\t\t%d\nW0: ena_wqwd \t\t\t%d\n", in print_nix_rq_ctx()
1326 seq_printf(m, "W0: ipsech_ena \t\t\t%d\nW0: sso_ena \t\t\t%d\n", in print_nix_rq_ctx()
1328 seq_printf(m, "W0: ena \t\t\t%d\n\n", rq_ctx->ena); in print_nix_rq_ctx()
1330 seq_printf(m, "W1: lpb_drop_ena \t\t%d\nW1: spb_drop_ena \t\t%d\n", in print_nix_rq_ctx()
1332 seq_printf(m, "W1: xqe_drop_ena \t\t%d\nW1: wqe_caching \t\t%d\n", in print_nix_rq_ctx()
1334 seq_printf(m, "W1: pb_caching \t\t\t%d\nW1: sso_tt \t\t\t%d\n", in print_nix_rq_ctx()
1336 seq_printf(m, "W1: sso_grp \t\t\t%d\nW1: lpb_aura \t\t\t%d\n", in print_nix_rq_ctx()
1338 seq_printf(m, "W1: spb_aura \t\t\t%d\n\n", rq_ctx->spb_aura); in print_nix_rq_ctx()
1340 seq_printf(m, "W2: xqe_hdr_split \t\t%d\nW2: xqe_imm_copy \t\t%d\n", in print_nix_rq_ctx()
1342 seq_printf(m, "W2: xqe_imm_size \t\t%d\nW2: later_skip \t\t\t%d\n", in print_nix_rq_ctx()
1344 seq_printf(m, "W2: first_skip \t\t\t%d\nW2: lpb_sizem1 \t\t\t%d\n", in print_nix_rq_ctx()
1346 seq_printf(m, "W2: spb_ena \t\t\t%d\nW2: wqe_skip \t\t\t%d\n", in print_nix_rq_ctx()
1348 seq_printf(m, "W2: spb_sizem1 \t\t\t%d\n\n", rq_ctx->spb_sizem1); in print_nix_rq_ctx()
1350 seq_printf(m, "W3: spb_pool_pass \t\t%d\nW3: spb_pool_drop \t\t%d\n", in print_nix_rq_ctx()
1352 seq_printf(m, "W3: spb_aura_pass \t\t%d\nW3: spb_aura_drop \t\t%d\n", in print_nix_rq_ctx()
1354 seq_printf(m, "W3: wqe_pool_pass \t\t%d\nW3: wqe_pool_drop \t\t%d\n", in print_nix_rq_ctx()
1356 seq_printf(m, "W3: xqe_pass \t\t\t%d\nW3: xqe_drop \t\t\t%d\n\n", in print_nix_rq_ctx()
1359 seq_printf(m, "W4: qint_idx \t\t\t%d\nW4: rq_int_ena \t\t\t%d\n", in print_nix_rq_ctx()
1361 seq_printf(m, "W4: rq_int \t\t\t%d\nW4: lpb_pool_pass \t\t%d\n", in print_nix_rq_ctx()
1363 seq_printf(m, "W4: lpb_pool_drop \t\t%d\nW4: lpb_aura_pass \t\t%d\n", in print_nix_rq_ctx()
1365 seq_printf(m, "W4: lpb_aura_drop \t\t%d\n\n", rq_ctx->lpb_aura_drop); in print_nix_rq_ctx()
1367 seq_printf(m, "W5: flow_tagw \t\t\t%d\nW5: bad_utag \t\t\t%d\n", in print_nix_rq_ctx()
1369 seq_printf(m, "W5: good_utag \t\t\t%d\nW5: ltag \t\t\t%d\n\n", in print_nix_rq_ctx()
1372 seq_printf(m, "W6: octs \t\t\t%llu\n\n", (u64)rq_ctx->octs); in print_nix_rq_ctx()
1373 seq_printf(m, "W7: pkts \t\t\t%llu\n\n", (u64)rq_ctx->pkts); in print_nix_rq_ctx()
1374 seq_printf(m, "W8: drop_octs \t\t\t%llu\n\n", (u64)rq_ctx->drop_octs); in print_nix_rq_ctx()
1375 seq_printf(m, "W9: drop_pkts \t\t\t%llu\n\n", (u64)rq_ctx->drop_pkts); in print_nix_rq_ctx()
1376 seq_printf(m, "W10: re_pkts \t\t\t%llu\n", (u64)rq_ctx->re_pkts); in print_nix_rq_ctx()
1380 static void print_nix_cq_ctx(struct seq_file *m, struct nix_aq_enq_rsp *rsp) in print_nix_cq_ctx() argument
1384 seq_printf(m, "W0: base \t\t\t%llx\n\n", cq_ctx->base); in print_nix_cq_ctx()
1386 seq_printf(m, "W1: wrptr \t\t\t%llx\n", (u64)cq_ctx->wrptr); in print_nix_cq_ctx()
1387 seq_printf(m, "W1: avg_con \t\t\t%d\nW1: cint_idx \t\t\t%d\n", in print_nix_cq_ctx()
1389 seq_printf(m, "W1: cq_err \t\t\t%d\nW1: qint_idx \t\t\t%d\n", in print_nix_cq_ctx()
1391 seq_printf(m, "W1: bpid \t\t\t%d\nW1: bp_ena \t\t\t%d\n\n", in print_nix_cq_ctx()
1394 seq_printf(m, "W2: update_time \t\t%d\nW2:avg_level \t\t\t%d\n", in print_nix_cq_ctx()
1396 seq_printf(m, "W2: head \t\t\t%d\nW2:tail \t\t\t%d\n\n", in print_nix_cq_ctx()
1399 seq_printf(m, "W3: cq_err_int_ena \t\t%d\nW3:cq_err_int \t\t\t%d\n", in print_nix_cq_ctx()
1401 seq_printf(m, "W3: qsize \t\t\t%d\nW3:caching \t\t\t%d\n", in print_nix_cq_ctx()
1403 seq_printf(m, "W3: substream \t\t\t0x%03x\nW3: ena \t\t\t%d\n", in print_nix_cq_ctx()
1405 seq_printf(m, "W3: drop_ena \t\t\t%d\nW3: drop \t\t\t%d\n", in print_nix_cq_ctx()
1407 seq_printf(m, "W3: bp \t\t\t\t%d\n\n", cq_ctx->bp); in print_nix_cq_ctx()
1501 struct seq_file *m) in write_nix_queue_ctx() argument
1503 struct nix_hw *nix_hw = m->private; in write_nix_queue_ctx()
1567 struct seq_file *m = filp->private_data; in rvu_dbg_nix_queue_ctx_write() local
1568 struct nix_hw *nix_hw = m->private; in rvu_dbg_nix_queue_ctx_write()
1605 ctype_string, m); in rvu_dbg_nix_queue_ctx_write()
1709 static void print_band_prof_ctx(struct seq_file *m, in print_band_prof_ctx() argument
1728 seq_printf(m, "W0: pc_mode\t\t%s\n", str); in print_band_prof_ctx()
1732 seq_printf(m, "W0: icolor\t\t%s\n", str); in print_band_prof_ctx()
1733 seq_printf(m, "W0: tnl_ena\t\t%d\n", prof->tnl_ena); in print_band_prof_ctx()
1734 seq_printf(m, "W0: peir_exponent\t%d\n", prof->peir_exponent); in print_band_prof_ctx()
1735 seq_printf(m, "W0: pebs_exponent\t%d\n", prof->pebs_exponent); in print_band_prof_ctx()
1736 seq_printf(m, "W0: cir_exponent\t%d\n", prof->cir_exponent); in print_band_prof_ctx()
1737 seq_printf(m, "W0: cbs_exponent\t%d\n", prof->cbs_exponent); in print_band_prof_ctx()
1738 seq_printf(m, "W0: peir_mantissa\t%d\n", prof->peir_mantissa); in print_band_prof_ctx()
1739 seq_printf(m, "W0: pebs_mantissa\t%d\n", prof->pebs_mantissa); in print_band_prof_ctx()
1740 seq_printf(m, "W0: cir_mantissa\t%d\n", prof->cir_mantissa); in print_band_prof_ctx()
1742 seq_printf(m, "W1: cbs_mantissa\t%d\n", prof->cbs_mantissa); in print_band_prof_ctx()
1744 seq_printf(m, "W1: lmode\t\t%s\n", str); in print_band_prof_ctx()
1745 seq_printf(m, "W1: l_select\t\t%d\n", prof->l_sellect); in print_band_prof_ctx()
1746 seq_printf(m, "W1: rdiv\t\t%d\n", prof->rdiv); in print_band_prof_ctx()
1747 seq_printf(m, "W1: adjust_exponent\t%d\n", prof->adjust_exponent); in print_band_prof_ctx()
1748 seq_printf(m, "W1: adjust_mantissa\t%d\n", prof->adjust_mantissa); in print_band_prof_ctx()
1751 seq_printf(m, "W1: gc_action\t\t%s\n", str); in print_band_prof_ctx()
1754 seq_printf(m, "W1: yc_action\t\t%s\n", str); in print_band_prof_ctx()
1757 seq_printf(m, "W1: rc_action\t\t%s\n", str); in print_band_prof_ctx()
1758 seq_printf(m, "W1: meter_algo\t\t%d\n", prof->meter_algo); in print_band_prof_ctx()
1759 seq_printf(m, "W1: band_prof_id\t%d\n", prof->band_prof_id); in print_band_prof_ctx()
1760 seq_printf(m, "W1: hl_en\t\t%d\n", prof->hl_en); in print_band_prof_ctx()
1762 seq_printf(m, "W2: ts\t\t\t%lld\n", (u64)prof->ts); in print_band_prof_ctx()
1763 seq_printf(m, "W3: pe_accum\t\t%d\n", prof->pe_accum); in print_band_prof_ctx()
1764 seq_printf(m, "W3: c_accum\t\t%d\n", prof->c_accum); in print_band_prof_ctx()
1765 seq_printf(m, "W4: green_pkt_pass\t%lld\n", in print_band_prof_ctx()
1767 seq_printf(m, "W5: yellow_pkt_pass\t%lld\n", in print_band_prof_ctx()
1769 seq_printf(m, "W6: red_pkt_pass\t%lld\n", (u64)prof->red_pkt_pass); in print_band_prof_ctx()
1770 seq_printf(m, "W7: green_octs_pass\t%lld\n", in print_band_prof_ctx()
1772 seq_printf(m, "W8: yellow_octs_pass\t%lld\n", in print_band_prof_ctx()
1774 seq_printf(m, "W9: red_octs_pass\t%lld\n", (u64)prof->red_octs_pass); in print_band_prof_ctx()
1775 seq_printf(m, "W10: green_pkt_drop\t%lld\n", in print_band_prof_ctx()
1777 seq_printf(m, "W11: yellow_pkt_drop\t%lld\n", in print_band_prof_ctx()
1779 seq_printf(m, "W12: red_pkt_drop\t%lld\n", (u64)prof->red_pkt_drop); in print_band_prof_ctx()
1780 seq_printf(m, "W13: green_octs_drop\t%lld\n", in print_band_prof_ctx()
1782 seq_printf(m, "W14: yellow_octs_drop\t%lld\n", in print_band_prof_ctx()
1784 seq_printf(m, "W15: red_octs_drop\t%lld\n", (u64)prof->red_octs_drop); in print_band_prof_ctx()
1785 seq_puts(m, "==============================\n"); in print_band_prof_ctx()
1788 static int rvu_dbg_nix_band_prof_ctx_display(struct seq_file *m, void *unused) in rvu_dbg_nix_band_prof_ctx_display() argument
1790 struct nix_hw *nix_hw = m->private; in rvu_dbg_nix_band_prof_ctx_display()
1809 seq_printf(m, "\n%s bandwidth profiles\n", str); in rvu_dbg_nix_band_prof_ctx_display()
1810 seq_puts(m, "=======================\n"); in rvu_dbg_nix_band_prof_ctx_display()
1828 seq_printf(m, "\n%s bandwidth profile:: %d\n", str, idx); in rvu_dbg_nix_band_prof_ctx_display()
1831 seq_printf(m, "Allocated to :: PF %d\n", in rvu_dbg_nix_band_prof_ctx_display()
1834 seq_printf(m, "Allocated to :: PF %d VF %d\n", in rvu_dbg_nix_band_prof_ctx_display()
1837 print_band_prof_ctx(m, &aq_rsp.prof); in rvu_dbg_nix_band_prof_ctx_display()
1845 static int rvu_dbg_nix_band_prof_rsrc_display(struct seq_file *m, void *unused) in rvu_dbg_nix_band_prof_rsrc_display() argument
1847 struct nix_hw *nix_hw = m->private; in rvu_dbg_nix_band_prof_rsrc_display()
1856 seq_puts(m, "\nBandwidth profile resource free count\n"); in rvu_dbg_nix_band_prof_rsrc_display()
1857 seq_puts(m, "=====================================\n"); in rvu_dbg_nix_band_prof_rsrc_display()
1865 seq_printf(m, "%s :: Max: %4d Free: %4d\n", str, in rvu_dbg_nix_band_prof_rsrc_display()
1869 seq_puts(m, "=====================================\n"); in rvu_dbg_nix_band_prof_rsrc_display()