Searched refs:l_new (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_arena_htab.h | 70 hashtab_elem_t *l_new = NULL, *l_old; in htab_update_elem() 77 l_new = bpf_alloc(sizeof(*l_new)); in htab_update_elem() 78 if (!l_new) in htab_update_elem() 80 l_new->key = key; in htab_update_elem() 81 l_new->hash = htab_hash(key); in htab_update_elem() 82 l_new->value = value; in htab_update_elem() 84 list_add_head(&l_new->hash_node, head); in htab_update_elem() 71 hashtab_elem_t *l_new = NULL, *l_old; htab_update_elem() local
|
| /linux/kernel/bpf/ |
| H A D | hashtab.c | 390 struct htab_elem *__percpu *pptr, *l_new; in alloc_extra_elems() local 404 l_new = container_of(l, struct htab_elem, fnode); in alloc_extra_elems() 405 *per_cpu_ptr(pptr, cpu) = l_new; in alloc_extra_elems() 1082 struct htab_elem *l_new, **pl_new; in alloc_htab_elem() local 1091 l_new = *pl_new; in alloc_htab_elem() 1099 l_new = container_of(l, struct htab_elem, fnode); in alloc_htab_elem() 1112 l_new = bpf_mem_cache_alloc(&htab->ma); in alloc_htab_elem() 1113 if (!l_new) { in alloc_htab_elem() 1114 l_new = ERR_PTR(-ENOMEM); in alloc_htab_elem() 1119 memcpy(l_new->key, key, key_size); in alloc_htab_elem() [all …]
|