Lines Matching refs:map_flags
248 u64 map_flags) in check_flags() argument
250 if (old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
254 if (!old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
330 void *value, u64 map_flags) in bpf_local_storage_update() argument
339 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST) || in bpf_local_storage_update()
341 unlikely((map_flags & BPF_F_LOCK) && in bpf_local_storage_update()
348 err = check_flags(NULL, map_flags); in bpf_local_storage_update()
366 if ((map_flags & BPF_F_LOCK) && !(map_flags & BPF_NOEXIST)) { in bpf_local_storage_update()
373 err = check_flags(old_sdata, map_flags); in bpf_local_storage_update()
397 err = check_flags(old_sdata, map_flags); in bpf_local_storage_update()
401 if (old_sdata && (map_flags & BPF_F_LOCK)) { in bpf_local_storage_update()
541 if (attr->map_flags & ~BPF_LOCAL_STORAGE_CREATE_FLAG_MASK || in bpf_local_storage_map_alloc_check()
542 !(attr->map_flags & BPF_F_NO_PREALLOC) || in bpf_local_storage_map_alloc_check()