Lines Matching refs:map_flags
461 u64 map_flags) in check_flags() argument
463 if (old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
467 if (!old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
553 void *value, u64 map_flags, gfp_t gfp_flags) in bpf_local_storage_update() argument
562 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST) || in bpf_local_storage_update()
564 unlikely((map_flags & BPF_F_LOCK) && in bpf_local_storage_update()
568 if (gfp_flags == GFP_KERNEL && (map_flags & ~BPF_F_LOCK) != BPF_NOEXIST) in bpf_local_storage_update()
575 err = check_flags(NULL, map_flags); in bpf_local_storage_update()
593 if ((map_flags & BPF_F_LOCK) && !(map_flags & BPF_NOEXIST)) { in bpf_local_storage_update()
600 err = check_flags(old_sdata, map_flags); in bpf_local_storage_update()
631 err = check_flags(old_sdata, map_flags); in bpf_local_storage_update()
635 if (old_sdata && (map_flags & BPF_F_LOCK)) { in bpf_local_storage_update()
699 if (attr->map_flags & ~BPF_LOCAL_STORAGE_CREATE_FLAG_MASK || in bpf_local_storage_map_alloc_check()
700 !(attr->map_flags & BPF_F_NO_PREALLOC) || in bpf_local_storage_map_alloc_check()