Lines Matching refs:l_old

1004 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old,  in check_flags()  argument
1007 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
1011 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
1023 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local
1048 l_old = lookup_nulls_elem_raw(head, hash, key, key_size, in htab_map_update_elem()
1050 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1053 if (l_old) { in htab_map_update_elem()
1056 l_old->key + round_up(key_size, 8), in htab_map_update_elem()
1070 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_map_update_elem()
1072 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1076 if (unlikely(l_old && (map_flags & BPF_F_LOCK))) { in htab_map_update_elem()
1084 l_old->key + round_up(key_size, 8), in htab_map_update_elem()
1091 l_old); in htab_map_update_elem()
1102 if (l_old) { in htab_map_update_elem()
1103 hlist_nulls_del_rcu(&l_old->hash_node); in htab_map_update_elem()
1105 free_htab_elem(htab, l_old); in htab_map_update_elem()
1107 check_and_free_timer(htab, l_old); in htab_map_update_elem()
1125 struct htab_elem *l_new, *l_old = NULL; in htab_lru_map_update_elem() local
1161 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_lru_map_update_elem()
1163 ret = check_flags(htab, l_old, map_flags); in htab_lru_map_update_elem()
1171 if (l_old) { in htab_lru_map_update_elem()
1173 hlist_nulls_del_rcu(&l_old->hash_node); in htab_lru_map_update_elem()
1182 else if (l_old) in htab_lru_map_update_elem()
1183 htab_lru_push_free(htab, l_old); in htab_lru_map_update_elem()
1193 struct htab_elem *l_new = NULL, *l_old; in __htab_percpu_map_update_elem() local
1218 l_old = lookup_elem_raw(head, hash, key, key_size); in __htab_percpu_map_update_elem()
1220 ret = check_flags(htab, l_old, map_flags); in __htab_percpu_map_update_elem()
1224 if (l_old) { in __htab_percpu_map_update_elem()
1226 pcpu_copy_value(htab, htab_elem_get_ptr(l_old, key_size), in __htab_percpu_map_update_elem()
1248 struct htab_elem *l_new = NULL, *l_old; in __htab_lru_percpu_map_update_elem() local
1284 l_old = lookup_elem_raw(head, hash, key, key_size); in __htab_lru_percpu_map_update_elem()
1286 ret = check_flags(htab, l_old, map_flags); in __htab_lru_percpu_map_update_elem()
1290 if (l_old) { in __htab_lru_percpu_map_update_elem()
1291 bpf_lru_node_set_ref(&l_old->lru_node); in __htab_lru_percpu_map_update_elem()
1294 pcpu_copy_value(htab, htab_elem_get_ptr(l_old, key_size), in __htab_lru_percpu_map_update_elem()