/* iopgtable_lookup_entry - Lookup an iommu pte entry @obj: target iommu @da: iommu device virtual address @ppgd: iommu pgd entry pointer to be returned @ppte: iommu pte entry pointer to be returned  */
void iopgtable_lookup_entry(struct iommu *obj, u32 da, u32 **ppgd, u32 **ppte)
/* iopgtable_lookup_entry - Lookup an iommu pte entry @obj: target iommu @da: iommu device virtual address @ppgd: iommu pgd entry pointer to be returned @ppte: iommu pte entry pointer to be returned  */
void iopgtable_lookup_entry(struct iommu *obj, u32 da, u32 **ppgd, u32 **ppte)
{
	u32 *iopgd, *iopte = NULL;
	iopgd = iopgd_offset(obj, da);
	if (!*iopgd)
		goto out;
	if (*iopgd & IOPGD_TABLE)
		iopte = iopte_offset(iopgd, da);
out:
	*ppgd = iopgd;
	*ppte = iopte;
}