src/dpdk/drivers/net/bnxt/tf_core/tf_em_host.c
static void
tf_em_setup_page_table(struct hcapi_cfa_em_table *tbl)
{
	struct hcapi_cfa_em_page_tbl *tp_next;
	struct hcapi_cfa_em_page_tbl *tp;
	bool set_pte_last = 0;
	int i;

	for (i = 0; i < tbl->num_lvl - 1; i++) {
		tp = &tbl->pg_tbl[i];
		tp_next = &tbl->pg_tbl[i + 1];
		if (i == tbl->num_lvl - 2)
			set_pte_last = 1;
		tf_em_link_page_table(tp, tp_next, set_pte_last);
	}

	tbl->l0_addr = tbl->pg_tbl[TF_PT_LVL_0].pg_va_tbl[0];
	tbl->l0_dma_addr = tbl->pg_tbl[TF_PT_LVL_0].pg_pa_tbl[0];
}
/**
 * Setup a EM page table
 *
 * [in] tbl
 *   Pointer to EM page table
 */
Setup a EM page table
[in] tbl
Pointer to EM page table
Setup a EM page table [ in ] tbl Pointer to EM page table
static void
tf_em_setup_page_table(struct hcapi_cfa_em_table *tbl)
{
	struct hcapi_cfa_em_page_tbl *tp_next;
	struct hcapi_cfa_em_page_tbl *tp;
	bool set_pte_last = 0;
	int i;
	for (i = 0; i < tbl->num_lvl - 1; i++) {
		tp = &tbl->pg_tbl[i];
		tp_next = &tbl->pg_tbl[i + 1];
		if (i == tbl->num_lvl - 2)
			set_pte_last = 1;
		tf_em_link_page_table(tp, tp_next, set_pte_last);
	}
	tbl->l0_addr = tbl->pg_tbl[TF_PT_LVL_0].pg_va_tbl[0];
	tbl->l0_dma_addr = tbl->pg_tbl[TF_PT_LVL_0].pg_pa_tbl[0];
}
static void tf_em_setup_page_table ( struct hcapi_cfa_em_table * tbl ) { struct hcapi_cfa_em_page_tbl * tp_next ; struct hcapi_cfa_em_page_tbl * tp ; bool set_pte_last = 0 ; int i ; for ( i = 0 ; i < tbl -> num_lvl - 1 ; i ++ ) { tp = & tbl -> pg_tbl [ i ] ; tp_next = & tbl -> pg_tbl [ i + 1 ] ; if ( i == tbl -> num_lvl - 2 ) set_pte_last = 1 ; tf_em_link_page_table ( tp , tp_next , set_pte_last ) ; } tbl -> l0_addr = tbl -> pg_tbl [ TF_PT_LVL_0 ] . pg_va_tbl [ 0 ] ; tbl -> l0_dma_addr = tbl -> pg_tbl [ TF_PT_LVL_0 ] . pg_pa_tbl [ 0 ] ; }
Setup a EM page table
 [in] tbl
   Pointer to EM page table
Setup a EM page table [ in ] tbl Pointer to EM page table