Searched refs:l_new (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/bpf/ |
H A D | bpf_arena_htab.h | 71 hashtab_elem_t *l_new = NULL, *l_old; in htab_update_elem() local 78 l_new = bpf_alloc(sizeof(*l_new)); in htab_update_elem() 79 if (!l_new) in htab_update_elem() 81 l_new->key = key; in htab_update_elem() 82 l_new->hash = htab_hash(key); in htab_update_elem() 83 l_new->value = value; in htab_update_elem() 85 list_add_head(&l_new->hash_node, head); in htab_update_elem()
|
/linux/kernel/bpf/ |
H A D | hashtab.c | 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() [all …]
|