Home
last modified time | relevance | path

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

/linux/drivers/vdpa/vdpa_user/
A Diova_domain.c28 map_file = kmalloc(sizeof(*map_file), GFP_ATOMIC); in vduse_iotlb_add_range()
29 if (!map_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()
53 fput(map_file->file); in vduse_iotlb_del_range()
54 kfree(map_file); in vduse_iotlb_del_range()
75 map_file->file, in vduse_domain_set_map()
409 fput(map_file->file); in vduse_domain_free_coherent()
[all …]
A Dvduse_dev.c925 struct vdpa_map_file *map_file; in vduse_dev_ioctl() local
941 map_file = (struct vdpa_map_file *)map->opaque; in vduse_dev_ioctl()
942 f = get_file(map_file->file); in vduse_dev_ioctl()
943 entry.offset = map_file->offset; in vduse_dev_ioctl()
/linux/drivers/vhost/
A Dvdpa.c533 struct vdpa_map_file *map_file; in vhost_vdpa_va_unmap() local
537 fput(map_file->file); in vhost_vdpa_va_unmap()
538 kfree(map_file); in vhost_vdpa_va_unmap()
640 struct vdpa_map_file *map_file; in vhost_vdpa_va_map() local
657 map_file = kzalloc(sizeof(*map_file), GFP_KERNEL); in vhost_vdpa_va_map()
658 if (!map_file) { in vhost_vdpa_va_map()
663 map_file->offset = offset; in vhost_vdpa_va_map()
664 map_file->file = get_file(vma->vm_file); in vhost_vdpa_va_map()
666 perm, map_file); in vhost_vdpa_va_map()
668 fput(map_file->file); in vhost_vdpa_va_map()
[all …]
/linux/kernel/bpf/
A Darraymap.c779 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_array_map_update_elem() argument
793 new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_array_map_update_elem()
838 struct file *map_file, int fd) in prog_fd_array_get_ptr() argument
1128 struct file *map_file) in bpf_event_entry_gen() argument
1136 ee->map_file = map_file; in bpf_event_entry_gen()
1157 struct file *map_file, int fd) in perf_event_fd_array_get_ptr() argument
1173 ee = bpf_event_entry_gen(perf_file, map_file); in perf_event_fd_array_get_ptr()
1188 struct file *map_file) in perf_event_fd_array_release() argument
1200 if (ee && ee->map_file == map_file) in perf_event_fd_array_release()
1232 struct file *map_file /* not used */, in cgroup_fd_array_get_ptr() argument
A Dmap_in_map.h14 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
A Dmap_in_map.c90 struct file *map_file /* not used */, in bpf_map_fd_get_ptr() argument
A Dhashtab.c2344 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_htab_map_update_elem() argument
2351 ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_htab_map_update_elem()
/linux/scripts/
A Dinsert-sys-cert.c201 static void *map_file(char *file_name, int *size) in map_file() function
314 hdr = map_file(vmlinux_file, &vmlinux_size); in main()
/linux/tools/testing/selftests/bpf/
A Dtest_offload.py613 def check_dev_info_removed(prog_file=None, map_file=None): argument
622 ret, err = bpftool("map show pin %s" % (map_file), fail=False)
628 def check_dev_info(other_ns, ns, prog_file=None, map_file=None, removed=False): argument
1192 map_file, _ = pin_map("/sys/fs/bpf/tmp_map", idx=1, expected=2) variable
1196 check_dev_info_removed(prog_file=prog_file, map_file=map_file)
/linux/include/linux/
A Dbpf.h67 void (*map_release)(struct bpf_map *map, struct file *map_file);
93 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
1119 struct file *map_file; member
1577 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file,
1580 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,

Completed in 37 milliseconds