Lines Matching refs:l_new

212 	struct htab_elem *__percpu *pptr, *l_new;  in alloc_extra_elems()  local
226 l_new = container_of(l, struct htab_elem, fnode); in alloc_extra_elems()
227 *per_cpu_ptr(pptr, cpu) = l_new; in alloc_extra_elems()
728 struct htab_elem *l_new, **pl_new; in alloc_htab_elem() local
737 l_new = *pl_new; in alloc_htab_elem()
745 l_new = container_of(l, struct htab_elem, fnode); in alloc_htab_elem()
755 l_new = ERR_PTR(-E2BIG); in alloc_htab_elem()
758 l_new = kmalloc_node(htab->elem_size, GFP_ATOMIC | __GFP_NOWARN, in alloc_htab_elem()
760 if (!l_new) { in alloc_htab_elem()
761 l_new = ERR_PTR(-ENOMEM); in alloc_htab_elem()
766 memcpy(l_new->key, key, key_size); in alloc_htab_elem()
769 pptr = htab_elem_get_ptr(l_new, key_size); in alloc_htab_elem()
775 kfree(l_new); in alloc_htab_elem()
776 l_new = ERR_PTR(-ENOMEM); in alloc_htab_elem()
784 htab_elem_set_ptr(l_new, key_size, pptr); in alloc_htab_elem()
786 memcpy(l_new->key + round_up(key_size, 8), value, size); in alloc_htab_elem()
789 l_new->hash = hash; in alloc_htab_elem()
790 return l_new; in alloc_htab_elem()
793 return l_new; in alloc_htab_elem()
815 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local
844 l_new = alloc_htab_elem(htab, key, value, key_size, hash, false, false, in htab_map_update_elem()
846 if (IS_ERR(l_new)) { in htab_map_update_elem()
848 ret = PTR_ERR(l_new); in htab_map_update_elem()
855 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in htab_map_update_elem()
871 struct htab_elem *l_new, *l_old = NULL; in htab_lru_map_update_elem() local
896 l_new = prealloc_lru_pop(htab, key, hash); in htab_lru_map_update_elem()
897 if (!l_new) in htab_lru_map_update_elem()
899 memcpy(l_new->key + round_up(map->key_size, 8), value, map->value_size); in htab_lru_map_update_elem()
913 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in htab_lru_map_update_elem()
915 bpf_lru_node_set_ref(&l_new->lru_node); in htab_lru_map_update_elem()
924 bpf_lru_push_free(&htab->lru, &l_new->lru_node); in htab_lru_map_update_elem()
936 struct htab_elem *l_new = NULL, *l_old; in __htab_percpu_map_update_elem() local
970 l_new = alloc_htab_elem(htab, key, value, key_size, in __htab_percpu_map_update_elem()
972 if (IS_ERR(l_new)) { in __htab_percpu_map_update_elem()
973 ret = PTR_ERR(l_new); in __htab_percpu_map_update_elem()
976 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in __htab_percpu_map_update_elem()
989 struct htab_elem *l_new = NULL, *l_old; in __htab_lru_percpu_map_update_elem() local
1015 l_new = prealloc_lru_pop(htab, key, hash); in __htab_lru_percpu_map_update_elem()
1016 if (!l_new) in __htab_lru_percpu_map_update_elem()
1036 pcpu_copy_value(htab, htab_elem_get_ptr(l_new, key_size), in __htab_lru_percpu_map_update_elem()
1038 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in __htab_lru_percpu_map_update_elem()
1039 l_new = NULL; in __htab_lru_percpu_map_update_elem()
1044 if (l_new) in __htab_lru_percpu_map_update_elem()
1045 bpf_lru_push_free(&htab->lru, &l_new->lru_node); in __htab_lru_percpu_map_update_elem()