Home
last modified time | relevance | path

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

/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt.h676 #define MAX_CTX_PAGES (BNXT_PAGE_SIZE / 8) macro
677 #define MAX_CTX_TOTAL_PAGES (MAX_CTX_PAGES * MAX_CTX_PAGES)
699 struct iflib_dma_info ctx_arr[MAX_CTX_PAGES];
H A Dif_bnxt.c951 if (ctx_pg->nr_pages > MAX_CTX_PAGES || depth > 1) { in bnxt_alloc_ctx_pg_tbls()
955 ctx_pg->ctx_pg_tbl = kzalloc(MAX_CTX_PAGES * sizeof(ctx_pg), in bnxt_alloc_ctx_pg_tbls()
959 nr_tbls = DIV_ROUND_UP(ctx_pg->nr_pages, MAX_CTX_PAGES); in bnxt_alloc_ctx_pg_tbls()
974 rmem->nr_pages = MAX_CTX_PAGES; in bnxt_alloc_ctx_pg_tbls()
977 int rem = ctx_pg->nr_pages % MAX_CTX_PAGES; in bnxt_alloc_ctx_pg_tbls()
1001 if (rmem->depth > 1 || ctx_pg->nr_pages > MAX_CTX_PAGES || in bnxt_free_ctx_pg_tbls()