Lines Matching refs:auth

258 	struct rpc_auth		*auth;  in rpcauth_create()  local
262 auth = ERR_PTR(-EINVAL); in rpcauth_create()
275 auth = ops->create(args, clnt); in rpcauth_create()
277 if (IS_ERR(auth)) in rpcauth_create()
278 return auth; in rpcauth_create()
281 clnt->cl_auth = auth; in rpcauth_create()
284 return auth; in rpcauth_create()
289 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
291 if (!atomic_dec_and_test(&auth->au_count)) in rpcauth_release()
293 auth->au_ops->destroy(auth); in rpcauth_release()
325 rpcauth_init_credcache(struct rpc_auth *auth) in rpcauth_init_credcache() argument
339 auth->au_credcache = new; in rpcauth_init_credcache()
352 rpcauth_key_timeout_notify(struct rpc_auth *auth, struct rpc_cred *cred) in rpcauth_key_timeout_notify() argument
356 return cred->cr_auth->au_ops->key_timeout(auth, cred); in rpcauth_key_timeout_notify()
361 rpcauth_cred_key_to_expire(struct rpc_auth *auth, struct rpc_cred *cred) in rpcauth_cred_key_to_expire() argument
363 if (auth->au_flags & RPCAUTH_AUTH_NO_CRKEY_TIMEOUT) in rpcauth_cred_key_to_expire()
432 rpcauth_destroy_credcache(struct rpc_auth *auth) in rpcauth_destroy_credcache() argument
434 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_destroy_credcache()
437 auth->au_credcache = NULL; in rpcauth_destroy_credcache()
548 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument
552 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_lookup_credcache()
557 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache()
586 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache()
611 int res = cred->cr_ops->cr_init(auth, cred); in rpcauth_lookup_credcache()
624 rpcauth_lookupcred(struct rpc_auth *auth, int flags) in rpcauth_lookupcred() argument
631 auth->au_ops->au_name); in rpcauth_lookupcred()
637 ret = auth->au_ops->lookup_cred(auth, &acred, flags); in rpcauth_lookupcred()
644 struct rpc_auth *auth, const struct rpc_credops *ops) in rpcauth_init_cred() argument
649 cred->cr_auth = auth; in rpcauth_init_cred()
668 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_root_cred() local
676 return auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_root_cred()
682 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_new_cred() local
685 task->tk_pid, auth->au_ops->au_name); in rpcauth_bind_new_cred()
686 return rpcauth_lookupcred(auth, lookupflags); in rpcauth_bind_new_cred()