| /linux-6.15/drivers/vdpa/vdpa_user/ |
| H A D | iova_domain.c | 28 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() 499 fput(map_file->file); in vduse_domain_free_coherent() [all …]
|
| H A D | vduse_dev.c | 1160 struct vdpa_map_file *map_file; in vduse_dev_ioctl() local 1180 map_file = (struct vdpa_map_file *)map->opaque; in vduse_dev_ioctl() 1181 f = get_file(map_file->file); in vduse_dev_ioctl() 1182 entry.offset = map_file->offset; in vduse_dev_ioctl()
|
| /linux-6.15/kernel/bpf/ |
| H A D | arraymap.c | 881 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_array_map_update_elem() argument 895 new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_array_map_update_elem() 945 struct file *map_file, int fd) in prog_fd_array_get_ptr() argument 1217 struct file *map_file) in bpf_event_entry_gen() argument 1225 ee->map_file = map_file; in bpf_event_entry_gen() 1246 struct file *map_file, int fd) in perf_event_fd_array_get_ptr() argument 1262 ee = bpf_event_entry_gen(perf_file, map_file); in perf_event_fd_array_get_ptr() 1278 struct file *map_file) in perf_event_fd_array_release() argument 1290 if (ee && ee->map_file == map_file) in perf_event_fd_array_release() 1321 struct file *map_file /* not used */, in cgroup_fd_array_get_ptr() argument
|
| H A D | map_in_map.h | 14 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
|
| H A D | map_in_map.c | 95 struct file *map_file /* not used */, in bpf_map_fd_get_ptr() argument
|
| H A D | syscall.c | 242 static int bpf_map_update_value(struct bpf_map *map, struct file *map_file, in bpf_map_update_value() argument 258 return bpf_fd_array_map_update_elem(map, map_file, key, value, in bpf_map_update_value() 272 err = bpf_fd_array_map_update_elem(map, map_file, key, value, in bpf_map_update_value() 275 err = bpf_fd_htab_map_update_elem(map, map_file, key, value, in bpf_map_update_value() 1937 int generic_map_update_batch(struct bpf_map *map, struct file *map_file, in generic_map_update_batch() argument 1981 err = bpf_map_update_value(map, map_file, key, value, in generic_map_update_batch()
|
| H A D | hashtab.c | 2540 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_htab_map_update_elem() argument 2547 ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_htab_map_update_elem()
|
| /linux-6.15/drivers/vhost/ |
| H A D | vdpa.c | 947 struct vdpa_map_file *map_file; in vhost_vdpa_va_unmap() local 951 fput(map_file->file); in vhost_vdpa_va_unmap() 952 kfree(map_file); in vhost_vdpa_va_unmap() 1050 struct vdpa_map_file *map_file; in vhost_vdpa_va_map() local 1067 map_file = kzalloc(sizeof(*map_file), GFP_KERNEL); in vhost_vdpa_va_map() 1068 if (!map_file) { in vhost_vdpa_va_map() 1073 map_file->offset = offset; in vhost_vdpa_va_map() 1074 map_file->file = get_file(vma->vm_file); in vhost_vdpa_va_map() 1076 perm, map_file); in vhost_vdpa_va_map() 1078 fput(map_file->file); in vhost_vdpa_va_map() [all …]
|
| /linux-6.15/scripts/ |
| H A 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.15/tools/testing/selftests/net/ |
| H A D | bpf_offload.py | 555 def check_dev_info_removed(prog_file=None, map_file=None): argument 562 ret, err = bpftool("map show pin %s" % (map_file), fail=False) 568 def check_dev_info(other_ns, ns, prog_file=None, map_file=None, removed=False): argument 1146 map_file, _ = pin_map("/sys/fs/bpf/tmp_map", idx=1, expected=2) variable 1150 check_dev_info_removed(prog_file=prog_file, map_file=map_file)
|
| /linux-6.15/include/linux/ |
| H A D | bpf.h | 86 void (*map_release)(struct bpf_map *map, struct file *map_file); 98 int (*map_update_batch)(struct bpf_map *map, struct file *map_file, 114 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file, 2057 struct file *map_file; member 2379 int generic_map_update_batch(struct bpf_map *map, struct file *map_file, 2612 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, 2615 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
|