Lines Matching refs:l_new
377 struct htab_elem *__percpu *pptr, *l_new; in alloc_extra_elems() local
391 l_new = container_of(l, struct htab_elem, fnode); in alloc_extra_elems()
392 *per_cpu_ptr(pptr, cpu) = l_new; in alloc_extra_elems()
926 struct htab_elem *l_new, **pl_new; in alloc_htab_elem() local
935 l_new = *pl_new; in alloc_htab_elem()
944 l_new = container_of(l, struct htab_elem, fnode); in alloc_htab_elem()
954 l_new = ERR_PTR(-E2BIG); in alloc_htab_elem()
957 l_new = bpf_map_kmalloc_node(&htab->map, htab->elem_size, in alloc_htab_elem()
960 if (!l_new) { in alloc_htab_elem()
961 l_new = ERR_PTR(-ENOMEM); in alloc_htab_elem()
965 l_new->key + round_up(key_size, 8)); in alloc_htab_elem()
968 memcpy(l_new->key, key, key_size); in alloc_htab_elem()
972 pptr = htab_elem_get_ptr(l_new, key_size); in alloc_htab_elem()
978 kfree(l_new); in alloc_htab_elem()
979 l_new = ERR_PTR(-ENOMEM); in alloc_htab_elem()
987 htab_elem_set_ptr(l_new, key_size, pptr); in alloc_htab_elem()
990 memcpy(l_new->key + round_up(key_size, 8), value, size); in alloc_htab_elem()
993 l_new->key + round_up(key_size, 8), in alloc_htab_elem()
997 l_new->hash = hash; in alloc_htab_elem()
998 return l_new; in alloc_htab_elem()
1001 return l_new; in alloc_htab_elem()
1023 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local
1090 l_new = alloc_htab_elem(htab, key, value, key_size, hash, false, false, in htab_map_update_elem()
1092 if (IS_ERR(l_new)) { in htab_map_update_elem()
1094 ret = PTR_ERR(l_new); in htab_map_update_elem()
1101 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in htab_map_update_elem()
1125 struct htab_elem *l_new, *l_old = NULL; in htab_lru_map_update_elem() local
1151 l_new = prealloc_lru_pop(htab, key, hash); in htab_lru_map_update_elem()
1152 if (!l_new) in htab_lru_map_update_elem()
1155 l_new->key + round_up(map->key_size, 8), value); in htab_lru_map_update_elem()
1170 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in htab_lru_map_update_elem()
1172 bpf_lru_node_set_ref(&l_new->lru_node); in htab_lru_map_update_elem()
1181 htab_lru_push_free(htab, l_new); in htab_lru_map_update_elem()
1193 struct htab_elem *l_new = NULL, *l_old; in __htab_percpu_map_update_elem() local
1229 l_new = alloc_htab_elem(htab, key, value, key_size, in __htab_percpu_map_update_elem()
1231 if (IS_ERR(l_new)) { in __htab_percpu_map_update_elem()
1232 ret = PTR_ERR(l_new); in __htab_percpu_map_update_elem()
1235 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in __htab_percpu_map_update_elem()
1248 struct htab_elem *l_new = NULL, *l_old; in __htab_lru_percpu_map_update_elem() local
1275 l_new = prealloc_lru_pop(htab, key, hash); in __htab_lru_percpu_map_update_elem()
1276 if (!l_new) in __htab_lru_percpu_map_update_elem()
1297 pcpu_init_value(htab, htab_elem_get_ptr(l_new, key_size), in __htab_lru_percpu_map_update_elem()
1299 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in __htab_lru_percpu_map_update_elem()
1300 l_new = NULL; in __htab_lru_percpu_map_update_elem()
1305 if (l_new) in __htab_lru_percpu_map_update_elem()
1306 bpf_lru_push_free(&htab->lru, &l_new->lru_node); in __htab_lru_percpu_map_update_elem()