Lines Matching refs:l_new

204 	struct htab_elem *__percpu *pptr, *l_new;  in alloc_extra_elems()  local
218 l_new = container_of(l, struct htab_elem, fnode); in alloc_extra_elems()
219 *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()
765 l_new->key + round_up(key_size, 8)); in alloc_htab_elem()
768 memcpy(l_new->key, key, key_size); in alloc_htab_elem()
772 pptr = htab_elem_get_ptr(l_new, key_size); in alloc_htab_elem()
778 kfree(l_new); in alloc_htab_elem()
779 l_new = ERR_PTR(-ENOMEM); in alloc_htab_elem()
787 htab_elem_set_ptr(l_new, key_size, pptr); in alloc_htab_elem()
790 memcpy(l_new->key + round_up(key_size, 8), value, size); in alloc_htab_elem()
793 l_new->key + round_up(key_size, 8), in alloc_htab_elem()
797 l_new->hash = hash; in alloc_htab_elem()
798 return l_new; in alloc_htab_elem()
801 return l_new; in alloc_htab_elem()
823 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local
888 l_new = alloc_htab_elem(htab, key, value, key_size, hash, false, false, in htab_map_update_elem()
890 if (IS_ERR(l_new)) { in htab_map_update_elem()
892 ret = PTR_ERR(l_new); in htab_map_update_elem()
899 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in htab_map_update_elem()
915 struct htab_elem *l_new, *l_old = NULL; in htab_lru_map_update_elem() local
940 l_new = prealloc_lru_pop(htab, key, hash); in htab_lru_map_update_elem()
941 if (!l_new) in htab_lru_map_update_elem()
943 memcpy(l_new->key + round_up(map->key_size, 8), value, map->value_size); in htab_lru_map_update_elem()
957 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in htab_lru_map_update_elem()
959 bpf_lru_node_set_ref(&l_new->lru_node); in htab_lru_map_update_elem()
968 bpf_lru_push_free(&htab->lru, &l_new->lru_node); in htab_lru_map_update_elem()
980 struct htab_elem *l_new = NULL, *l_old; in __htab_percpu_map_update_elem() local
1014 l_new = alloc_htab_elem(htab, key, value, key_size, in __htab_percpu_map_update_elem()
1016 if (IS_ERR(l_new)) { in __htab_percpu_map_update_elem()
1017 ret = PTR_ERR(l_new); in __htab_percpu_map_update_elem()
1020 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in __htab_percpu_map_update_elem()
1033 struct htab_elem *l_new = NULL, *l_old; in __htab_lru_percpu_map_update_elem() local
1059 l_new = prealloc_lru_pop(htab, key, hash); in __htab_lru_percpu_map_update_elem()
1060 if (!l_new) in __htab_lru_percpu_map_update_elem()
1080 pcpu_copy_value(htab, htab_elem_get_ptr(l_new, key_size), in __htab_lru_percpu_map_update_elem()
1082 hlist_nulls_add_head_rcu(&l_new->hash_node, head); in __htab_lru_percpu_map_update_elem()
1083 l_new = NULL; in __htab_lru_percpu_map_update_elem()
1088 if (l_new) in __htab_lru_percpu_map_update_elem()
1089 bpf_lru_push_free(&htab->lru, &l_new->lru_node); in __htab_lru_percpu_map_update_elem()