src/dpdk/drivers/net/bnxt/tf_core/tf_em_host.c
static void
tf_em_free_page_table(struct hcapi_cfa_em_table *tbl)
{
	struct hcapi_cfa_em_page_tbl *tp;
	int i;

	for (i = 0; i < tbl->num_lvl; i++) {
		tp = &tbl->pg_tbl[i];
		TFP_DRV_LOG(INFO,
			   "EEM: Freeing page table: size %u lvl %d cnt %u\n",
			   TF_EM_PAGE_SIZE,
			    i,
			    tp->pg_count);

		tf_em_free_pg_tbl(tp);
	}

	tbl->l0_addr = NULL;
	tbl->l0_dma_addr = 0;
	tbl->num_lvl = 0;
	tbl->num_data_pages = 0;
}
/**
 * Function to free an EM table
 *
 * [in] tbl
 *   Pointer to the EM table to free
 */
Function to free an EM table
[in] tbl
Pointer to the EM table to free
Function to free an EM table [ in ] tbl Pointer to the EM table to free
static void
tf_em_free_page_table(struct hcapi_cfa_em_table *tbl)
{
	struct hcapi_cfa_em_page_tbl *tp;
	int i;
	for (i = 0; i < tbl->num_lvl; i++) {
		tp = &tbl->pg_tbl[i];
		TFP_DRV_LOG(INFO,
			   "EEM: Freeing page table: size %u lvl %d cnt %u\n",
			   TF_EM_PAGE_SIZE,
			    i,
			    tp->pg_count);
		tf_em_free_pg_tbl(tp);
	}
	tbl->l0_addr = NULL;
	tbl->l0_dma_addr = 0;
	tbl->num_lvl = 0;
	tbl->num_data_pages = 0;
}
static void tf_em_free_page_table ( struct hcapi_cfa_em_table * tbl ) { struct hcapi_cfa_em_page_tbl * tp ; int i ; for ( i = 0 ; i < tbl -> num_lvl ; i ++ ) { tp = & tbl -> pg_tbl [ i ] ; TFP_DRV_LOG ( INFO , " \n " , TF_EM_PAGE_SIZE , i , tp -> pg_count ) ; tf_em_free_pg_tbl ( tp ) ; } tbl -> l0_addr = NULL ; tbl -> l0_dma_addr = 0 ; tbl -> num_lvl = 0 ; tbl -> num_data_pages = 0 ; }
Function to free an EM table
 [in] tbl
   Pointer to the EM table to free
Function to free an EM table [ in ] tbl Pointer to the EM table to free