Lines Matching refs:mem

45 	struct uio_mem *mem;  member
49 static ssize_t map_name_show(struct uio_mem *mem, char *buf) in map_name_show() argument
51 if (unlikely(!mem->name)) in map_name_show()
52 mem->name = ""; in map_name_show()
54 return sprintf(buf, "%s\n", mem->name); in map_name_show()
57 static ssize_t map_addr_show(struct uio_mem *mem, char *buf) in map_addr_show() argument
59 return sprintf(buf, "%pa\n", &mem->addr); in map_addr_show()
62 static ssize_t map_size_show(struct uio_mem *mem, char *buf) in map_size_show() argument
64 return sprintf(buf, "%pa\n", &mem->size); in map_size_show()
67 static ssize_t map_offset_show(struct uio_mem *mem, char *buf) in map_offset_show() argument
69 return sprintf(buf, "0x%llx\n", (unsigned long long)mem->addr & ~PAGE_MASK); in map_offset_show()
105 struct uio_mem *mem = map->mem; in map_type_show() local
113 return entry->show(mem, buf); in map_type_show()
261 struct uio_mem *mem; in uio_dev_add_attributes() local
267 mem = &idev->info->mem[mi]; in uio_dev_add_attributes()
268 if (mem->size == 0) in uio_dev_add_attributes()
281 map->mem = mem; in uio_dev_add_attributes()
282 mem->map = map; in uio_dev_add_attributes()
332 mem = &idev->info->mem[mi]; in uio_dev_add_attributes()
333 map = mem->map; in uio_dev_add_attributes()
344 struct uio_mem *mem; in uio_dev_del_attributes() local
348 mem = &idev->info->mem[i]; in uio_dev_del_attributes()
349 if (mem->size == 0) in uio_dev_del_attributes()
351 kobject_put(&mem->map->kobj); in uio_dev_del_attributes()
585 if (idev->info->mem[vma->vm_pgoff].size == 0) in uio_find_mem_index()
609 addr = (void *)(unsigned long)idev->info->mem[mi].addr + offset; in uio_vma_fault()
610 if (idev->info->mem[mi].memtype == UIO_MEM_LOGICAL) in uio_vma_fault()
640 struct uio_mem *mem; in uio_mmap_physical() local
643 mem = idev->info->mem + mi; in uio_mmap_physical()
645 if (mem->addr & ~PAGE_MASK) in uio_mmap_physical()
647 if (vma->vm_end - vma->vm_start > mem->size) in uio_mmap_physical()
664 mem->addr >> PAGE_SHIFT, in uio_mmap_physical()
687 actual_pages = ((idev->info->mem[mi].addr & ~PAGE_MASK) in uio_mmap()
688 + idev->info->mem[mi].size + PAGE_SIZE -1) >> PAGE_SHIFT; in uio_mmap()
697 switch (idev->info->mem[mi].memtype) { in uio_mmap()