Home
last modified time | relevance | path

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

/linux/net/ipv6/
A Daddrlabel.c189 newp = kmalloc(sizeof(*newp), GFP_KERNEL); in ip6addrlbl_alloc()
190 if (!newp) 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()
254 if (IS_ERR(newp)) in ip6addrlbl_add()
255 return PTR_ERR(newp); in ip6addrlbl_add()
[all …]
/linux/security/selinux/ss/
A Dconditional.c629 static int duplicate_policydb_cond_list(struct policydb *newp, in duplicate_policydb_cond_list() argument
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), in duplicate_policydb_cond_list()
643 if (!newp->cond_list) in duplicate_policydb_cond_list()
647 struct cond_node *newn = &newp->cond_list[i]; in duplicate_policydb_cond_list()
650 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()
675 avtab_destroy(&newp->te_cond_avtab); in duplicate_policydb_cond_list()
[all …]
A Dmls.c448 struct policydb *newp, in mls_convert_context() argument
457 if (!oldp->mls_enabled || !newp->mls_enabled) in mls_convert_context()
464 levdatum = symtab_search(&newp->p_levels, name); in mls_convert_context()
474 catdatum = symtab_search(&newp->p_cats, in mls_convert_context()
A Dmls.h51 struct policydb *newp,
A Dservices.c74 struct policydb *newp; member
2045 rc = string_to_context_struct(args->newp, NULL, s, in convert_context()
2076 usrdatum = symtab_search(&args->newp->p_users, in convert_context()
2084 role = symtab_search(&args->newp->p_roles, in convert_context()
2091 typdatum = symtab_search(&args->newp->p_types, in convert_context()
2099 if (args->oldp->mls_enabled && args->newp->mls_enabled) { in convert_context()
2100 rc = mls_convert_context(args->oldp, args->newp, oldc, newc); in convert_context()
2103 } else if (!args->oldp->mls_enabled && args->newp->mls_enabled) { in convert_context()
2111 oc = args->newp->ocontexts[OCON_ISID]; in convert_context()
2125 if (!policydb_context_isvalid(args->newp, newc)) { in convert_context()
[all …]
/linux/include/linux/
A 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()
A Dnodemask.h348 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __node_remap() argument
350 return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits); in __node_remap()
356 const nodemask_t *oldp, const nodemask_t *newp, int nbits) in __nodes_remap() argument
358 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits); in __nodes_remap()
/linux/fs/overlayfs/
A Dreaddir.c71 struct rb_node **newp = *link; in ovl_cache_entry_find_link() local
73 while (!found && *newp) { in ovl_cache_entry_find_link()
77 *parent = *newp; in ovl_cache_entry_find_link()
78 tmp = ovl_cache_entry_from_node(*newp); in ovl_cache_entry_find_link()
81 newp = &tmp->node.rb_right; in ovl_cache_entry_find_link()
83 newp = &tmp->node.rb_left; in ovl_cache_entry_find_link()
87 *link = newp; in ovl_cache_entry_find_link()
191 rb_link_node(&p->node, parent, newp); in ovl_cache_entry_add_rb()
581 struct rb_node **newp = &root->rb_node; in ovl_dir_read_impure() local
585 &newp, &parent))) in ovl_dir_read_impure()
[all …]
/linux/mm/
A Dutil.c644 void *newp; in kvrealloc() local
648 newp = kvmalloc(newsize, flags); in kvrealloc()
649 if (!newp) in kvrealloc()
651 memcpy(newp, p, oldsize); in kvrealloc()
653 return newp; in kvrealloc()
/linux/net/xfrm/
A Dxfrm_policy.c2295 if (newp) { in clone_policy()
2299 kfree(newp); in clone_policy()
2302 newp->lft = old->lft; in clone_policy()
2303 newp->curlft = old->curlft; in clone_policy()
2304 newp->mark = old->mark; in clone_policy()
2305 newp->if_id = old->if_id; in clone_policy()
2307 newp->flags = old->flags; in clone_policy()
2309 newp->index = old->index; in clone_policy()
2310 newp->type = old->type; in clone_policy()
2317 xfrm_pol_put(newp); in clone_policy()
[all …]
/linux/drivers/block/null_blk/
A Dmain.c424 bool newp = false; in nullb_device_power_store() local
427 ret = nullb_device_bool_attr_store(&newp, page, count); in nullb_device_power_store()
431 if (!dev->power && newp) { in nullb_device_power_store()
440 dev->power = newp; in nullb_device_power_store()
441 } else if (dev->power && !newp) { in nullb_device_power_store()
444 dev->power = newp; in nullb_device_power_store()
/linux/drivers/net/arcnet/
A Darcnet.c1160 *newp = arc_proto_map[soft->proto]; in arcnet_rx() local
1162 if (oldp != newp) { in arcnet_rx()
1166 newp->suffix, oldp->suffix); in arcnet_rx()

Completed in 35 milliseconds