Lines Matching defs:new

106 static struct rsi *rsi_update(struct cache_detail *cd, struct rsi *new, struct rsi *old);
162 struct rsi *new = container_of(cnew, struct rsi, h);
165 new->out_handle.data = NULL;
166 new->out_handle.len = 0;
167 new->out_token.data = NULL;
168 new->out_token.len = 0;
169 new->in_handle.len = item->in_handle.len;
171 new->in_token.len = item->in_token.len;
173 new->in_handle.data = item->in_handle.data;
175 new->in_token.data = item->in_token.data;
181 struct rsi *new = container_of(cnew, struct rsi, h);
184 BUG_ON(new->out_handle.data || new->out_token.data);
185 new->out_handle.len = item->out_handle.len;
187 new->out_token.len = item->out_token.len;
189 new->out_handle.data = item->out_handle.data;
191 new->out_token.data = item->out_token.data;
194 new->major_status = item->major_status;
195 new->minor_status = item->minor_status;
333 static struct rsi *rsi_update(struct cache_detail *cd, struct rsi *new, struct rsi *old)
336 int hash = rsi_hash(new);
338 ch = sunrpc_cache_update(cd, &new->h,
377 static struct rsc *rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old);
415 struct rsc *new = container_of(a, struct rsc, h);
418 return netobj_equal(&new->handle, &tmp->handle);
424 struct rsc *new = container_of(cnew, struct rsc, h);
427 new->handle.len = tmp->handle.len;
429 new->handle.data = tmp->handle.data;
431 new->mechctx = NULL;
432 init_svc_cred(&new->cred);
438 struct rsc *new = container_of(cnew, struct rsc, h);
441 new->mechctx = tmp->mechctx;
443 memset(&new->seqdata, 0, sizeof(new->seqdata));
444 spin_lock_init(&new->seqdata.sd_lock);
445 new->cred = tmp->cred;
610 static struct rsc *rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old)
613 int hash = rsc_hash(new);
615 ch = sunrpc_cache_update(cd, &new->h,
813 struct gss_domain *new;
817 new = kmalloc(sizeof(*new), GFP_KERNEL);
818 if (!new)
820 kref_init(&new->h.ref);
821 new->h.name = kstrdup(name, GFP_KERNEL);
822 if (!new->h.name)
824 new->h.flavour = &svcauthops_gss;
825 new->pseudoflavor = pseudoflavor;
827 test = auth_domain_lookup(name, &new->h);
828 if (test != &new->h) {
838 kfree(new->h.name);
840 kfree(new);
1364 * Try to set the sn->use_gss_proxy variable to a new value. We only allow