Lines Matching refs:l_new

392 	struct htab_elem *__percpu *pptr, *l_new;  in alloc_extra_elems()  local
406 l_new = container_of(l, struct htab_elem, fnode); in alloc_extra_elems()
407 *per_cpu_ptr(pptr, cpu) = l_new; in alloc_extra_elems()
1011 struct htab_elem *l_new, **pl_new; in alloc_htab_elem() local
1020 l_new = *pl_new; in alloc_htab_elem()
1029 l_new = container_of(l, struct htab_elem, fnode); in alloc_htab_elem()
1042 l_new = bpf_mem_cache_alloc(&htab->ma); in alloc_htab_elem()
1043 if (!l_new) { in alloc_htab_elem()
1044 l_new = ERR_PTR(-ENOMEM); in alloc_htab_elem()
1049 memcpy(l_new->key, key, key_size); in alloc_htab_elem()
1052 pptr = htab_elem_get_ptr(l_new, key_size); in alloc_htab_elem()
1058 bpf_mem_cache_free(&htab->ma, l_new); in alloc_htab_elem()
1059 l_new = ERR_PTR(-ENOMEM); in alloc_htab_elem()
1062 l_new->ptr_to_pptr = ptr; in alloc_htab_elem()
1069 htab_elem_set_ptr(l_new, key_size, pptr); in alloc_htab_elem()
1072 memcpy(l_new->key + round_up(key_size, 8), value, size); in alloc_htab_elem()
1075 l_new->key + round_up(key_size, 8), in alloc_htab_elem()
1079 l_new->hash = hash; in alloc_htab_elem()
1080 return l_new; in alloc_htab_elem()
1083 return l_new; in alloc_htab_elem()
1105 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local
1172 l_new = alloc_htab_elem(htab, key, value, key_size, hash, false, false, in htab_map_update_elem()
1174 if (IS_ERR(l_new)) { in htab_map_update_elem()
1176 ret = PTR_ERR(l_new); in htab_map_update_elem()
1183 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in htab_map_update_elem()
1208 struct htab_elem *l_new, *l_old = NULL; in htab_lru_map_update_elem() local
1234 l_new = prealloc_lru_pop(htab, key, hash); in htab_lru_map_update_elem()
1235 if (!l_new) in htab_lru_map_update_elem()
1238 l_new->key + round_up(map->key_size, 8), value); in htab_lru_map_update_elem()
1253 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in htab_lru_map_update_elem()
1255 bpf_lru_node_set_ref(&l_new->lru_node); in htab_lru_map_update_elem()
1265 htab_lru_push_free(htab, l_new); in htab_lru_map_update_elem()
1277 struct htab_elem *l_new = NULL, *l_old; in __htab_percpu_map_update_elem() local
1313 l_new = alloc_htab_elem(htab, key, value, key_size, in __htab_percpu_map_update_elem()
1315 if (IS_ERR(l_new)) { in __htab_percpu_map_update_elem()
1316 ret = PTR_ERR(l_new); in __htab_percpu_map_update_elem()
1319 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in __htab_percpu_map_update_elem()
1332 struct htab_elem *l_new = NULL, *l_old; in __htab_lru_percpu_map_update_elem() local
1359 l_new = prealloc_lru_pop(htab, key, hash); in __htab_lru_percpu_map_update_elem()
1360 if (!l_new) in __htab_lru_percpu_map_update_elem()
1381 pcpu_init_value(htab, htab_elem_get_ptr(l_new, key_size), in __htab_lru_percpu_map_update_elem()
1383 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in __htab_lru_percpu_map_update_elem()
1384 l_new = NULL; in __htab_lru_percpu_map_update_elem()
1390 if (l_new) { in __htab_lru_percpu_map_update_elem()
1392 bpf_lru_push_free(&htab->lru, &l_new->lru_node); in __htab_lru_percpu_map_update_elem()