Home
last modified time | relevance | path

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

/linux/drivers/vdpa/vdpa_user/
H A Diova_domain.c31 struct vdpa_map_file *map_file; in vduse_iotlb_add_range() local
34 map_file = kmalloc_obj(*map_file, GFP_ATOMIC); in vduse_iotlb_add_range()
35 if (!map_file) in vduse_iotlb_add_range()
38 map_file->file = get_file(file); in vduse_iotlb_add_range()
39 map_file->offset = offset; in vduse_iotlb_add_range()
42 addr, perm, map_file); in vduse_iotlb_add_range()
44 fput(map_file->file); in vduse_iotlb_add_range()
45 kfree(map_file); in vduse_iotlb_add_range()
54 struct vdpa_map_file *map_file; in vduse_iotlb_del_range() local
58 map_file = (struct vdpa_map_file *)map->opaque; in vduse_iotlb_del_range()
[all …]
H A Dvduse_dev.c1467 const struct vdpa_map_file *map_file; in vduse_dev_iotlb_entry() local
1469 map_file = (struct vdpa_map_file *)map->opaque; in vduse_dev_iotlb_entry()
1470 entry->offset = map_file->offset; in vduse_dev_iotlb_entry()
1471 *f = get_file(map_file->file); in vduse_dev_iotlb_entry()
/linux/kernel/bpf/
H A Darraymap.c959 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_array_map_update_elem() argument
973 new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_array_map_update_elem()
1023 struct file *map_file, int fd) in prog_fd_array_get_ptr() argument
1297 struct file *map_file) in bpf_event_entry_gen() argument
1305 ee->map_file = map_file; in bpf_event_entry_gen()
1326 struct file *map_file, int fd) in perf_event_fd_array_get_ptr() argument
1342 ee = bpf_event_entry_gen(perf_file, map_file); in perf_event_fd_array_get_ptr()
1358 struct file *map_file) in perf_event_fd_array_release() argument
1370 if (ee && ee->map_file == map_file) in perf_event_fd_array_release()
1401 struct file *map_file /* not used */, in cgroup_fd_array_get_ptr() argument
H A Dmap_in_map.h14 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
H A Dsyscall.c250 static int bpf_map_update_value(struct bpf_map *map, struct file *map_file, in bpf_map_update_value() argument
266 return bpf_fd_array_map_update_elem(map, map_file, key, value, in bpf_map_update_value()
280 err = bpf_fd_array_map_update_elem(map, map_file, key, value, in bpf_map_update_value()
283 err = bpf_fd_htab_map_update_elem(map, map_file, key, value, in bpf_map_update_value()
2065 int generic_map_update_batch(struct bpf_map *map, struct file *map_file, in generic_map_update_batch() argument
2106 err = bpf_map_update_value(map, map_file, key, value, in generic_map_update_batch()
H A Dhashtab.c2692 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_htab_map_update_elem()
2698 ptr = map->ops->map_fd_get_ptr(map, map_file, *(int *)value); in bpf_fd_htab_map_update_elem()
2677 bpf_fd_htab_map_update_elem(struct bpf_map * map,struct file * map_file,void * key,void * value,u64 map_flags) bpf_fd_htab_map_update_elem() argument
/linux/drivers/vhost/
H A Dvdpa.c997 struct vdpa_map_file *map_file; in vhost_vdpa_va_unmap() local
1000 map_file = (struct vdpa_map_file *)map->opaque; in vhost_vdpa_va_unmap()
1001 fput(map_file->file); in vhost_vdpa_va_unmap()
1002 kfree(map_file); in vhost_vdpa_va_unmap()
1100 struct vdpa_map_file *map_file; in vhost_vdpa_va_map() local
1117 map_file = kzalloc_obj(*map_file); in vhost_vdpa_va_map()
1118 if (!map_file) { in vhost_vdpa_va_map()
1123 map_file->offset = offset; in vhost_vdpa_va_map()
1124 map_file->file = get_file(vma->vm_file); in vhost_vdpa_va_map()
1126 perm, map_file); in vhost_vdpa_va_map()
[all …]
/linux/scripts/
H A Delf-parse.c22 static void *map_file(char const *fname, size_t *size) in map_file() function
182 addr = map_file(fname, size); in elf_map()
H 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/net/
H A Dbpf_offload.py555 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/include/linux/
H A Dbpf.h91 void (*map_release)(struct bpf_map *map, struct file *map_file);
103 int (*map_update_batch)(struct bpf_map *map, struct file *map_file,
120 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
2488 struct file *map_file;
2814 int generic_map_update_batch(struct bpf_map *map, struct file *map_file,
3078 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file,
3081 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
2451 struct file *map_file; global() member