Lines Matching refs:flow_stat
248 rte_free(bp->flow_stat); in bnxt_free_flow_stats_info()
249 bp->flow_stat = NULL; in bnxt_free_flow_stats_info()
348 bp->flow_stat = rte_zmalloc("bnxt_flow_xstat", in bnxt_alloc_flow_stats_info()
350 if (bp->flow_stat == NULL) in bnxt_alloc_flow_stats_info()
505 rc = bnxt_hwrm_ctx_rgtr(bp, bp->flow_stat->rx_fc_in_tbl.dma, in bnxt_register_fc_ctx_mem()
506 &bp->flow_stat->rx_fc_in_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
513 bp->flow_stat->rx_fc_in_tbl.va, in bnxt_register_fc_ctx_mem()
514 (void *)((uintptr_t)bp->flow_stat->rx_fc_in_tbl.dma), in bnxt_register_fc_ctx_mem()
515 bp->flow_stat->rx_fc_in_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
517 rc = bnxt_hwrm_ctx_rgtr(bp, bp->flow_stat->rx_fc_out_tbl.dma, in bnxt_register_fc_ctx_mem()
518 &bp->flow_stat->rx_fc_out_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
525 bp->flow_stat->rx_fc_out_tbl.va, in bnxt_register_fc_ctx_mem()
526 (void *)((uintptr_t)bp->flow_stat->rx_fc_out_tbl.dma), in bnxt_register_fc_ctx_mem()
527 bp->flow_stat->rx_fc_out_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
529 rc = bnxt_hwrm_ctx_rgtr(bp, bp->flow_stat->tx_fc_in_tbl.dma, in bnxt_register_fc_ctx_mem()
530 &bp->flow_stat->tx_fc_in_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
537 bp->flow_stat->tx_fc_in_tbl.va, in bnxt_register_fc_ctx_mem()
538 (void *)((uintptr_t)bp->flow_stat->tx_fc_in_tbl.dma), in bnxt_register_fc_ctx_mem()
539 bp->flow_stat->tx_fc_in_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
541 rc = bnxt_hwrm_ctx_rgtr(bp, bp->flow_stat->tx_fc_out_tbl.dma, in bnxt_register_fc_ctx_mem()
542 &bp->flow_stat->tx_fc_out_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
549 bp->flow_stat->tx_fc_out_tbl.va, in bnxt_register_fc_ctx_mem()
550 (void *)((uintptr_t)bp->flow_stat->tx_fc_out_tbl.dma), in bnxt_register_fc_ctx_mem()
551 bp->flow_stat->tx_fc_out_tbl.ctx_id); in bnxt_register_fc_ctx_mem()
553 memset(bp->flow_stat->rx_fc_out_tbl.va, in bnxt_register_fc_ctx_mem()
555 bp->flow_stat->rx_fc_out_tbl.size); in bnxt_register_fc_ctx_mem()
558 bp->flow_stat->rx_fc_out_tbl.ctx_id, in bnxt_register_fc_ctx_mem()
559 bp->flow_stat->max_fc, in bnxt_register_fc_ctx_mem()
564 memset(bp->flow_stat->tx_fc_out_tbl.va, in bnxt_register_fc_ctx_mem()
566 bp->flow_stat->tx_fc_out_tbl.size); in bnxt_register_fc_ctx_mem()
569 bp->flow_stat->tx_fc_out_tbl.ctx_id, in bnxt_register_fc_ctx_mem()
570 bp->flow_stat->max_fc, in bnxt_register_fc_ctx_mem()
602 max_fc = bp->flow_stat->max_fc; in bnxt_init_fc_ctx_mem()
609 &bp->flow_stat->rx_fc_in_tbl); in bnxt_init_fc_ctx_mem()
618 &bp->flow_stat->rx_fc_out_tbl); in bnxt_init_fc_ctx_mem()
627 &bp->flow_stat->tx_fc_in_tbl); in bnxt_init_fc_ctx_mem()
636 &bp->flow_stat->tx_fc_out_tbl); in bnxt_init_fc_ctx_mem()
654 rc = bnxt_hwrm_cfa_counter_qcaps(bp, &bp->flow_stat->max_fc); in bnxt_init_ctx_mem()
1539 bp->flow_stat->flow_count = 0; in bnxt_dev_stop()
5915 bp->flow_stat->rx_fc_out_tbl.ctx_id, in bnxt_unregister_fc_ctx_mem()
5916 bp->flow_stat->max_fc, in bnxt_unregister_fc_ctx_mem()
5921 bp->flow_stat->tx_fc_out_tbl.ctx_id, in bnxt_unregister_fc_ctx_mem()
5922 bp->flow_stat->max_fc, in bnxt_unregister_fc_ctx_mem()
5925 if (bp->flow_stat->rx_fc_in_tbl.ctx_id != BNXT_CTX_VAL_INVAL) in bnxt_unregister_fc_ctx_mem()
5926 bnxt_hwrm_ctx_unrgtr(bp, bp->flow_stat->rx_fc_in_tbl.ctx_id); in bnxt_unregister_fc_ctx_mem()
5927 bp->flow_stat->rx_fc_in_tbl.ctx_id = BNXT_CTX_VAL_INVAL; in bnxt_unregister_fc_ctx_mem()
5929 if (bp->flow_stat->rx_fc_out_tbl.ctx_id != BNXT_CTX_VAL_INVAL) in bnxt_unregister_fc_ctx_mem()
5930 bnxt_hwrm_ctx_unrgtr(bp, bp->flow_stat->rx_fc_out_tbl.ctx_id); in bnxt_unregister_fc_ctx_mem()
5931 bp->flow_stat->rx_fc_out_tbl.ctx_id = BNXT_CTX_VAL_INVAL; in bnxt_unregister_fc_ctx_mem()
5933 if (bp->flow_stat->tx_fc_in_tbl.ctx_id != BNXT_CTX_VAL_INVAL) in bnxt_unregister_fc_ctx_mem()
5934 bnxt_hwrm_ctx_unrgtr(bp, bp->flow_stat->tx_fc_in_tbl.ctx_id); in bnxt_unregister_fc_ctx_mem()
5935 bp->flow_stat->tx_fc_in_tbl.ctx_id = BNXT_CTX_VAL_INVAL; in bnxt_unregister_fc_ctx_mem()
5937 if (bp->flow_stat->tx_fc_out_tbl.ctx_id != BNXT_CTX_VAL_INVAL) in bnxt_unregister_fc_ctx_mem()
5938 bnxt_hwrm_ctx_unrgtr(bp, bp->flow_stat->tx_fc_out_tbl.ctx_id); in bnxt_unregister_fc_ctx_mem()
5939 bp->flow_stat->tx_fc_out_tbl.ctx_id = BNXT_CTX_VAL_INVAL; in bnxt_unregister_fc_ctx_mem()
5946 bnxt_free_ctx_mem_buf(&bp->flow_stat->rx_fc_in_tbl); in bnxt_uninit_fc_ctx_mem()
5947 bnxt_free_ctx_mem_buf(&bp->flow_stat->rx_fc_out_tbl); in bnxt_uninit_fc_ctx_mem()
5948 bnxt_free_ctx_mem_buf(&bp->flow_stat->tx_fc_in_tbl); in bnxt_uninit_fc_ctx_mem()
5949 bnxt_free_ctx_mem_buf(&bp->flow_stat->tx_fc_out_tbl); in bnxt_uninit_fc_ctx_mem()