Lines Matching refs:l_old

1053 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old,  in check_flags()  argument
1056 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
1060 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
1072 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local
1097 l_old = lookup_nulls_elem_raw(head, hash, key, key_size, in htab_map_update_elem()
1099 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1102 if (l_old) { in htab_map_update_elem()
1105 l_old->key + round_up(key_size, 8), in htab_map_update_elem()
1119 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_map_update_elem()
1121 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1125 if (unlikely(l_old && (map_flags & BPF_F_LOCK))) { in htab_map_update_elem()
1133 l_old->key + round_up(key_size, 8), in htab_map_update_elem()
1140 l_old); in htab_map_update_elem()
1151 if (l_old) { in htab_map_update_elem()
1152 hlist_nulls_del_rcu(&l_old->hash_node); in htab_map_update_elem()
1154 free_htab_elem(htab, l_old); in htab_map_update_elem()
1156 check_and_free_fields(htab, l_old); in htab_map_update_elem()
1174 struct htab_elem *l_new, *l_old = NULL; in htab_lru_map_update_elem() local
1210 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_lru_map_update_elem()
1212 ret = check_flags(htab, l_old, map_flags); in htab_lru_map_update_elem()
1220 if (l_old) { in htab_lru_map_update_elem()
1222 hlist_nulls_del_rcu(&l_old->hash_node); in htab_lru_map_update_elem()
1231 else if (l_old) in htab_lru_map_update_elem()
1232 htab_lru_push_free(htab, l_old); in htab_lru_map_update_elem()
1242 struct htab_elem *l_new = NULL, *l_old; in __htab_percpu_map_update_elem() local
1267 l_old = lookup_elem_raw(head, hash, key, key_size); in __htab_percpu_map_update_elem()
1269 ret = check_flags(htab, l_old, map_flags); in __htab_percpu_map_update_elem()
1273 if (l_old) { in __htab_percpu_map_update_elem()
1275 pcpu_copy_value(htab, htab_elem_get_ptr(l_old, key_size), in __htab_percpu_map_update_elem()
1297 struct htab_elem *l_new = NULL, *l_old; in __htab_lru_percpu_map_update_elem() local
1333 l_old = lookup_elem_raw(head, hash, key, key_size); in __htab_lru_percpu_map_update_elem()
1335 ret = check_flags(htab, l_old, map_flags); in __htab_lru_percpu_map_update_elem()
1339 if (l_old) { in __htab_lru_percpu_map_update_elem()
1340 bpf_lru_node_set_ref(&l_old->lru_node); in __htab_lru_percpu_map_update_elem()
1343 pcpu_copy_value(htab, htab_elem_get_ptr(l_old, key_size), in __htab_lru_percpu_map_update_elem()