Lines Matching refs:map_flags
127 return !(htab->map.map_flags & BPF_F_NO_PREALLOC); in htab_is_prealloc()
281 htab->map.map_flags & BPF_F_NO_COMMON_LRU, in prealloc_init()
353 bool percpu_lru = (attr->map_flags & BPF_F_NO_COMMON_LRU); in htab_map_alloc_check()
354 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc_check()
355 bool zero_seed = (attr->map_flags & BPF_F_ZERO_SEED); in htab_map_alloc_check()
373 if (attr->map_flags & ~HTAB_CREATE_FLAG_MASK || in htab_map_alloc_check()
374 !bpf_map_flags_access_ok(attr->map_flags)) in htab_map_alloc_check()
422 bool percpu_lru = (attr->map_flags & BPF_F_NO_COMMON_LRU); in htab_map_alloc()
423 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc()
483 if (htab->map.map_flags & BPF_F_ZERO_SEED) in htab_map_alloc()
941 u64 map_flags) in check_flags() argument
943 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
947 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
956 u64 map_flags) in htab_map_update_elem() argument
966 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST)) in htab_map_update_elem()
979 if (unlikely(map_flags & BPF_F_LOCK)) { in htab_map_update_elem()
985 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1005 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1009 if (unlikely(l_old && (map_flags & BPF_F_LOCK))) { in htab_map_update_elem()
1047 u64 map_flags) in htab_lru_map_update_elem() argument
1057 if (unlikely(map_flags > BPF_EXIST)) in htab_lru_map_update_elem()
1084 ret = check_flags(htab, l_old, map_flags); in htab_lru_map_update_elem()
1110 void *value, u64 map_flags, in __htab_percpu_map_update_elem() argument
1121 if (unlikely(map_flags > BPF_EXIST)) in __htab_percpu_map_update_elem()
1138 ret = check_flags(htab, l_old, map_flags); in __htab_percpu_map_update_elem()
1162 void *value, u64 map_flags, in __htab_lru_percpu_map_update_elem() argument
1173 if (unlikely(map_flags > BPF_EXIST)) in __htab_lru_percpu_map_update_elem()
1191 if (map_flags != BPF_EXIST) { in __htab_lru_percpu_map_update_elem()
1201 ret = check_flags(htab, l_old, map_flags); in __htab_lru_percpu_map_update_elem()
1226 void *value, u64 map_flags) in htab_percpu_map_update_elem() argument
1228 return __htab_percpu_map_update_elem(map, key, value, map_flags, false); in htab_percpu_map_update_elem()
1232 void *value, u64 map_flags) in htab_lru_percpu_map_update_elem() argument
1234 return __htab_lru_percpu_map_update_elem(map, key, value, map_flags, in htab_lru_percpu_map_update_elem()
1380 u64 elem_map_flags, map_flags; in __htab_map_lookup_and_delete_batch() local
1394 map_flags = attr->batch.flags; in __htab_map_lookup_and_delete_batch()
1395 if (map_flags) in __htab_map_lookup_and_delete_batch()
1925 u64 map_flags) in bpf_percpu_hash_update() argument
1933 map_flags, true); in bpf_percpu_hash_update()
1935 ret = __htab_percpu_map_update_elem(map, key, value, map_flags, in bpf_percpu_hash_update()
2055 void *key, void *value, u64 map_flags) in bpf_fd_htab_map_update_elem() argument
2065 ret = htab_map_update_elem(map, key, &ptr, map_flags); in bpf_fd_htab_map_update_elem()