Lines Matching refs:pg_tbl
3047 if (rmem->pg_tbl) { in bnxt_free_ring()
3053 rmem->pg_tbl, rmem->pg_tbl_map); in bnxt_free_ring()
3054 rmem->pg_tbl = NULL; in bnxt_free_ring()
3070 if ((rmem->nr_pages > 1 || rmem->depth > 0) && !rmem->pg_tbl) { in bnxt_alloc_ring()
3075 rmem->pg_tbl = dma_alloc_coherent(&pdev->dev, pg_tbl_size, in bnxt_alloc_ring()
3078 if (!rmem->pg_tbl) in bnxt_alloc_ring()
3102 rmem->pg_tbl[i] = in bnxt_alloc_ring()
7314 struct bnxt_ctx_pg_info *pg_tbl; in bnxt_alloc_ctx_pg_tbls() local
7316 pg_tbl = kzalloc(sizeof(*pg_tbl), GFP_KERNEL); in bnxt_alloc_ctx_pg_tbls()
7317 if (!pg_tbl) in bnxt_alloc_ctx_pg_tbls()
7319 ctx_pg->ctx_pg_tbl[i] = pg_tbl; in bnxt_alloc_ctx_pg_tbls()
7320 rmem = &pg_tbl->ring_mem; in bnxt_alloc_ctx_pg_tbls()
7321 rmem->pg_tbl = ctx_pg->ctx_pg_arr[i]; in bnxt_alloc_ctx_pg_tbls()
7332 rc = bnxt_alloc_ctx_mem_blk(bp, pg_tbl); in bnxt_alloc_ctx_pg_tbls()
7356 struct bnxt_ctx_pg_info *pg_tbl; in bnxt_free_ctx_pg_tbls() local
7359 pg_tbl = ctx_pg->ctx_pg_tbl[i]; in bnxt_free_ctx_pg_tbls()
7360 if (!pg_tbl) in bnxt_free_ctx_pg_tbls()
7362 rmem2 = &pg_tbl->ring_mem; in bnxt_free_ctx_pg_tbls()
7365 kfree(pg_tbl); in bnxt_free_ctx_pg_tbls()