Lines Matching refs:new
328 struct rpc_cred_cache *new; in rpcauth_init_credcache() local
331 new = kmalloc(sizeof(*new), GFP_KERNEL); in rpcauth_init_credcache()
332 if (!new) in rpcauth_init_credcache()
334 new->hashbits = auth_hashbits; in rpcauth_init_credcache()
335 hashsize = 1U << new->hashbits; in rpcauth_init_credcache()
336 new->hashtable = kcalloc(hashsize, sizeof(new->hashtable[0]), GFP_KERNEL); in rpcauth_init_credcache()
337 if (!new->hashtable) in rpcauth_init_credcache()
339 spin_lock_init(&new->lock); in rpcauth_init_credcache()
340 auth->au_credcache = new; in rpcauth_init_credcache()
343 kfree(new); in rpcauth_init_credcache()
551 *entry, *new; in rpcauth_lookup_credcache() local
583 new = auth->au_ops->crcreate(auth, acred, flags); in rpcauth_lookup_credcache()
584 if (IS_ERR(new)) { in rpcauth_lookup_credcache()
585 cred = new; in rpcauth_lookup_credcache()
597 cred = new; in rpcauth_lookup_credcache()
601 list_add_tail(&new->cr_lru, &free); in rpcauth_lookup_credcache()
693 struct rpc_cred *new; in rpcauth_bindcred() local
699 new = cred->cr_ops->crbind(task, cred, lookupflags); in rpcauth_bindcred()
701 new = rpcauth_bind_root_cred(task, lookupflags); in rpcauth_bindcred()
703 new = rpcauth_bind_new_cred(task, lookupflags); in rpcauth_bindcred()
704 if (IS_ERR(new)) in rpcauth_bindcred()
705 return PTR_ERR(new); in rpcauth_bindcred()
708 req->rq_cred = new; in rpcauth_bindcred()