Searched refs:ctx_pg (Results 1 – 3 of 3) sorted by relevance
126 struct bnge_ctx_pg_info *ctx_pg) in bnge_alloc_ctx_one_lvl() argument128 struct bnge_ring_mem_info *rmem = &ctx_pg->ring_mem; in bnge_alloc_ctx_one_lvl()131 rmem->pg_arr = ctx_pg->ctx_pg_arr; in bnge_alloc_ctx_one_lvl()132 rmem->dma_arr = ctx_pg->ctx_dma_arr; in bnge_alloc_ctx_one_lvl()140 struct bnge_ctx_pg_info *ctx_pg, u32 mem_size, in bnge_alloc_ctx_pg_tbls() argument143 struct bnge_ring_mem_info *rmem = &ctx_pg->ring_mem; in bnge_alloc_ctx_pg_tbls()149 ctx_pg->nr_pages = DIV_ROUND_UP(mem_size, BNGE_PAGE_SIZE); in bnge_alloc_ctx_pg_tbls()150 if (ctx_pg->nr_pages > MAX_CTX_TOTAL_PAGES) { in bnge_alloc_ctx_pg_tbls()151 ctx_pg->nr_pages = 0; in bnge_alloc_ctx_pg_tbls()154 if (ctx_pg->nr_pages > MAX_CTX_PAGES || depth > 1) { in bnge_alloc_ctx_pg_tbls()[all …]
362 struct bnge_ctx_pg_info *ctx_pg; in bnge_hwrm_func_backing_store() local367 ctx_pg = &ctxm->pg_info[j++]; in bnge_hwrm_func_backing_store()368 if (!ctx_pg->entries) in bnge_hwrm_func_backing_store()370 req->num_entries = cpu_to_le32(ctx_pg->entries); in bnge_hwrm_func_backing_store()371 bnge_hwrm_set_pg_attr(&ctx_pg->ring_mem, in bnge_hwrm_func_backing_store()
2556 struct bnxt_ctx_pg_info *ctx_pg = ctxm->pg_info; in bnxt_bs_trace_init() local2571 rmem = &ctx_pg[0].ring_mem; in bnxt_bs_trace_init()2578 rmem_pg_tbl = &ctx_pg[0].ctx_pg_tbl[last_pg_dir]->ring_mem; in bnxt_bs_trace_init()8803 struct bnxt_ctx_pg_info *ctx_pg; in bnxt_hwrm_func_backing_store_cfg() local8827 ctx_pg = ctxm->pg_info; in bnxt_hwrm_func_backing_store_cfg()8828 req->qp_num_entries = cpu_to_le32(ctx_pg->entries); in bnxt_hwrm_func_backing_store_cfg()8832 bnxt_hwrm_set_pg_attr(&ctx_pg->ring_mem, in bnxt_hwrm_func_backing_store_cfg()8841 ctx_pg = ctxm->pg_info; in bnxt_hwrm_func_backing_store_cfg()8842 req->srq_num_entries = cpu_to_le32(ctx_pg->entries); in bnxt_hwrm_func_backing_store_cfg()8845 bnxt_hwrm_set_pg_attr(&ctx_pg->ring_mem, in bnxt_hwrm_func_backing_store_cfg()[all …]