Lines Matching refs:l_new
320 struct htab_elem *__percpu *pptr, *l_new; in alloc_extra_elems() local
334 l_new = container_of(l, struct htab_elem, fnode); in alloc_extra_elems()
335 *per_cpu_ptr(pptr, cpu) = l_new; in alloc_extra_elems()
863 struct htab_elem *l_new, **pl_new; in alloc_htab_elem() local
872 l_new = *pl_new; in alloc_htab_elem()
881 l_new = container_of(l, struct htab_elem, fnode); in alloc_htab_elem()
891 l_new = ERR_PTR(-E2BIG); in alloc_htab_elem()
894 l_new = kmalloc_node(htab->elem_size, GFP_ATOMIC | __GFP_NOWARN, in alloc_htab_elem()
896 if (!l_new) { in alloc_htab_elem()
897 l_new = ERR_PTR(-ENOMEM); in alloc_htab_elem()
901 l_new->key + round_up(key_size, 8)); in alloc_htab_elem()
904 memcpy(l_new->key, key, key_size); in alloc_htab_elem()
908 pptr = htab_elem_get_ptr(l_new, key_size); in alloc_htab_elem()
914 kfree(l_new); in alloc_htab_elem()
915 l_new = ERR_PTR(-ENOMEM); in alloc_htab_elem()
923 htab_elem_set_ptr(l_new, key_size, pptr); in alloc_htab_elem()
926 memcpy(l_new->key + round_up(key_size, 8), value, size); in alloc_htab_elem()
929 l_new->key + round_up(key_size, 8), in alloc_htab_elem()
933 l_new->hash = hash; in alloc_htab_elem()
934 return l_new; in alloc_htab_elem()
937 return l_new; in alloc_htab_elem()
959 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local
1023 l_new = alloc_htab_elem(htab, key, value, key_size, hash, false, false, in htab_map_update_elem()
1025 if (IS_ERR(l_new)) { in htab_map_update_elem()
1027 ret = PTR_ERR(l_new); in htab_map_update_elem()
1034 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in htab_map_update_elem()
1050 struct htab_elem *l_new, *l_old = NULL; in htab_lru_map_update_elem() local
1075 l_new = prealloc_lru_pop(htab, key, hash); in htab_lru_map_update_elem()
1076 if (!l_new) in htab_lru_map_update_elem()
1078 memcpy(l_new->key + round_up(map->key_size, 8), value, map->value_size); in htab_lru_map_update_elem()
1091 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in htab_lru_map_update_elem()
1093 bpf_lru_node_set_ref(&l_new->lru_node); in htab_lru_map_update_elem()
1102 bpf_lru_push_free(&htab->lru, &l_new->lru_node); in htab_lru_map_update_elem()
1114 struct htab_elem *l_new = NULL, *l_old; in __htab_percpu_map_update_elem() local
1147 l_new = alloc_htab_elem(htab, key, value, key_size, in __htab_percpu_map_update_elem()
1149 if (IS_ERR(l_new)) { in __htab_percpu_map_update_elem()
1150 ret = PTR_ERR(l_new); in __htab_percpu_map_update_elem()
1153 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in __htab_percpu_map_update_elem()
1166 struct htab_elem *l_new = NULL, *l_old; in __htab_lru_percpu_map_update_elem() local
1192 l_new = prealloc_lru_pop(htab, key, hash); in __htab_lru_percpu_map_update_elem()
1193 if (!l_new) in __htab_lru_percpu_map_update_elem()
1212 pcpu_init_value(htab, htab_elem_get_ptr(l_new, key_size), in __htab_lru_percpu_map_update_elem()
1214 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in __htab_lru_percpu_map_update_elem()
1215 l_new = NULL; in __htab_lru_percpu_map_update_elem()
1220 if (l_new) in __htab_lru_percpu_map_update_elem()
1221 bpf_lru_push_free(&htab->lru, &l_new->lru_node); in __htab_lru_percpu_map_update_elem()