Lines Matching refs:map_flags
279 u64 map_flags) in check_flags() argument
281 if (old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
285 if (!old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
363 void *value, u64 map_flags, gfp_t gfp_flags) in bpf_local_storage_update() argument
372 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST) || in bpf_local_storage_update()
374 unlikely((map_flags & BPF_F_LOCK) && in bpf_local_storage_update()
378 if (gfp_flags == GFP_KERNEL && (map_flags & ~BPF_F_LOCK) != BPF_NOEXIST) in bpf_local_storage_update()
385 err = check_flags(NULL, map_flags); in bpf_local_storage_update()
403 if ((map_flags & BPF_F_LOCK) && !(map_flags & BPF_NOEXIST)) { in bpf_local_storage_update()
410 err = check_flags(old_sdata, map_flags); in bpf_local_storage_update()
440 err = check_flags(old_sdata, map_flags); in bpf_local_storage_update()
444 if (old_sdata && (map_flags & BPF_F_LOCK)) { in bpf_local_storage_update()
590 if (attr->map_flags & ~BPF_LOCAL_STORAGE_CREATE_FLAG_MASK || in bpf_local_storage_map_alloc_check()
591 !(attr->map_flags & BPF_F_NO_PREALLOC) || in bpf_local_storage_map_alloc_check()