Home
last modified time | relevance | path

Searched refs:map_file (Results 1 – 3 of 3) sorted by relevance

/drivers/vdpa/vdpa_user/
Diova_domain.c25 struct vdpa_map_file *map_file; in vduse_iotlb_add_range() local
28 map_file = kmalloc(sizeof(*map_file), GFP_ATOMIC); in vduse_iotlb_add_range()
29 if (!map_file) in vduse_iotlb_add_range()
32 map_file->file = get_file(file); in vduse_iotlb_add_range()
33 map_file->offset = offset; in vduse_iotlb_add_range()
36 addr, perm, map_file); in vduse_iotlb_add_range()
38 fput(map_file->file); in vduse_iotlb_add_range()
39 kfree(map_file); in vduse_iotlb_add_range()
48 struct vdpa_map_file *map_file; in vduse_iotlb_del_range() local
52 map_file = (struct vdpa_map_file *)map->opaque; in vduse_iotlb_del_range()
[all …]
Dvduse_dev.c930 struct vdpa_map_file *map_file; in vduse_dev_ioctl() local
946 map_file = (struct vdpa_map_file *)map->opaque; in vduse_dev_ioctl()
947 f = get_file(map_file->file); in vduse_dev_ioctl()
948 entry.offset = map_file->offset; in vduse_dev_ioctl()
/drivers/vhost/
Dvdpa.c550 struct vdpa_map_file *map_file; in vhost_vdpa_va_unmap() local
553 map_file = (struct vdpa_map_file *)map->opaque; in vhost_vdpa_va_unmap()
554 fput(map_file->file); in vhost_vdpa_va_unmap()
555 kfree(map_file); in vhost_vdpa_va_unmap()
657 struct vdpa_map_file *map_file; in vhost_vdpa_va_map() local
674 map_file = kzalloc(sizeof(*map_file), GFP_KERNEL); in vhost_vdpa_va_map()
675 if (!map_file) { in vhost_vdpa_va_map()
680 map_file->offset = offset; in vhost_vdpa_va_map()
681 map_file->file = get_file(vma->vm_file); in vhost_vdpa_va_map()
683 perm, map_file); in vhost_vdpa_va_map()
[all …]