/linux-6.1.9/drivers/vdpa/vdpa_user/ |
D | iova_domain.c | 25 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 …]
|
D | vduse_dev.c | 1046 struct vdpa_map_file *map_file; in vduse_dev_ioctl() local 1062 map_file = (struct vdpa_map_file *)map->opaque; in vduse_dev_ioctl() 1063 f = get_file(map_file->file); in vduse_dev_ioctl() 1064 entry.offset = map_file->offset; in vduse_dev_ioctl()
|
/linux-6.1.9/kernel/bpf/ |
D | arraymap.c | 827 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_array_map_update_elem() argument 841 new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_array_map_update_elem() 886 struct file *map_file, int fd) in prog_fd_array_get_ptr() argument 1172 struct file *map_file) in bpf_event_entry_gen() argument 1180 ee->map_file = map_file; in bpf_event_entry_gen() 1201 struct file *map_file, int fd) in perf_event_fd_array_get_ptr() argument 1217 ee = bpf_event_entry_gen(perf_file, map_file); in perf_event_fd_array_get_ptr() 1232 struct file *map_file) in perf_event_fd_array_release() argument 1244 if (ee && ee->map_file == map_file) in perf_event_fd_array_release() 1274 struct file *map_file /* not used */, in cgroup_fd_array_get_ptr() argument
|
D | map_in_map.h | 14 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
|
D | map_in_map.c | 93 struct file *map_file /* not used */, in bpf_map_fd_get_ptr() argument
|
D | hashtab.c | 2450 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_htab_map_update_elem() argument 2457 ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_htab_map_update_elem()
|
/linux-6.1.9/drivers/vhost/ |
D | vdpa.c | 729 struct vdpa_map_file *map_file; in vhost_vdpa_va_unmap() local 732 map_file = (struct vdpa_map_file *)map->opaque; in vhost_vdpa_va_unmap() 733 fput(map_file->file); in vhost_vdpa_va_unmap() 734 kfree(map_file); in vhost_vdpa_va_unmap() 835 struct vdpa_map_file *map_file; in vhost_vdpa_va_map() local 852 map_file = kzalloc(sizeof(*map_file), GFP_KERNEL); in vhost_vdpa_va_map() 853 if (!map_file) { in vhost_vdpa_va_map() 858 map_file->offset = offset; in vhost_vdpa_va_map() 859 map_file->file = get_file(vma->vm_file); in vhost_vdpa_va_map() 861 perm, map_file); in vhost_vdpa_va_map() [all …]
|
/linux-6.1.9/scripts/ |
D | insert-sys-cert.c | 201 static void *map_file(char *file_name, int *size) in map_file() function 314 hdr = map_file(vmlinux_file, &vmlinux_size); in main()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | test_offload.py | 613 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-6.1.9/include/linux/ |
D | bpf.h | 76 void (*map_release)(struct bpf_map *map, struct file *map_file); 103 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file, 1461 struct file *map_file; member 1940 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, 1943 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
|