Home
last modified time | relevance | path

Searched refs:ctx_pg (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_rmem.c129 struct bnge_ctx_pg_info *ctx_pg) in bnge_alloc_ctx_one_lvl() argument
131 struct bnge_ring_mem_info *rmem = &ctx_pg->ring_mem; in bnge_alloc_ctx_one_lvl()
134 rmem->pg_arr = ctx_pg->ctx_pg_arr; in bnge_alloc_ctx_one_lvl()
135 rmem->dma_arr = ctx_pg->ctx_dma_arr; in bnge_alloc_ctx_one_lvl()
143 struct bnge_ctx_pg_info *ctx_pg, u32 mem_size, in bnge_alloc_ctx_pg_tbls() argument
146 struct bnge_ring_mem_info *rmem = &ctx_pg->ring_mem; in bnge_alloc_ctx_pg_tbls()
152 ctx_pg->nr_pages = DIV_ROUND_UP(mem_size, BNGE_PAGE_SIZE); in bnge_alloc_ctx_pg_tbls()
153 if (ctx_pg->nr_pages > MAX_CTX_TOTAL_PAGES) { in bnge_alloc_ctx_pg_tbls()
154 ctx_pg->nr_pages = 0; in bnge_alloc_ctx_pg_tbls()
157 if (ctx_pg->nr_pages > MAX_CTX_PAGES || depth > 1) { in bnge_alloc_ctx_pg_tbls()
[all …]
H A Dbnge_hwrm_lib.c364 struct bnge_ctx_pg_info *ctx_pg; in bnge_hwrm_func_backing_store() local
369 ctx_pg = &ctxm->pg_info[j++]; in bnge_hwrm_func_backing_store()
370 if (!ctx_pg->entries) in bnge_hwrm_func_backing_store()
372 req->num_entries = cpu_to_le32(ctx_pg->entries); in bnge_hwrm_func_backing_store()
373 bnge_hwrm_set_pg_attr(&ctx_pg->ring_mem, in bnge_hwrm_func_backing_store()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c2572 struct bnxt_ctx_pg_info *ctx_pg = ctxm->pg_info; in bnxt_bs_trace_init() local
2587 rmem = &ctx_pg[0].ring_mem; in bnxt_bs_trace_init()
2594 rmem_pg_tbl = &ctx_pg[0].ctx_pg_tbl[last_pg_dir]->ring_mem; in bnxt_bs_trace_init()
8884 struct bnxt_ctx_pg_info *ctx_pg; in bnxt_hwrm_func_backing_store_cfg() local
8908 ctx_pg = ctxm->pg_info; in bnxt_hwrm_func_backing_store_cfg()
8909 req->qp_num_entries = cpu_to_le32(ctx_pg->entries); in bnxt_hwrm_func_backing_store_cfg()
8913 bnxt_hwrm_set_pg_attr(&ctx_pg->ring_mem, in bnxt_hwrm_func_backing_store_cfg()
8922 ctx_pg = ctxm->pg_info; in bnxt_hwrm_func_backing_store_cfg()
8923 req->srq_num_entries = cpu_to_le32(ctx_pg->entries); in bnxt_hwrm_func_backing_store_cfg()
8926 bnxt_hwrm_set_pg_attr(&ctx_pg->ring_mem, in bnxt_hwrm_func_backing_store_cfg()
[all …]