Lines Matching refs:pg_tbl
3077 if (rmem->pg_tbl) { in bnxt_free_ring()
3083 rmem->pg_tbl, rmem->pg_tbl_map); in bnxt_free_ring()
3084 rmem->pg_tbl = NULL; in bnxt_free_ring()
3100 if ((rmem->nr_pages > 1 || rmem->depth > 0) && !rmem->pg_tbl) { in bnxt_alloc_ring()
3105 rmem->pg_tbl = dma_alloc_coherent(&pdev->dev, pg_tbl_size, in bnxt_alloc_ring()
3108 if (!rmem->pg_tbl) in bnxt_alloc_ring()
3132 rmem->pg_tbl[i] = in bnxt_alloc_ring()
7298 struct bnxt_ctx_pg_info *pg_tbl; in bnxt_alloc_ctx_pg_tbls() local
7300 pg_tbl = kzalloc(sizeof(*pg_tbl), GFP_KERNEL); in bnxt_alloc_ctx_pg_tbls()
7301 if (!pg_tbl) in bnxt_alloc_ctx_pg_tbls()
7303 ctx_pg->ctx_pg_tbl[i] = pg_tbl; in bnxt_alloc_ctx_pg_tbls()
7304 rmem = &pg_tbl->ring_mem; in bnxt_alloc_ctx_pg_tbls()
7305 rmem->pg_tbl = ctx_pg->ctx_pg_arr[i]; in bnxt_alloc_ctx_pg_tbls()
7316 rc = bnxt_alloc_ctx_mem_blk(bp, pg_tbl); in bnxt_alloc_ctx_pg_tbls()
7340 struct bnxt_ctx_pg_info *pg_tbl; in bnxt_free_ctx_pg_tbls() local
7343 pg_tbl = ctx_pg->ctx_pg_tbl[i]; in bnxt_free_ctx_pg_tbls()
7344 if (!pg_tbl) in bnxt_free_ctx_pg_tbls()
7346 rmem2 = &pg_tbl->ring_mem; in bnxt_free_ctx_pg_tbls()
7349 kfree(pg_tbl); in bnxt_free_ctx_pg_tbls()