Lines Matching refs:pcur

49 static int ocrdma_add_stat(char *start, char *pcur,  in ocrdma_add_stat()  argument
58 if (pcur + cpy_len > start + OCRDMA_MAX_DBGFS_MEM) { in ocrdma_add_stat()
63 memcpy(pcur, buff, cpy_len); in ocrdma_add_stat()
104 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_resource_stats() local
111 pcur = stats; in ocrdma_resource_stats()
112 pcur += ocrdma_add_stat(stats, pcur, "active_dpp_pds", in ocrdma_resource_stats()
114 pcur += ocrdma_add_stat(stats, pcur, "active_non_dpp_pds", in ocrdma_resource_stats()
116 pcur += ocrdma_add_stat(stats, pcur, "active_rc_dpp_qps", in ocrdma_resource_stats()
118 pcur += ocrdma_add_stat(stats, pcur, "active_uc_dpp_qps", in ocrdma_resource_stats()
120 pcur += ocrdma_add_stat(stats, pcur, "active_ud_dpp_qps", in ocrdma_resource_stats()
122 pcur += ocrdma_add_stat(stats, pcur, "active_rc_non_dpp_qps", in ocrdma_resource_stats()
124 pcur += ocrdma_add_stat(stats, pcur, "active_uc_non_dpp_qps", in ocrdma_resource_stats()
126 pcur += ocrdma_add_stat(stats, pcur, "active_ud_non_dpp_qps", in ocrdma_resource_stats()
128 pcur += ocrdma_add_stat(stats, pcur, "active_srqs", in ocrdma_resource_stats()
130 pcur += ocrdma_add_stat(stats, pcur, "active_rbqs", in ocrdma_resource_stats()
132 pcur += ocrdma_add_stat(stats, pcur, "active_64K_nsmr", in ocrdma_resource_stats()
134 pcur += ocrdma_add_stat(stats, pcur, "active_64K_to_2M_nsmr", in ocrdma_resource_stats()
136 pcur += ocrdma_add_stat(stats, pcur, "active_2M_to_44M_nsmr", in ocrdma_resource_stats()
138 pcur += ocrdma_add_stat(stats, pcur, "active_44M_to_1G_nsmr", in ocrdma_resource_stats()
140 pcur += ocrdma_add_stat(stats, pcur, "active_1G_to_4G_nsmr", in ocrdma_resource_stats()
142 pcur += ocrdma_add_stat(stats, pcur, "active_nsmr_count_4G_to_32G", in ocrdma_resource_stats()
144 pcur += ocrdma_add_stat(stats, pcur, "active_32G_to_64G_nsmr", in ocrdma_resource_stats()
146 pcur += ocrdma_add_stat(stats, pcur, "active_64G_to_128G_nsmr", in ocrdma_resource_stats()
148 pcur += ocrdma_add_stat(stats, pcur, "active_128G_to_higher_nsmr", in ocrdma_resource_stats()
150 pcur += ocrdma_add_stat(stats, pcur, "active_embedded_nsmr", in ocrdma_resource_stats()
152 pcur += ocrdma_add_stat(stats, pcur, "active_frmr", in ocrdma_resource_stats()
154 pcur += ocrdma_add_stat(stats, pcur, "active_prefetch_qps", in ocrdma_resource_stats()
156 pcur += ocrdma_add_stat(stats, pcur, "active_ondemand_qps", in ocrdma_resource_stats()
158 pcur += ocrdma_add_stat(stats, pcur, "active_phy_mr", in ocrdma_resource_stats()
160 pcur += ocrdma_add_stat(stats, pcur, "active_mw", in ocrdma_resource_stats()
166 pcur += ocrdma_add_stat(stats, pcur, "threshold_dpp_pds", in ocrdma_resource_stats()
168 pcur += ocrdma_add_stat(stats, pcur, "threshold_non_dpp_pds", in ocrdma_resource_stats()
170 pcur += ocrdma_add_stat(stats, pcur, "threshold_rc_dpp_qps", in ocrdma_resource_stats()
172 pcur += ocrdma_add_stat(stats, pcur, "threshold_uc_dpp_qps", in ocrdma_resource_stats()
174 pcur += ocrdma_add_stat(stats, pcur, "threshold_ud_dpp_qps", in ocrdma_resource_stats()
176 pcur += ocrdma_add_stat(stats, pcur, "threshold_rc_non_dpp_qps", in ocrdma_resource_stats()
178 pcur += ocrdma_add_stat(stats, pcur, "threshold_uc_non_dpp_qps", in ocrdma_resource_stats()
180 pcur += ocrdma_add_stat(stats, pcur, "threshold_ud_non_dpp_qps", in ocrdma_resource_stats()
182 pcur += ocrdma_add_stat(stats, pcur, "threshold_srqs", in ocrdma_resource_stats()
184 pcur += ocrdma_add_stat(stats, pcur, "threshold_rbqs", in ocrdma_resource_stats()
186 pcur += ocrdma_add_stat(stats, pcur, "threshold_64K_nsmr", in ocrdma_resource_stats()
188 pcur += ocrdma_add_stat(stats, pcur, "threshold_64K_to_2M_nsmr", in ocrdma_resource_stats()
190 pcur += ocrdma_add_stat(stats, pcur, "threshold_2M_to_44M_nsmr", in ocrdma_resource_stats()
192 pcur += ocrdma_add_stat(stats, pcur, "threshold_44M_to_1G_nsmr", in ocrdma_resource_stats()
194 pcur += ocrdma_add_stat(stats, pcur, "threshold_1G_to_4G_nsmr", in ocrdma_resource_stats()
196 pcur += ocrdma_add_stat(stats, pcur, "threshold_nsmr_count_4G_to_32G", in ocrdma_resource_stats()
198 pcur += ocrdma_add_stat(stats, pcur, "threshold_32G_to_64G_nsmr", in ocrdma_resource_stats()
200 pcur += ocrdma_add_stat(stats, pcur, "threshold_64G_to_128G_nsmr", in ocrdma_resource_stats()
202 pcur += ocrdma_add_stat(stats, pcur, "threshold_128G_to_higher_nsmr", in ocrdma_resource_stats()
204 pcur += ocrdma_add_stat(stats, pcur, "threshold_embedded_nsmr", in ocrdma_resource_stats()
206 pcur += ocrdma_add_stat(stats, pcur, "threshold_frmr", in ocrdma_resource_stats()
208 pcur += ocrdma_add_stat(stats, pcur, "threshold_prefetch_qps", in ocrdma_resource_stats()
210 pcur += ocrdma_add_stat(stats, pcur, "threshold_ondemand_qps", in ocrdma_resource_stats()
212 pcur += ocrdma_add_stat(stats, pcur, "threshold_phy_mr", in ocrdma_resource_stats()
214 pcur += ocrdma_add_stat(stats, pcur, "threshold_mw", in ocrdma_resource_stats()
221 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_rx_stats() local
228 pcur = stats; in ocrdma_rx_stats()
229 pcur += ocrdma_add_stat in ocrdma_rx_stats()
230 (stats, pcur, "roce_frame_bytes", in ocrdma_rx_stats()
233 pcur += ocrdma_add_stat(stats, pcur, "roce_frame_icrc_drops", in ocrdma_rx_stats()
235 pcur += ocrdma_add_stat(stats, pcur, "roce_frame_payload_len_drops", in ocrdma_rx_stats()
237 pcur += ocrdma_add_stat(stats, pcur, "ud_drops", in ocrdma_rx_stats()
239 pcur += ocrdma_add_stat(stats, pcur, "qp1_drops", in ocrdma_rx_stats()
241 pcur += ocrdma_add_stat(stats, pcur, "psn_error_request_packets", in ocrdma_rx_stats()
243 pcur += ocrdma_add_stat(stats, pcur, "psn_error_resp_packets", in ocrdma_rx_stats()
245 pcur += ocrdma_add_stat(stats, pcur, "rnr_nak_timeouts", in ocrdma_rx_stats()
247 pcur += ocrdma_add_stat(stats, pcur, "rnr_nak_receives", in ocrdma_rx_stats()
249 pcur += ocrdma_add_stat(stats, pcur, "roce_frame_rxmt_drops", in ocrdma_rx_stats()
251 pcur += ocrdma_add_stat(stats, pcur, "nak_count_psn_sequence_errors", in ocrdma_rx_stats()
253 pcur += ocrdma_add_stat(stats, pcur, "rc_drop_count_lookup_errors", in ocrdma_rx_stats()
255 pcur += ocrdma_add_stat(stats, pcur, "rq_rnr_naks", in ocrdma_rx_stats()
257 pcur += ocrdma_add_stat(stats, pcur, "srq_rnr_naks", in ocrdma_rx_stats()
259 pcur += ocrdma_add_stat(stats, pcur, "roce_frames", in ocrdma_rx_stats()
289 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_tx_stats() local
296 pcur = stats; in ocrdma_tx_stats()
297 pcur += ocrdma_add_stat(stats, pcur, "send_pkts", in ocrdma_tx_stats()
300 pcur += ocrdma_add_stat(stats, pcur, "write_pkts", in ocrdma_tx_stats()
303 pcur += ocrdma_add_stat(stats, pcur, "read_pkts", in ocrdma_tx_stats()
306 pcur += ocrdma_add_stat(stats, pcur, "read_rsp_pkts", in ocrdma_tx_stats()
309 pcur += ocrdma_add_stat(stats, pcur, "ack_pkts", in ocrdma_tx_stats()
312 pcur += ocrdma_add_stat(stats, pcur, "send_bytes", in ocrdma_tx_stats()
315 pcur += ocrdma_add_stat(stats, pcur, "write_bytes", in ocrdma_tx_stats()
318 pcur += ocrdma_add_stat(stats, pcur, "read_req_bytes", in ocrdma_tx_stats()
321 pcur += ocrdma_add_stat(stats, pcur, "read_rsp_bytes", in ocrdma_tx_stats()
324 pcur += ocrdma_add_stat(stats, pcur, "ack_timeouts", in ocrdma_tx_stats()
363 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_wqe_stats() local
370 pcur = stats; in ocrdma_wqe_stats()
371 pcur += ocrdma_add_stat(stats, pcur, "large_send_rc_wqes", in ocrdma_wqe_stats()
374 pcur += ocrdma_add_stat(stats, pcur, "large_write_rc_wqes", in ocrdma_wqe_stats()
377 pcur += ocrdma_add_stat(stats, pcur, "read_wqes", in ocrdma_wqe_stats()
380 pcur += ocrdma_add_stat(stats, pcur, "frmr_wqes", in ocrdma_wqe_stats()
383 pcur += ocrdma_add_stat(stats, pcur, "mw_bind_wqes", in ocrdma_wqe_stats()
386 pcur += ocrdma_add_stat(stats, pcur, "invalidate_wqes", in ocrdma_wqe_stats()
389 pcur += ocrdma_add_stat(stats, pcur, "dpp_wqe_drops", in ocrdma_wqe_stats()
396 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_db_errstats() local
403 pcur = stats; in ocrdma_db_errstats()
404 pcur += ocrdma_add_stat(stats, pcur, "sq_doorbell_errors", in ocrdma_db_errstats()
406 pcur += ocrdma_add_stat(stats, pcur, "cq_doorbell_errors", in ocrdma_db_errstats()
408 pcur += ocrdma_add_stat(stats, pcur, "rq_srq_doorbell_errors", in ocrdma_db_errstats()
410 pcur += ocrdma_add_stat(stats, pcur, "cq_overflow_errors", in ocrdma_db_errstats()
417 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_rxqp_errstats() local
425 pcur = stats; in ocrdma_rxqp_errstats()
426 pcur += ocrdma_add_stat(stats, pcur, "nak_invalid_request_errors", in ocrdma_rxqp_errstats()
428 pcur += ocrdma_add_stat(stats, pcur, "nak_remote_operation_errors", in ocrdma_rxqp_errstats()
430 pcur += ocrdma_add_stat(stats, pcur, "nak_count_remote_access_errors", in ocrdma_rxqp_errstats()
432 pcur += ocrdma_add_stat(stats, pcur, "local_length_errors", in ocrdma_rxqp_errstats()
434 pcur += ocrdma_add_stat(stats, pcur, "local_protection_errors", in ocrdma_rxqp_errstats()
436 pcur += ocrdma_add_stat(stats, pcur, "local_qp_operation_errors", in ocrdma_rxqp_errstats()
443 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_txqp_errstats() local
451 pcur = stats; in ocrdma_txqp_errstats()
452 pcur += ocrdma_add_stat(stats, pcur, "local_length_errors", in ocrdma_txqp_errstats()
454 pcur += ocrdma_add_stat(stats, pcur, "local_protection_errors", in ocrdma_txqp_errstats()
456 pcur += ocrdma_add_stat(stats, pcur, "local_qp_operation_errors", in ocrdma_txqp_errstats()
458 pcur += ocrdma_add_stat(stats, pcur, "retry_count_exceeded_errors", in ocrdma_txqp_errstats()
460 pcur += ocrdma_add_stat(stats, pcur, "rnr_retry_count_exceeded_errors", in ocrdma_txqp_errstats()
503 char *stats = dev->stats_mem.debugfs_mem, *pcur; in ocrdma_driver_dbg_stats() local
508 pcur = stats; in ocrdma_driver_dbg_stats()
509 pcur += ocrdma_add_stat(stats, pcur, "async_cq_err", in ocrdma_driver_dbg_stats()
512 pcur += ocrdma_add_stat(stats, pcur, "async_cq_overrun_err", in ocrdma_driver_dbg_stats()
515 pcur += ocrdma_add_stat(stats, pcur, "async_cq_qpcat_err", in ocrdma_driver_dbg_stats()
518 pcur += ocrdma_add_stat(stats, pcur, "async_qp_access_err", in ocrdma_driver_dbg_stats()
521 pcur += ocrdma_add_stat(stats, pcur, "async_qp_commm_est_evt", in ocrdma_driver_dbg_stats()
524 pcur += ocrdma_add_stat(stats, pcur, "async_sq_drained_evt", in ocrdma_driver_dbg_stats()
527 pcur += ocrdma_add_stat(stats, pcur, "async_dev_fatal_evt", in ocrdma_driver_dbg_stats()
530 pcur += ocrdma_add_stat(stats, pcur, "async_srqcat_err", in ocrdma_driver_dbg_stats()
533 pcur += ocrdma_add_stat(stats, pcur, "async_srq_limit_evt", in ocrdma_driver_dbg_stats()
536 pcur += ocrdma_add_stat(stats, pcur, "async_qp_last_wqe_evt", in ocrdma_driver_dbg_stats()
540 pcur += ocrdma_add_stat(stats, pcur, "cqe_loc_len_err", in ocrdma_driver_dbg_stats()
543 pcur += ocrdma_add_stat(stats, pcur, "cqe_loc_qp_op_err", in ocrdma_driver_dbg_stats()
546 pcur += ocrdma_add_stat(stats, pcur, "cqe_loc_eec_op_err", in ocrdma_driver_dbg_stats()
549 pcur += ocrdma_add_stat(stats, pcur, "cqe_loc_prot_err", in ocrdma_driver_dbg_stats()
552 pcur += ocrdma_add_stat(stats, pcur, "cqe_wr_flush_err", in ocrdma_driver_dbg_stats()
555 pcur += ocrdma_add_stat(stats, pcur, "cqe_mw_bind_err", in ocrdma_driver_dbg_stats()
558 pcur += ocrdma_add_stat(stats, pcur, "cqe_bad_resp_err", in ocrdma_driver_dbg_stats()
561 pcur += ocrdma_add_stat(stats, pcur, "cqe_loc_access_err", in ocrdma_driver_dbg_stats()
564 pcur += ocrdma_add_stat(stats, pcur, "cqe_rem_inv_req_err", in ocrdma_driver_dbg_stats()
567 pcur += ocrdma_add_stat(stats, pcur, "cqe_rem_access_err", in ocrdma_driver_dbg_stats()
570 pcur += ocrdma_add_stat(stats, pcur, "cqe_rem_op_err", in ocrdma_driver_dbg_stats()
573 pcur += ocrdma_add_stat(stats, pcur, "cqe_retry_exc_err", in ocrdma_driver_dbg_stats()
576 pcur += ocrdma_add_stat(stats, pcur, "cqe_rnr_retry_exc_err", in ocrdma_driver_dbg_stats()
579 pcur += ocrdma_add_stat(stats, pcur, "cqe_loc_rdd_viol_err", in ocrdma_driver_dbg_stats()
582 pcur += ocrdma_add_stat(stats, pcur, "cqe_rem_inv_rd_req_err", in ocrdma_driver_dbg_stats()
585 pcur += ocrdma_add_stat(stats, pcur, "cqe_rem_abort_err", in ocrdma_driver_dbg_stats()
588 pcur += ocrdma_add_stat(stats, pcur, "cqe_inv_eecn_err", in ocrdma_driver_dbg_stats()
591 pcur += ocrdma_add_stat(stats, pcur, "cqe_inv_eec_state_err", in ocrdma_driver_dbg_stats()
594 pcur += ocrdma_add_stat(stats, pcur, "cqe_fatal_err", in ocrdma_driver_dbg_stats()
597 pcur += ocrdma_add_stat(stats, pcur, "cqe_resp_timeout_err", in ocrdma_driver_dbg_stats()
600 pcur += ocrdma_add_stat(stats, pcur, "cqe_general_err", in ocrdma_driver_dbg_stats()