Home
last modified time | relevance | path

Searched refs:newnode (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/drivers/net/wireguard/
Dallowedips.c184 struct allowedips_node *node, *parent, *down, *newnode; in add() local
205 newnode = kmem_cache_zalloc(node_cache, GFP_KERNEL); in add()
206 if (unlikely(!newnode)) in add()
208 RCU_INIT_POINTER(newnode->peer, peer); in add()
209 list_add_tail(&newnode->peer_list, &peer->allowedips_list); in add()
210 copy_and_assign_cidr(newnode, key, cidr, bits); in add()
218 connect_node(&node->bit[bit], bit, newnode); in add()
225 if (newnode->cidr == cidr) { in add()
226 choose_and_connect_node(newnode, down); in add()
228 connect_node(trie, 2, newnode); in add()
[all …]
/linux-6.12.1/security/selinux/ss/
Dhashtab.c54 struct hashtab_node *newnode; in __hashtab_insert() local
56 newnode = kmem_cache_zalloc(hashtab_node_cachep, GFP_KERNEL); in __hashtab_insert()
57 if (!newnode) in __hashtab_insert()
59 newnode->key = key; in __hashtab_insert()
60 newnode->datum = datum; in __hashtab_insert()
61 newnode->next = *dst; in __hashtab_insert()
62 *dst = newnode; in __hashtab_insert()
Davtab.c72 struct avtab_node *newnode; in avtab_insert_node() local
74 newnode = kmem_cache_zalloc(avtab_node_cachep, GFP_KERNEL); in avtab_insert_node()
75 if (newnode == NULL) in avtab_insert_node()
77 newnode->key = *key; in avtab_insert_node()
82 kmem_cache_free(avtab_node_cachep, newnode); in avtab_insert_node()
86 newnode->datum.u.xperms = xperms; in avtab_insert_node()
88 newnode->datum.u.data = datum->u.data; in avtab_insert_node()
91 newnode->next = *dst; in avtab_insert_node()
92 *dst = newnode; in avtab_insert_node()
95 return newnode; in avtab_insert_node()
[all …]
/linux-6.12.1/drivers/scsi/aic7xxx/aicasm/
Daicasm_symbol.c225 symbol_node_t *newnode; in symlist_add() local
227 newnode = (symbol_node_t *)malloc(sizeof(symbol_node_t)); in symlist_add()
228 if (newnode == NULL) { in symlist_add()
232 newnode->symbol = symbol; in symlist_add()
258 && (curnode->symbol->type > newnode->symbol->type in symlist_add()
259 || (curnode->symbol->type == newnode->symbol->type in symlist_add()
261 newnode->symbol->info.finfo->value)))) in symlist_add()
263 newnode->symbol->info.rinfo->address))) { in symlist_add()
264 SLIST_INSERT_HEAD(symlist, newnode, links); in symlist_add()
270 SLIST_INSERT_AFTER(curnode, newnode, in symlist_add()
[all …]
/linux-6.12.1/scripts/genksyms/
Dgenksyms.c338 struct string_list *newnode; in mk_node() local
340 newnode = xmalloc(sizeof(*newnode)); in mk_node()
341 newnode->string = xstrdup(string); in mk_node()
342 newnode->tag = SYM_NORMAL; in mk_node()
343 newnode->next = NULL; in mk_node()
345 return newnode; in mk_node()
367 struct string_list *newnode; in copy_node() local
369 newnode = xmalloc(sizeof(*newnode)); in copy_node()
370 newnode->string = xstrdup(node->string); in copy_node()
371 newnode->tag = node->tag; in copy_node()
[all …]
/linux-6.12.1/drivers/scsi/elx/libefc/
Defc_fabric.c651 struct efc_node *newnode; in efc_process_gidpt_payload() local
758 newnode = efc_node_find(nport, port_id); in efc_process_gidpt_payload()
759 if (!newnode) { in efc_process_gidpt_payload()
763 newnode = efc_node_alloc(nport, port_id, false, false); in efc_process_gidpt_payload()
764 if (!newnode) { in efc_process_gidpt_payload()
772 efc_node_init_device(newnode, true); in efc_process_gidpt_payload()
775 if (node->nport->enable_ini && newnode->targ) { in efc_process_gidpt_payload()
776 efc_node_post_event(newnode, EFC_EVT_NODE_REFOUND, in efc_process_gidpt_payload()
/linux-6.12.1/lib/
Dmaple_tree.c3010 struct maple_node reuse, *newnode, *parent, *new_left, *left, *node; in mas_destroy_rebalance() local
3024 newnode = mas_pop_node(mas); in mas_destroy_rebalance()
3026 newnode = &reuse; in mas_destroy_rebalance()
3030 newnode->parent = node->parent; in mas_destroy_rebalance()
3031 slots = ma_slots(newnode, mt); in mas_destroy_rebalance()
3032 pivs = ma_pivots(newnode, mt); in mas_destroy_rebalance()
3062 memcpy(node, newnode, sizeof(struct maple_node)); in mas_destroy_rebalance()
3078 mas->node = mt_mk_node(newnode, mt); in mas_destroy_rebalance()
3079 ma_set_meta(newnode, mt, 0, tmp); in mas_destroy_rebalance()
3798 struct maple_node reuse, *newnode; in mas_wr_node_store() local
[all …]
/linux-6.12.1/drivers/scsi/lpfc/
Dlpfc_els.c10352 u32 cmd = 0, did = 0, newnode, status = 0; in lpfc_els_unsol_buffer() local
10360 newnode = 0; in lpfc_els_unsol_buffer()
10400 newnode = 1; in lpfc_els_unsol_buffer()
10405 newnode = 1; in lpfc_els_unsol_buffer()
10417 if (newnode) in lpfc_els_unsol_buffer()
10520 if (newnode) in lpfc_els_unsol_buffer()
10537 if (newnode) in lpfc_els_unsol_buffer()
10566 if (newnode) in lpfc_els_unsol_buffer()
10645 if (newnode) in lpfc_els_unsol_buffer()
10656 if (newnode) in lpfc_els_unsol_buffer()
[all …]