Lines Matching refs:map_flags

134 	return !(htab->map.map_flags & BPF_F_NO_PREALLOC);  in htab_is_prealloc()
353 htab->map.map_flags & BPF_F_NO_COMMON_LRU, in prealloc_init()
425 bool percpu_lru = (attr->map_flags & BPF_F_NO_COMMON_LRU); in htab_map_alloc_check()
426 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc_check()
427 bool zero_seed = (attr->map_flags & BPF_F_ZERO_SEED); in htab_map_alloc_check()
437 if (attr->map_flags & ~HTAB_CREATE_FLAG_MASK || in htab_map_alloc_check()
438 !bpf_map_flags_access_ok(attr->map_flags)) in htab_map_alloc_check()
483 bool percpu_lru = (attr->map_flags & BPF_F_NO_COMMON_LRU); in htab_map_alloc()
484 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc()
548 if (htab->map.map_flags & BPF_F_ZERO_SEED) in htab_map_alloc()
1087 u64 map_flags) in check_flags() argument
1089 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
1093 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
1102 u64 map_flags) in htab_map_update_elem() argument
1112 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST)) in htab_map_update_elem()
1126 if (unlikely(map_flags & BPF_F_LOCK)) { in htab_map_update_elem()
1132 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1154 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1158 if (unlikely(l_old && (map_flags & BPF_F_LOCK))) { in htab_map_update_elem()
1205 u64 map_flags) in htab_lru_map_update_elem() argument
1215 if (unlikely(map_flags > BPF_EXIST)) in htab_lru_map_update_elem()
1246 ret = check_flags(htab, l_old, map_flags); in htab_lru_map_update_elem()
1273 void *value, u64 map_flags, in __htab_percpu_map_update_elem() argument
1284 if (unlikely(map_flags > BPF_EXIST)) in __htab_percpu_map_update_elem()
1304 ret = check_flags(htab, l_old, map_flags); in __htab_percpu_map_update_elem()
1328 void *value, u64 map_flags, in __htab_lru_percpu_map_update_elem() argument
1339 if (unlikely(map_flags > BPF_EXIST)) in __htab_lru_percpu_map_update_elem()
1358 if (map_flags != BPF_EXIST) { in __htab_lru_percpu_map_update_elem()
1370 ret = check_flags(htab, l_old, map_flags); in __htab_lru_percpu_map_update_elem()
1398 void *value, u64 map_flags) in htab_percpu_map_update_elem() argument
1400 return __htab_percpu_map_update_elem(map, key, value, map_flags, false); in htab_percpu_map_update_elem()
1404 void *value, u64 map_flags) in htab_lru_percpu_map_update_elem() argument
1406 return __htab_lru_percpu_map_update_elem(map, key, value, map_flags, in htab_lru_percpu_map_update_elem()
1707 u64 elem_map_flags, map_flags; in __htab_map_lookup_and_delete_batch() local
1721 map_flags = attr->batch.flags; in __htab_map_lookup_and_delete_batch()
1722 if (map_flags) in __htab_map_lookup_and_delete_batch()
2418 u64 map_flags) in bpf_percpu_hash_update() argument
2426 map_flags, true); in bpf_percpu_hash_update()
2428 ret = __htab_percpu_map_update_elem(map, key, value, map_flags, in bpf_percpu_hash_update()
2555 void *key, void *value, u64 map_flags) in bpf_fd_htab_map_update_elem() argument
2570 ret = htab_map_update_elem(map, key, &ptr, map_flags); in bpf_fd_htab_map_update_elem()