• Home
  • Raw
  • Download

Lines Matching refs:new

82 static struct rsi *rsi_update(struct cache_detail *cd, struct rsi *new, struct rsi *old);
138 struct rsi *new = container_of(cnew, struct rsi, h); in rsi_init() local
141 new->out_handle.data = NULL; in rsi_init()
142 new->out_handle.len = 0; in rsi_init()
143 new->out_token.data = NULL; in rsi_init()
144 new->out_token.len = 0; in rsi_init()
145 new->in_handle.len = item->in_handle.len; in rsi_init()
147 new->in_token.len = item->in_token.len; in rsi_init()
149 new->in_handle.data = item->in_handle.data; in rsi_init()
151 new->in_token.data = item->in_token.data; in rsi_init()
157 struct rsi *new = container_of(cnew, struct rsi, h); in update_rsi() local
160 BUG_ON(new->out_handle.data || new->out_token.data); in update_rsi()
161 new->out_handle.len = item->out_handle.len; in update_rsi()
163 new->out_token.len = item->out_token.len; in update_rsi()
165 new->out_handle.data = item->out_handle.data; in update_rsi()
167 new->out_token.data = item->out_token.data; in update_rsi()
170 new->major_status = item->major_status; in update_rsi()
171 new->minor_status = item->minor_status; in update_rsi()
307 static struct rsi *rsi_update(struct cache_detail *cd, struct rsi *new, struct rsi *old) in rsi_update() argument
310 int hash = rsi_hash(new); in rsi_update()
312 ch = sunrpc_cache_update(cd, &new->h, in rsi_update()
351 static struct rsc *rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old);
389 struct rsc *new = container_of(a, struct rsc, h); in rsc_match() local
392 return netobj_equal(&new->handle, &tmp->handle); in rsc_match()
398 struct rsc *new = container_of(cnew, struct rsc, h); in rsc_init() local
401 new->handle.len = tmp->handle.len; in rsc_init()
403 new->handle.data = tmp->handle.data; in rsc_init()
405 new->mechctx = NULL; in rsc_init()
406 init_svc_cred(&new->cred); in rsc_init()
412 struct rsc *new = container_of(cnew, struct rsc, h); in update_rsc() local
415 new->mechctx = tmp->mechctx; in update_rsc()
417 memset(&new->seqdata, 0, sizeof(new->seqdata)); in update_rsc()
418 spin_lock_init(&new->seqdata.sd_lock); in update_rsc()
419 new->cred = tmp->cred; in update_rsc()
584 static struct rsc *rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old) in rsc_update() argument
587 int hash = rsc_hash(new); in rsc_update()
589 ch = sunrpc_cache_update(cd, &new->h, in rsc_update()
834 struct gss_domain *new; in svcauth_gss_register_pseudoflavor() local
838 new = kmalloc(sizeof(*new), GFP_KERNEL); in svcauth_gss_register_pseudoflavor()
839 if (!new) in svcauth_gss_register_pseudoflavor()
841 kref_init(&new->h.ref); in svcauth_gss_register_pseudoflavor()
842 new->h.name = kstrdup(name, GFP_KERNEL); in svcauth_gss_register_pseudoflavor()
843 if (!new->h.name) in svcauth_gss_register_pseudoflavor()
845 new->h.flavour = &svcauthops_gss; in svcauth_gss_register_pseudoflavor()
846 new->pseudoflavor = pseudoflavor; in svcauth_gss_register_pseudoflavor()
848 test = auth_domain_lookup(name, &new->h); in svcauth_gss_register_pseudoflavor()
849 if (test != &new->h) { in svcauth_gss_register_pseudoflavor()
859 kfree(new->h.name); in svcauth_gss_register_pseudoflavor()
861 kfree(new); in svcauth_gss_register_pseudoflavor()