Lines Matching refs:map_flags

59 	    attr->map_flags & ~ARRAY_CREATE_FLAG_MASK ||  in array_map_alloc_check()
60 !bpf_map_flags_access_ok(attr->map_flags) || in array_map_alloc_check()
65 attr->map_flags & (BPF_F_MMAPABLE | BPF_F_INNER_MAP)) in array_map_alloc_check()
69 attr->map_flags & BPF_F_PRESERVE_ELEMS) in array_map_alloc_check()
120 if (attr->map_flags & BPF_F_MMAPABLE) { in array_map_alloc()
129 if (attr->map_flags & BPF_F_MMAPABLE) { in array_map_alloc()
210 if (map->map_flags & BPF_F_INNER_MAP) in array_map_gen_lookup()
298 u64 map_flags) in array_map_update_elem() argument
304 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST)) in array_map_update_elem()
312 if (unlikely(map_flags & BPF_NOEXIST)) in array_map_update_elem()
316 if (unlikely((map_flags & BPF_F_LOCK) && in array_map_update_elem()
326 if (map_flags & BPF_F_LOCK) in array_map_update_elem()
336 u64 map_flags) in bpf_percpu_array_update() argument
344 if (unlikely(map_flags > BPF_EXIST)) in bpf_percpu_array_update()
352 if (unlikely(map_flags == BPF_NOEXIST)) in bpf_percpu_array_update()
405 if (array->map.map_flags & BPF_F_MMAPABLE) in array_map_free()
492 if (!(map->map_flags & BPF_F_MMAPABLE)) in array_map_mmap()
508 return meta0->map_flags & BPF_F_INNER_MAP ? true : in array_map_meta_equal()
736 if (attr->map_flags & (BPF_F_RDONLY_PROG | BPF_F_WRONLY_PROG)) in fd_array_map_alloc_check()
780 void *key, void *value, u64 map_flags) in bpf_fd_array_map_update_elem() argument
786 if (map_flags != BPF_ANY) in bpf_fd_array_map_update_elem()
1194 if (map->map_flags & BPF_F_PRESERVE_ELEMS) in perf_event_fd_array_release()
1208 if (map->map_flags & BPF_F_PRESERVE_ELEMS) in perf_event_fd_array_map_free()