Lines Matching refs:ctx_pg
4055 struct bnxt_ctx_pg_info *ctx_pg, in bnxt_alloc_ctx_mem_blk() argument
4060 struct bnxt_ring_mem_info *rmem = &ctx_pg->ring_mem; in bnxt_alloc_ctx_mem_blk()
4074 rmem->pg_arr = ctx_pg->ctx_pg_arr; in bnxt_alloc_ctx_mem_blk()
4075 rmem->dma_arr = ctx_pg->ctx_dma_arr; in bnxt_alloc_ctx_mem_blk()
4192 struct bnxt_ctx_pg_info *ctx_pg; in bnxt_alloc_ctx_mem() local
4207 ctx_pg = &ctx->qp_mem; in bnxt_alloc_ctx_mem()
4208 ctx_pg->entries = ctx->qp_min_qp1_entries + ctx->qp_max_l2_entries; in bnxt_alloc_ctx_mem()
4209 mem_size = ctx->qp_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem()
4210 rc = bnxt_alloc_ctx_mem_blk(bp, ctx_pg, mem_size, "qp_mem", 0); in bnxt_alloc_ctx_mem()
4214 ctx_pg = &ctx->srq_mem; in bnxt_alloc_ctx_mem()
4215 ctx_pg->entries = ctx->srq_max_l2_entries; in bnxt_alloc_ctx_mem()
4216 mem_size = ctx->srq_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem()
4217 rc = bnxt_alloc_ctx_mem_blk(bp, ctx_pg, mem_size, "srq_mem", 0); in bnxt_alloc_ctx_mem()
4221 ctx_pg = &ctx->cq_mem; in bnxt_alloc_ctx_mem()
4222 ctx_pg->entries = ctx->cq_max_l2_entries; in bnxt_alloc_ctx_mem()
4223 mem_size = ctx->cq_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem()
4224 rc = bnxt_alloc_ctx_mem_blk(bp, ctx_pg, mem_size, "cq_mem", 0); in bnxt_alloc_ctx_mem()
4228 ctx_pg = &ctx->vnic_mem; in bnxt_alloc_ctx_mem()
4229 ctx_pg->entries = ctx->vnic_max_vnic_entries + in bnxt_alloc_ctx_mem()
4231 mem_size = ctx->vnic_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem()
4232 rc = bnxt_alloc_ctx_mem_blk(bp, ctx_pg, mem_size, "vnic_mem", 0); in bnxt_alloc_ctx_mem()
4236 ctx_pg = &ctx->stat_mem; in bnxt_alloc_ctx_mem()
4237 ctx_pg->entries = ctx->stat_max_entries; in bnxt_alloc_ctx_mem()
4238 mem_size = ctx->stat_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem()
4239 rc = bnxt_alloc_ctx_mem_blk(bp, ctx_pg, mem_size, "stat_mem", 0); in bnxt_alloc_ctx_mem()
4255 ctx_pg = ctx->tqm_mem[i]; in bnxt_alloc_ctx_mem()
4256 ctx_pg->entries = i ? entries : entries_sp; in bnxt_alloc_ctx_mem()
4257 mem_size = ctx->tqm_entry_size * ctx_pg->entries; in bnxt_alloc_ctx_mem()
4258 rc = bnxt_alloc_ctx_mem_blk(bp, ctx_pg, mem_size, "tqm_mem", i); in bnxt_alloc_ctx_mem()