Lines Matching refs:l_old

1071 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old,  in check_flags()  argument
1074 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
1078 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
1090 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local
1115 l_old = lookup_nulls_elem_raw(head, hash, key, key_size, in htab_map_update_elem()
1117 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1120 if (l_old) { in htab_map_update_elem()
1123 l_old->key + round_up(key_size, 8), in htab_map_update_elem()
1137 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_map_update_elem()
1139 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1143 if (unlikely(l_old && (map_flags & BPF_F_LOCK))) { in htab_map_update_elem()
1151 l_old->key + round_up(key_size, 8), in htab_map_update_elem()
1158 l_old); in htab_map_update_elem()
1169 if (l_old) { in htab_map_update_elem()
1170 hlist_nulls_del_rcu(&l_old->hash_node); in htab_map_update_elem()
1172 free_htab_elem(htab, l_old); in htab_map_update_elem()
1174 check_and_free_fields(htab, l_old); in htab_map_update_elem()
1193 struct htab_elem *l_new, *l_old = NULL; in htab_lru_map_update_elem() local
1229 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_lru_map_update_elem()
1231 ret = check_flags(htab, l_old, map_flags); in htab_lru_map_update_elem()
1239 if (l_old) { in htab_lru_map_update_elem()
1241 hlist_nulls_del_rcu(&l_old->hash_node); in htab_lru_map_update_elem()
1251 else if (l_old) in htab_lru_map_update_elem()
1252 htab_lru_push_free(htab, l_old); in htab_lru_map_update_elem()
1262 struct htab_elem *l_new = NULL, *l_old; in __htab_percpu_map_update_elem() local
1287 l_old = lookup_elem_raw(head, hash, key, key_size); in __htab_percpu_map_update_elem()
1289 ret = check_flags(htab, l_old, map_flags); in __htab_percpu_map_update_elem()
1293 if (l_old) { in __htab_percpu_map_update_elem()
1295 pcpu_copy_value(htab, htab_elem_get_ptr(l_old, key_size), in __htab_percpu_map_update_elem()
1317 struct htab_elem *l_new = NULL, *l_old; in __htab_lru_percpu_map_update_elem() local
1353 l_old = lookup_elem_raw(head, hash, key, key_size); in __htab_lru_percpu_map_update_elem()
1355 ret = check_flags(htab, l_old, map_flags); in __htab_lru_percpu_map_update_elem()
1359 if (l_old) { in __htab_lru_percpu_map_update_elem()
1360 bpf_lru_node_set_ref(&l_old->lru_node); in __htab_lru_percpu_map_update_elem()
1363 pcpu_copy_value(htab, htab_elem_get_ptr(l_old, key_size), in __htab_lru_percpu_map_update_elem()