Home
last modified time | relevance | path

Searched refs:chip_ctx (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/infiniband/hw/bng_re/
H A Dbng_dev.c55 struct bng_re_chip_ctx *chip_ctx; in bng_re_destroy_chip_ctx() local
60 chip_ctx = rdev->chip_ctx; in bng_re_destroy_chip_ctx()
61 rdev->chip_ctx = NULL; in bng_re_destroy_chip_ctx()
65 kfree(chip_ctx); in bng_re_destroy_chip_ctx()
70 struct bng_re_chip_ctx *chip_ctx; in bng_re_setup_chip_ctx() local
77 chip_ctx = kzalloc_obj(*chip_ctx); in bng_re_setup_chip_ctx()
78 if (!chip_ctx) in bng_re_setup_chip_ctx()
80 chip_ctx->chip_num = aux_dev->chip_num; in bng_re_setup_chip_ctx()
81 chip_ctx->hw_stats_size = aux_dev->hw_ring_stats_size; in bng_re_setup_chip_ctx()
83 rdev->chip_ctx = chip_ctx; in bng_re_setup_chip_ctx()
[all …]
H A Dbng_re.h74 struct bng_re_chip_ctx *chip_ctx; member
/linux/drivers/infiniband/hw/bnxt_re/
H A Dmain.c101 cctx = rdev->chip_ctx; in bnxt_re_set_db_offset()
134 cctx = rdev->chip_ctx; in bnxt_re_set_drv_mode()
135 cctx->modes.wqe_mode = bnxt_qplib_is_chip_gen_p7(rdev->chip_ctx) ? in bnxt_re_set_drv_mode()
140 if (bnxt_qplib_is_chip_gen_p7(rdev->chip_ctx)) { in bnxt_re_set_drv_mode()
148 struct bnxt_qplib_chip_ctx *chip_ctx; in bnxt_re_destroy_chip_ctx() local
150 if (!rdev->chip_ctx) in bnxt_re_destroy_chip_ctx()
156 chip_ctx = rdev->chip_ctx; in bnxt_re_destroy_chip_ctx()
157 rdev->chip_ctx = NULL; in bnxt_re_destroy_chip_ctx()
162 kfree(chip_ctx); in bnxt_re_destroy_chip_ctx()
167 struct bnxt_qplib_chip_ctx *chip_ctx; in bnxt_re_setup_chip_ctx() local
[all …]
H A Dhw_counters.c291 if ((bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) && rdev->is_virtfn) || in bnxt_re_assign_pma_port_ext_counters()
292 !bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx)) { in bnxt_re_assign_pma_port_ext_counters()
334 if ((bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) && rdev->is_virtfn) || in bnxt_re_assign_pma_port_counters()
335 !bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx)) { in bnxt_re_assign_pma_port_counters()
404 if (bnxt_ext_stats_supported(rdev->chip_ctx, rdev->dev_attr->dev_cap_flags, in bnxt_re_ib_get_hw_stats()
416 return bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx) ? in bnxt_re_ib_get_hw_stats()
426 if (bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx)) in bnxt_re_ib_alloc_hw_port_stats()
H A Dbnxt_re.h185 struct bnxt_qplib_chip_ctx *chip_ctx; member
273 if (!bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx) || in bnxt_re_read_context_allowed()
290 ((rdev)->chip_ctx->hwrm_cmd_max_timeout * 1000)
H A Dib_verbs.c491 if (bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx)) in bnxt_re_create_fence_wqe()
547 if (bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx)) in bnxt_re_destroy_fence_mr()
581 if (bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx)) in bnxt_re_create_fence_mr()
1133 psn_sz = bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx) ? in bnxt_re_init_user_qp()
1352 if (!bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx)) { in bnxt_re_adjust_gsi_rq_attr()
1431 if (!bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx)) { in bnxt_re_adjust_gsi_sq_attr()
1446 struct bnxt_qplib_chip_ctx *chip_ctx; in bnxt_re_init_qp_type() local
1449 chip_ctx = rdev->chip_ctx; in bnxt_re_init_qp_type()
1458 if (bnxt_qplib_is_chip_gen_p5_p7(chip_ctx) && in bnxt_re_init_qp_type()
1690 !(bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx))) { in bnxt_re_create_qp()
[all …]
H A Dib_verbs.h199 return rdev->chip_ctx->modes.wqe_mode; in bnxt_re_is_var_size_supported()