Home
last modified time | relevance | path

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

/drivers/net/ethernet/broadcom/bnge/
A Dbnge_rmem.h56 #define MAX_CTX_PAGES (BNGE_PAGE_SIZE / 8) macro
57 #define MAX_CTX_TOTAL_PAGES (MAX_CTX_PAGES * MAX_CTX_PAGES)
62 void *ctx_pg_arr[MAX_CTX_PAGES];
63 dma_addr_t ctx_dma_arr[MAX_CTX_PAGES];
A Dbnge_rmem.c154 if (ctx_pg->nr_pages > MAX_CTX_PAGES || depth > 1) { in bnge_alloc_ctx_pg_tbls()
158 ctx_pg->ctx_pg_tbl = kcalloc(MAX_CTX_PAGES, sizeof(ctx_pg), in bnge_alloc_ctx_pg_tbls()
162 nr_tbls = DIV_ROUND_UP(ctx_pg->nr_pages, MAX_CTX_PAGES); in bnge_alloc_ctx_pg_tbls()
178 rmem->nr_pages = MAX_CTX_PAGES; in bnge_alloc_ctx_pg_tbls()
181 int rem = ctx_pg->nr_pages % MAX_CTX_PAGES; in bnge_alloc_ctx_pg_tbls()
206 if (rmem->depth > 1 || ctx_pg->nr_pages > MAX_CTX_PAGES || in bnge_free_ctx_pg_tbls()
/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt.h1868 #define MAX_CTX_PAGES (BNXT_PAGE_SIZE / 8) macro
1869 #define MAX_CTX_TOTAL_PAGES (MAX_CTX_PAGES * MAX_CTX_PAGES)
1876 void *ctx_pg_arr[MAX_CTX_PAGES];
1877 dma_addr_t ctx_dma_arr[MAX_CTX_PAGES];
A Dbnxt.c2568 last_pg = (pages - 1) & (MAX_CTX_PAGES - 1); in bnxt_bs_trace_init()
2575 if (pages > MAX_CTX_PAGES) { in bnxt_bs_trace_init()
3602 start_idx = head_page % MAX_CTX_PAGES; in __bnxt_copy_ring()
8952 if (ctx_pg->nr_pages > MAX_CTX_PAGES || depth > 1) { in bnxt_alloc_ctx_pg_tbls()
8956 ctx_pg->ctx_pg_tbl = kcalloc(MAX_CTX_PAGES, sizeof(ctx_pg), in bnxt_alloc_ctx_pg_tbls()
8960 nr_tbls = DIV_ROUND_UP(ctx_pg->nr_pages, MAX_CTX_PAGES); in bnxt_alloc_ctx_pg_tbls()
8976 rmem->nr_pages = MAX_CTX_PAGES; in bnxt_alloc_ctx_pg_tbls()
8979 int rem = ctx_pg->nr_pages % MAX_CTX_PAGES; in bnxt_alloc_ctx_pg_tbls()
9012 int i = head / (page_size * MAX_CTX_PAGES); in bnxt_copy_ctx_pg_tbls()
9033 if (rmem->depth > 1 || ctx_pg->nr_pages > MAX_CTX_PAGES || in bnxt_free_ctx_pg_tbls()

Completed in 46 milliseconds