Lines Matching refs:mi
285 int mi, pi; in uio_dev_add_attributes() local
293 for (mi = 0; mi < MAX_UIO_MAPS; mi++) { in uio_dev_add_attributes()
294 mem = &idev->info->mem[mi]; in uio_dev_add_attributes()
314 ret = kobject_add(&map->kobj, idev->map_dir, "map%d", mi); in uio_dev_add_attributes()
364 mi--; in uio_dev_add_attributes()
366 for (; mi >= 0; mi--) { in uio_dev_add_attributes()
367 mem = &idev->info->mem[mi]; in uio_dev_add_attributes()
674 int mi; in uio_vma_fault() local
682 mi = uio_find_mem_index(vmf->vma); in uio_vma_fault()
683 if (mi < 0) { in uio_vma_fault()
692 offset = (vmf->pgoff - mi) << PAGE_SHIFT; in uio_vma_fault()
694 addr = (void *)(unsigned long)idev->info->mem[mi].addr + offset; in uio_vma_fault()
695 if (idev->info->mem[mi].memtype == UIO_MEM_LOGICAL) in uio_vma_fault()
728 int mi = uio_find_mem_index(vma); in uio_mmap_physical() local
731 if (mi < 0) in uio_mmap_physical()
733 mem = idev->info->mem + mi; in uio_mmap_physical()
741 if (idev->info->mem[mi].memtype == UIO_MEM_PHYS) in uio_mmap_physical()
764 int mi; in uio_mmap() local
779 mi = uio_find_mem_index(vma); in uio_mmap()
780 if (mi < 0) { in uio_mmap()
786 actual_pages = ((idev->info->mem[mi].addr & ~PAGE_MASK) in uio_mmap()
787 + idev->info->mem[mi].size + PAGE_SIZE -1) >> PAGE_SHIFT; in uio_mmap()
798 switch (idev->info->mem[mi].memtype) { in uio_mmap()