Lines Matching refs:hpa
39 * We need to convert ua to hpa in real mode. Make it
345 unsigned long ua, unsigned int pageshift, unsigned long *hpa)
357 *hpa = mem->dev_hpa + (ua - mem->ua);
362 *hpa = (*va & MM_IOMMU_TABLE_GROUP_PAGE_MASK) | (ua & ~PAGE_MASK);
369 unsigned long ua, unsigned int pageshift, unsigned long *hpa)
381 *hpa = mem->dev_hpa + (ua - mem->ua);
389 *hpa = (*pa & MM_IOMMU_TABLE_GROUP_PAGE_MASK) | (ua & ~PAGE_MASK);
418 bool mm_iommu_is_devmem(struct mm_struct *mm, unsigned long hpa,
429 if ((mem->dev_hpa <= hpa) && (hpa < end)) {
433 * starting from @hpa might be smaller than 1<<pageshift
436 *size = min(1UL << pageshift, end - hpa);