Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_rmem.c157 if (ctx_pg->nr_pages > MAX_CTX_PAGES || depth > 1) { in bnge_alloc_ctx_pg_tbls()
161 ctx_pg->ctx_pg_tbl = kzalloc_objs(ctx_pg, MAX_CTX_PAGES); in bnge_alloc_ctx_pg_tbls()
164 nr_tbls = DIV_ROUND_UP(ctx_pg->nr_pages, MAX_CTX_PAGES); in bnge_alloc_ctx_pg_tbls()
180 rmem->nr_pages = MAX_CTX_PAGES; in bnge_alloc_ctx_pg_tbls()
183 int rem = ctx_pg->nr_pages % MAX_CTX_PAGES; in bnge_alloc_ctx_pg_tbls()
208 if (rmem->depth > 1 || ctx_pg->nr_pages > MAX_CTX_PAGES || in bnge_free_ctx_pg_tbls()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.h1893 #define MAX_CTX_PAGES (BNXT_PAGE_SIZE / 8)
1894 #define MAX_CTX_TOTAL_PAGES (MAX_CTX_PAGES * MAX_CTX_PAGES)
1901 void *ctx_pg_arr[MAX_CTX_PAGES];
1902 dma_addr_t ctx_dma_arr[MAX_CTX_PAGES];
1878 #define MAX_CTX_PAGES global() macro
H A Dbnxt.c2606 last_pg = (pages - 1) & (MAX_CTX_PAGES - 1);
2613 if (pages > MAX_CTX_PAGES) {
3664 start_idx = head_page % MAX_CTX_PAGES; in bnxt_free_ring()
9135 if (ctx_pg->nr_pages > MAX_CTX_PAGES || depth > 1) { in bnxt_free_ctx_pg_tbls()
9139 ctx_pg->ctx_pg_tbl = kzalloc_objs(ctx_pg, MAX_CTX_PAGES); in bnxt_free_ctx_pg_tbls()
9142 nr_tbls = DIV_ROUND_UP(ctx_pg->nr_pages, MAX_CTX_PAGES); in bnxt_free_ctx_pg_tbls()
9158 rmem->nr_pages = MAX_CTX_PAGES; in bnxt_setup_ctxm_pg_tbls()
9161 int rem = ctx_pg->nr_pages % MAX_CTX_PAGES; in bnxt_setup_ctxm_pg_tbls()
9194 int i = head / (page_size * MAX_CTX_PAGES); in bnxt_hwrm_func_backing_store_cfg_v2()
9215 if (rmem->depth > 1 || ctx_pg->nr_pages > MAX_CTX_PAGES || in bnxt_hwrm_func_backing_store_cfg_v2()
[all...]