Lines Matching refs:pg_tbl
2642 if (rmem->pg_tbl) { in bnxt_free_ring()
2648 rmem->pg_tbl, rmem->pg_tbl_map); in bnxt_free_ring()
2649 rmem->pg_tbl = NULL; in bnxt_free_ring()
2665 if ((rmem->nr_pages > 1 || rmem->depth > 0) && !rmem->pg_tbl) { in bnxt_alloc_ring()
2670 rmem->pg_tbl = dma_alloc_coherent(&pdev->dev, pg_tbl_size, in bnxt_alloc_ring()
2673 if (!rmem->pg_tbl) in bnxt_alloc_ring()
2694 rmem->pg_tbl[i] = in bnxt_alloc_ring()
6664 struct bnxt_ctx_pg_info *pg_tbl; in bnxt_alloc_ctx_pg_tbls() local
6666 pg_tbl = kzalloc(sizeof(*pg_tbl), GFP_KERNEL); in bnxt_alloc_ctx_pg_tbls()
6667 if (!pg_tbl) in bnxt_alloc_ctx_pg_tbls()
6669 ctx_pg->ctx_pg_tbl[i] = pg_tbl; in bnxt_alloc_ctx_pg_tbls()
6670 rmem = &pg_tbl->ring_mem; in bnxt_alloc_ctx_pg_tbls()
6671 rmem->pg_tbl = ctx_pg->ctx_pg_arr[i]; in bnxt_alloc_ctx_pg_tbls()
6681 rc = bnxt_alloc_ctx_mem_blk(bp, pg_tbl); in bnxt_alloc_ctx_pg_tbls()
6704 struct bnxt_ctx_pg_info *pg_tbl; in bnxt_free_ctx_pg_tbls() local
6707 pg_tbl = ctx_pg->ctx_pg_tbl[i]; in bnxt_free_ctx_pg_tbls()
6708 if (!pg_tbl) in bnxt_free_ctx_pg_tbls()
6710 rmem2 = &pg_tbl->ring_mem; in bnxt_free_ctx_pg_tbls()
6713 kfree(pg_tbl); in bnxt_free_ctx_pg_tbls()