Lines Matching refs:flow_stat
252 rte_free(bp->flow_stat); in bnxt_free_flow_stats_info()
253 bp->flow_stat = NULL; in bnxt_free_flow_stats_info()
350 bp->flow_stat = rte_zmalloc("bnxt_flow_xstat", in bnxt_alloc_flow_stats_info()
352 if (bp->flow_stat == NULL) in bnxt_alloc_flow_stats_info()
497 rc = bnxt_hwrm_ctx_rgtr(bp, bp->flow_stat->rx_fc_in_tbl.dma, in bnxt_register_fc_ctx_mem()
498 &bp->flow_stat->rx_fc_in_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
505 bp->flow_stat->rx_fc_in_tbl.va, in bnxt_register_fc_ctx_mem()
506 (void *)((uintptr_t)bp->flow_stat->rx_fc_in_tbl.dma), in bnxt_register_fc_ctx_mem()
507 bp->flow_stat->rx_fc_in_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
509 rc = bnxt_hwrm_ctx_rgtr(bp, bp->flow_stat->rx_fc_out_tbl.dma, in bnxt_register_fc_ctx_mem()
510 &bp->flow_stat->rx_fc_out_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
517 bp->flow_stat->rx_fc_out_tbl.va, in bnxt_register_fc_ctx_mem()
518 (void *)((uintptr_t)bp->flow_stat->rx_fc_out_tbl.dma), in bnxt_register_fc_ctx_mem()
519 bp->flow_stat->rx_fc_out_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
521 rc = bnxt_hwrm_ctx_rgtr(bp, bp->flow_stat->tx_fc_in_tbl.dma, in bnxt_register_fc_ctx_mem()
522 &bp->flow_stat->tx_fc_in_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
529 bp->flow_stat->tx_fc_in_tbl.va, in bnxt_register_fc_ctx_mem()
530 (void *)((uintptr_t)bp->flow_stat->tx_fc_in_tbl.dma), in bnxt_register_fc_ctx_mem()
531 bp->flow_stat->tx_fc_in_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
533 rc = bnxt_hwrm_ctx_rgtr(bp, bp->flow_stat->tx_fc_out_tbl.dma, in bnxt_register_fc_ctx_mem()
534 &bp->flow_stat->tx_fc_out_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
541 bp->flow_stat->tx_fc_out_tbl.va, in bnxt_register_fc_ctx_mem()
542 (void *)((uintptr_t)bp->flow_stat->tx_fc_out_tbl.dma), in bnxt_register_fc_ctx_mem()
543 bp->flow_stat->tx_fc_out_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
545 memset(bp->flow_stat->rx_fc_out_tbl.va, in bnxt_register_fc_ctx_mem()
547 bp->flow_stat->rx_fc_out_tbl.size); in bnxt_register_fc_ctx_mem()
550 bp->flow_stat->rx_fc_out_tbl.ctx_id, in bnxt_register_fc_ctx_mem()
551 bp->flow_stat->max_fc, in bnxt_register_fc_ctx_mem()
556 memset(bp->flow_stat->tx_fc_out_tbl.va, in bnxt_register_fc_ctx_mem()
558 bp->flow_stat->tx_fc_out_tbl.size); in bnxt_register_fc_ctx_mem()
561 bp->flow_stat->tx_fc_out_tbl.ctx_id, in bnxt_register_fc_ctx_mem()
562 bp->flow_stat->max_fc, in bnxt_register_fc_ctx_mem()
593 max_fc = bp->flow_stat->max_fc; in bnxt_init_fc_ctx_mem()
600 &bp->flow_stat->rx_fc_in_tbl); in bnxt_init_fc_ctx_mem()
609 &bp->flow_stat->rx_fc_out_tbl); in bnxt_init_fc_ctx_mem()
618 &bp->flow_stat->tx_fc_in_tbl); in bnxt_init_fc_ctx_mem()
627 &bp->flow_stat->tx_fc_out_tbl); in bnxt_init_fc_ctx_mem()
645 rc = bnxt_hwrm_cfa_counter_qcaps(bp, &bp->flow_stat->max_fc); in bnxt_init_ctx_mem()
1427 bp->flow_stat->flow_count = 0; in bnxt_dev_stop_op()
5330 bp->flow_stat->rx_fc_out_tbl.ctx_id, in bnxt_unregister_fc_ctx_mem()
5331 bp->flow_stat->max_fc, in bnxt_unregister_fc_ctx_mem()
5336 bp->flow_stat->tx_fc_out_tbl.ctx_id, in bnxt_unregister_fc_ctx_mem()
5337 bp->flow_stat->max_fc, in bnxt_unregister_fc_ctx_mem()
5340 if (bp->flow_stat->rx_fc_in_tbl.ctx_id != BNXT_CTX_VAL_INVAL) in bnxt_unregister_fc_ctx_mem()
5341 bnxt_hwrm_ctx_unrgtr(bp, bp->flow_stat->rx_fc_in_tbl.ctx_id); in bnxt_unregister_fc_ctx_mem()
5342 bp->flow_stat->rx_fc_in_tbl.ctx_id = BNXT_CTX_VAL_INVAL; in bnxt_unregister_fc_ctx_mem()
5344 if (bp->flow_stat->rx_fc_out_tbl.ctx_id != BNXT_CTX_VAL_INVAL) in bnxt_unregister_fc_ctx_mem()
5345 bnxt_hwrm_ctx_unrgtr(bp, bp->flow_stat->rx_fc_out_tbl.ctx_id); in bnxt_unregister_fc_ctx_mem()
5346 bp->flow_stat->rx_fc_out_tbl.ctx_id = BNXT_CTX_VAL_INVAL; in bnxt_unregister_fc_ctx_mem()
5348 if (bp->flow_stat->tx_fc_in_tbl.ctx_id != BNXT_CTX_VAL_INVAL) in bnxt_unregister_fc_ctx_mem()
5349 bnxt_hwrm_ctx_unrgtr(bp, bp->flow_stat->tx_fc_in_tbl.ctx_id); in bnxt_unregister_fc_ctx_mem()
5350 bp->flow_stat->tx_fc_in_tbl.ctx_id = BNXT_CTX_VAL_INVAL; in bnxt_unregister_fc_ctx_mem()
5352 if (bp->flow_stat->tx_fc_out_tbl.ctx_id != BNXT_CTX_VAL_INVAL) in bnxt_unregister_fc_ctx_mem()
5353 bnxt_hwrm_ctx_unrgtr(bp, bp->flow_stat->tx_fc_out_tbl.ctx_id); in bnxt_unregister_fc_ctx_mem()
5354 bp->flow_stat->tx_fc_out_tbl.ctx_id = BNXT_CTX_VAL_INVAL; in bnxt_unregister_fc_ctx_mem()
5361 bnxt_free_ctx_mem_buf(&bp->flow_stat->rx_fc_in_tbl); in bnxt_uninit_fc_ctx_mem()
5362 bnxt_free_ctx_mem_buf(&bp->flow_stat->rx_fc_out_tbl); in bnxt_uninit_fc_ctx_mem()
5363 bnxt_free_ctx_mem_buf(&bp->flow_stat->tx_fc_in_tbl); in bnxt_uninit_fc_ctx_mem()
5364 bnxt_free_ctx_mem_buf(&bp->flow_stat->tx_fc_out_tbl); in bnxt_uninit_fc_ctx_mem()