Home
last modified time | relevance | path

Searched refs:newp (Results 1 – 12 of 12) sorted by relevance

/linux-6.12.1/net/ipv6/
Daddrlabel.c164 struct ip6addrlbl_entry *newp; in ip6addrlbl_alloc() local
189 newp = kmalloc(sizeof(*newp), GFP_KERNEL); in ip6addrlbl_alloc()
190 if (!newp) in ip6addrlbl_alloc()
193 ipv6_addr_prefix(&newp->prefix, prefix, prefixlen); in ip6addrlbl_alloc()
194 newp->prefixlen = prefixlen; in ip6addrlbl_alloc()
195 newp->ifindex = ifindex; in ip6addrlbl_alloc()
196 newp->addrtype = addrtype; in ip6addrlbl_alloc()
197 newp->label = label; in ip6addrlbl_alloc()
198 INIT_HLIST_NODE(&newp->list); in ip6addrlbl_alloc()
199 return newp; in ip6addrlbl_alloc()
[all …]
/linux-6.12.1/security/selinux/ss/
Dconditional.c629 static int duplicate_policydb_cond_list(struct policydb *newp, in duplicate_policydb_cond_list() argument
635 rc = avtab_alloc_dup(&newp->te_cond_avtab, &origp->te_cond_avtab); in duplicate_policydb_cond_list()
639 newp->cond_list_len = 0; in duplicate_policydb_cond_list()
640 newp->cond_list = kcalloc(origp->cond_list_len, in duplicate_policydb_cond_list()
641 sizeof(*newp->cond_list), GFP_KERNEL); in duplicate_policydb_cond_list()
642 if (!newp->cond_list) in duplicate_policydb_cond_list()
646 struct cond_node *newn = &newp->cond_list[i]; in duplicate_policydb_cond_list()
649 newp->cond_list_len++; in duplicate_policydb_cond_list()
662 &newp->te_cond_avtab); in duplicate_policydb_cond_list()
667 &newp->te_cond_avtab); in duplicate_policydb_cond_list()
[all …]
Dmls.c439 int mls_convert_context(struct policydb *oldp, struct policydb *newp, in mls_convert_context() argument
448 if (!oldp->mls_enabled || !newp->mls_enabled) in mls_convert_context()
455 levdatum = symtab_search(&newp->p_levels, name); in mls_convert_context()
466 catdatum = symtab_search(&newp->p_cats, in mls_convert_context()
Dservices.h35 struct policydb *newp; member
Dmls.h42 int mls_convert_context(struct policydb *oldp, struct policydb *newp,
Dservices.c2018 rc = string_to_context_struct(args->newp, NULL, s, newc, SECSID_NULL); in services_convert_context()
2048 usrdatum = symtab_search(&args->newp->p_users, in services_convert_context()
2055 role = symtab_search(&args->newp->p_roles, in services_convert_context()
2062 typdatum = symtab_search(&args->newp->p_types, in services_convert_context()
2069 if (args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context()
2070 rc = mls_convert_context(args->oldp, args->newp, oldc, newc); in services_convert_context()
2073 } else if (!args->oldp->mls_enabled && args->newp->mls_enabled) { in services_convert_context()
2081 oc = args->newp->ocontexts[OCON_ISID]; in services_convert_context()
2095 if (!policydb_context_isvalid(args->newp, newc)) { in services_convert_context()
2315 convert_data->args.newp = &newpolicy->policydb; in security_load_policy()
/linux-6.12.1/include/linux/
Dhdlcdrv.h207 unsigned newp; in hdlcdrv_hbuf_put() local
211 newp = (hb->wr+1) % HDLCDRV_HDLCBUFFER; in hdlcdrv_hbuf_put()
212 if (newp != hb->rd) { in hdlcdrv_hbuf_put()
214 hb->wr = newp; in hdlcdrv_hbuf_put()
Dnodemask.h356 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __node_remap() argument
358 return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits); in __node_remap()
364 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __nodes_remap() argument
366 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits); in __nodes_remap()
/linux-6.12.1/fs/overlayfs/
Dreaddir.c73 struct rb_node **newp = *link; in ovl_cache_entry_find_link() local
75 while (!found && *newp) { in ovl_cache_entry_find_link()
79 *parent = *newp; in ovl_cache_entry_find_link()
80 tmp = ovl_cache_entry_from_node(*newp); in ovl_cache_entry_find_link()
83 newp = &tmp->node.rb_right; in ovl_cache_entry_find_link()
85 newp = &tmp->node.rb_left; in ovl_cache_entry_find_link()
89 *link = newp; in ovl_cache_entry_find_link()
181 struct rb_node **newp = &rdd->root->rb_node; in ovl_cache_entry_add_rb() local
185 if (ovl_cache_entry_find_link(name, len, &newp, &parent)) in ovl_cache_entry_add_rb()
195 rb_link_node(&p->node, parent, newp); in ovl_cache_entry_add_rb()
[all …]
/linux-6.12.1/net/xfrm/
Dxfrm_policy.c2403 struct xfrm_policy *newp = xfrm_policy_alloc(xp_net(old), GFP_ATOMIC); in clone_policy() local
2406 if (newp) { in clone_policy()
2407 newp->selector = old->selector; in clone_policy()
2409 &newp->security)) { in clone_policy()
2410 kfree(newp); in clone_policy()
2413 newp->lft = old->lft; in clone_policy()
2414 newp->curlft = old->curlft; in clone_policy()
2415 newp->mark = old->mark; in clone_policy()
2416 newp->if_id = old->if_id; in clone_policy()
2417 newp->action = old->action; in clone_policy()
[all …]
/linux-6.12.1/drivers/block/null_blk/
Dmain.c481 bool newp = false; in nullb_device_power_store() local
484 ret = nullb_device_bool_attr_store(&newp, page, count); in nullb_device_power_store()
490 if (!dev->power && newp) { in nullb_device_power_store()
501 dev->power = newp; in nullb_device_power_store()
503 } else if (dev->power && !newp) { in nullb_device_power_store()
505 dev->power = newp; in nullb_device_power_store()
/linux-6.12.1/drivers/net/arcnet/
Darcnet.c1158 *newp = arc_proto_map[soft->proto]; in arcnet_rx() local
1160 if (oldp != newp) { in arcnet_rx()
1164 newp->suffix, oldp->suffix); in arcnet_rx()