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.h57 #define MAX_CTX_PAGES (BNGE_PAGE_SIZE / 8) macro
58 #define MAX_CTX_TOTAL_PAGES (MAX_CTX_PAGES * MAX_CTX_PAGES)
63 void *ctx_pg_arr[MAX_CTX_PAGES];
64 dma_addr_t ctx_dma_arr[MAX_CTX_PAGES];
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.h1895 #define MAX_CTX_PAGES (BNXT_PAGE_SIZE / 8) macro
1896 #define MAX_CTX_TOTAL_PAGES (MAX_CTX_PAGES * MAX_CTX_PAGES)
1903 void *ctx_pg_arr[MAX_CTX_PAGES];
1904 dma_addr_t ctx_dma_arr[MAX_CTX_PAGES];
H A Dbnxt.c2637 last_pg = (pages - 1) & (MAX_CTX_PAGES - 1); in bnxt_bs_trace_init()
2644 if (pages > MAX_CTX_PAGES) { in bnxt_bs_trace_init()
3695 start_idx = head_page % MAX_CTX_PAGES; in __bnxt_copy_ring()
9187 if (ctx_pg->nr_pages > MAX_CTX_PAGES || depth > 1) { in bnxt_alloc_ctx_pg_tbls()
9191 ctx_pg->ctx_pg_tbl = kzalloc_objs(ctx_pg, MAX_CTX_PAGES); in bnxt_alloc_ctx_pg_tbls()
9194 nr_tbls = DIV_ROUND_UP(ctx_pg->nr_pages, MAX_CTX_PAGES); in bnxt_alloc_ctx_pg_tbls()
9210 rmem->nr_pages = MAX_CTX_PAGES; in bnxt_alloc_ctx_pg_tbls()
9213 int rem = ctx_pg->nr_pages % MAX_CTX_PAGES; in bnxt_alloc_ctx_pg_tbls()
9246 int i = head / (page_size * MAX_CTX_PAGES); in bnxt_copy_ctx_pg_tbls()
9267 if (rmem->depth > 1 || ctx_pg->nr_pages > MAX_CTX_PAGES || in bnxt_free_ctx_pg_tbls()