/openbmc/linux/drivers/vdpa/vdpa_user/ |
H A 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 …]
|
H A D | vduse_dev.c | 1125 struct vdpa_map_file *map_file; in vduse_dev_ioctl() local 1145 map_file = (struct vdpa_map_file *)map->opaque; in vduse_dev_ioctl() 1146 f = get_file(map_file->file); in vduse_dev_ioctl() 1147 entry.offset = map_file->offset; in vduse_dev_ioctl()
|
/openbmc/qemu/tcg/ |
H A D | perf.c | 51 char map_file[32]; in perf_enable_perfmap() local 53 snprintf(map_file, sizeof(map_file), "/tmp/perf-%d.map", getpid()); in perf_enable_perfmap() 54 perfmap = safe_fopen_w(map_file); in perf_enable_perfmap() 57 map_file, strerror(errno)); in perf_enable_perfmap()
|
/openbmc/u-boot/scripts/ |
H A D | mailmapper | 130 for map_file in mailmap_files: 132 infile = open(map_file)
|
/openbmc/linux/kernel/bpf/ |
H A D | arraymap.c | 845 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_array_map_update_elem() argument 859 new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_array_map_update_elem() 909 struct file *map_file, int fd) in prog_fd_array_get_ptr() argument 1159 struct file *map_file) in bpf_event_entry_gen() argument 1167 ee->map_file = map_file; in bpf_event_entry_gen() 1188 struct file *map_file, int fd) in perf_event_fd_array_get_ptr() argument 1204 ee = bpf_event_entry_gen(perf_file, map_file); in perf_event_fd_array_get_ptr() 1220 struct file *map_file) in perf_event_fd_array_release() argument 1232 if (ee && ee->map_file == map_file) in perf_event_fd_array_release() 1263 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 | 109 struct file *map_file /* not used */, in bpf_map_fd_get_ptr() argument
|
H A D | syscall.c | 153 static int bpf_map_update_value(struct bpf_map *map, struct file *map_file, in bpf_map_update_value() argument 168 return bpf_fd_array_map_update_elem(map, map_file, key, value, in bpf_map_update_value() 183 err = bpf_fd_array_map_update_elem(map, map_file, key, value, in bpf_map_update_value() 188 err = bpf_fd_htab_map_update_elem(map, map_file, key, value, in bpf_map_update_value() 1750 int generic_map_update_batch(struct bpf_map *map, struct file *map_file, in generic_map_update_batch() argument 1794 err = bpf_map_update_value(map, map_file, key, value, in generic_map_update_batch()
|
H A D | hashtab.c | 2544 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_htab_map_update_elem() argument 2551 ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_htab_map_update_elem()
|
/openbmc/linux/drivers/vhost/ |
H A D | vdpa.c | 844 struct vdpa_map_file *map_file; in vhost_vdpa_va_unmap() local 847 map_file = (struct vdpa_map_file *)map->opaque; in vhost_vdpa_va_unmap() 848 fput(map_file->file); in vhost_vdpa_va_unmap() 849 kfree(map_file); in vhost_vdpa_va_unmap() 946 struct vdpa_map_file *map_file; in vhost_vdpa_va_map() local 963 map_file = kzalloc(sizeof(*map_file), GFP_KERNEL); in vhost_vdpa_va_map() 964 if (!map_file) { in vhost_vdpa_va_map() 969 map_file->offset = offset; in vhost_vdpa_va_map() 970 map_file->file = get_file(vma->vm_file); in vhost_vdpa_va_map() 972 perm, map_file); in vhost_vdpa_va_map() [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A 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 1194 map_file, _ = pin_map("/sys/fs/bpf/tmp_map", idx=1, expected=2) variable 1198 check_dev_info_removed(prog_file=prog_file, map_file=map_file)
|
/openbmc/linux/include/linux/ |
H A D | bpf.h | 79 void (*map_release)(struct bpf_map *map, struct file *map_file); 91 int (*map_update_batch)(struct bpf_map *map, struct file *map_file, 107 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file, 1816 struct file *map_file; member 2107 int generic_map_update_batch(struct bpf_map *map, struct file *map_file, 2332 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, 2335 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
|
/openbmc/u-boot/doc/ |
H A D | README.trace | 275 -m <map_file>
|