Lines Matching refs:chip_ctx
90 cctx = rdev->chip_ctx; in bnxt_re_set_drv_mode()
91 cctx->modes.wqe_mode = bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) ? in bnxt_re_set_drv_mode()
97 struct bnxt_qplib_chip_ctx *chip_ctx; in bnxt_re_destroy_chip_ctx() local
99 if (!rdev->chip_ctx) in bnxt_re_destroy_chip_ctx()
101 chip_ctx = rdev->chip_ctx; in bnxt_re_destroy_chip_ctx()
102 rdev->chip_ctx = NULL; in bnxt_re_destroy_chip_ctx()
107 kfree(chip_ctx); in bnxt_re_destroy_chip_ctx()
112 struct bnxt_qplib_chip_ctx *chip_ctx; in bnxt_re_setup_chip_ctx() local
119 chip_ctx = kzalloc(sizeof(*chip_ctx), GFP_KERNEL); in bnxt_re_setup_chip_ctx()
120 if (!chip_ctx) in bnxt_re_setup_chip_ctx()
122 chip_ctx->chip_num = bp->chip_num; in bnxt_re_setup_chip_ctx()
123 chip_ctx->hw_stats_size = bp->hw_ring_stats_size; in bnxt_re_setup_chip_ctx()
125 rdev->chip_ctx = chip_ctx; in bnxt_re_setup_chip_ctx()
128 rdev->qplib_res.cctx = rdev->chip_ctx; in bnxt_re_setup_chip_ctx()
173 if (!bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx)) in bnxt_re_limit_pf_res()
222 num_vfs = bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) ? in bnxt_re_set_resource_limits()
278 if (!bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx)) { in bnxt_re_sriov_config()
557 struct bnxt_qplib_chip_ctx *chip_ctx = rdev->chip_ctx; in bnxt_re_net_stats_ctx_alloc() local
574 req.stats_dma_length = cpu_to_le16(chip_ctx->hw_stats_size); in bnxt_re_net_stats_ctx_alloc()
931 return bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) ? in bnxt_re_get_nqdb_offset()
982 type = bnxt_qplib_get_ring_type(rdev->chip_ctx); in bnxt_re_free_nq_res()
1040 type = bnxt_qplib_get_ring_type(rdev->chip_ctx); in bnxt_re_alloc_res()
1060 type = bnxt_qplib_get_ring_type(rdev->chip_ctx); in bnxt_re_alloc_res()
1362 type = bnxt_qplib_get_ring_type(rdev->chip_ctx); in bnxt_re_dev_uninit()
1443 type = bnxt_qplib_get_ring_type(rdev->chip_ctx); in bnxt_re_dev_init()
1475 bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx)); in bnxt_re_dev_init()
1535 type = bnxt_qplib_get_ring_type(rdev->chip_ctx); in bnxt_re_dev_init()