/* Convert kernel virtual addresses to physical addresses so they don't potentially conflict with the chip addresses used as mmap offsets. It doesn't really matter what mmap offset we use as long as we can interpret it correctly.  */
static u64 cvt_kvaddr(void *p)
/* Convert kernel virtual addresses to physical addresses so they don't potentially conflict with the chip addresses used as mmap offsets. It doesn't really matter what mmap offset we use as long as we can interpret it correctly.  */
static u64 cvt_kvaddr(void *p)
{
	struct page *page;
	u64 paddr = 0;
	page = vmalloc_to_page(p);
	if (page)
		paddr = page_to_pfn(page) << PAGE_SHIFT;
	return paddr;
}