Lines Matching refs:pg_tbl
2692 if (rmem->pg_tbl) { in bnxt_free_ring()
2698 rmem->pg_tbl, rmem->pg_tbl_map); in bnxt_free_ring()
2699 rmem->pg_tbl = NULL; in bnxt_free_ring()
2715 if ((rmem->nr_pages > 1 || rmem->depth > 0) && !rmem->pg_tbl) { in bnxt_alloc_ring()
2720 rmem->pg_tbl = dma_alloc_coherent(&pdev->dev, pg_tbl_size, in bnxt_alloc_ring()
2723 if (!rmem->pg_tbl) in bnxt_alloc_ring()
2747 rmem->pg_tbl[i] = in bnxt_alloc_ring()
6984 struct bnxt_ctx_pg_info *pg_tbl; in bnxt_alloc_ctx_pg_tbls() local
6986 pg_tbl = kzalloc(sizeof(*pg_tbl), GFP_KERNEL); in bnxt_alloc_ctx_pg_tbls()
6987 if (!pg_tbl) in bnxt_alloc_ctx_pg_tbls()
6989 ctx_pg->ctx_pg_tbl[i] = pg_tbl; in bnxt_alloc_ctx_pg_tbls()
6990 rmem = &pg_tbl->ring_mem; in bnxt_alloc_ctx_pg_tbls()
6991 rmem->pg_tbl = ctx_pg->ctx_pg_arr[i]; in bnxt_alloc_ctx_pg_tbls()
7003 rc = bnxt_alloc_ctx_mem_blk(bp, pg_tbl); in bnxt_alloc_ctx_pg_tbls()
7028 struct bnxt_ctx_pg_info *pg_tbl; in bnxt_free_ctx_pg_tbls() local
7031 pg_tbl = ctx_pg->ctx_pg_tbl[i]; in bnxt_free_ctx_pg_tbls()
7032 if (!pg_tbl) in bnxt_free_ctx_pg_tbls()
7034 rmem2 = &pg_tbl->ring_mem; in bnxt_free_ctx_pg_tbls()
7037 kfree(pg_tbl); in bnxt_free_ctx_pg_tbls()