Lines Matching refs:auth

259 	struct rpc_auth		*auth;  in rpcauth_create()  local
263 auth = ERR_PTR(-EINVAL); in rpcauth_create()
276 auth = ops->create(args, clnt); in rpcauth_create()
278 if (IS_ERR(auth)) in rpcauth_create()
279 return auth; in rpcauth_create()
282 clnt->cl_auth = auth; in rpcauth_create()
285 return auth; in rpcauth_create()
290 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
292 if (!atomic_dec_and_test(&auth->au_count)) in rpcauth_release()
294 auth->au_ops->destroy(auth); in rpcauth_release()
326 rpcauth_init_credcache(struct rpc_auth *auth) in rpcauth_init_credcache() argument
340 auth->au_credcache = new; in rpcauth_init_credcache()
353 rpcauth_key_timeout_notify(struct rpc_auth *auth, struct rpc_cred *cred) in rpcauth_key_timeout_notify() argument
357 return cred->cr_auth->au_ops->key_timeout(auth, cred); in rpcauth_key_timeout_notify()
431 rpcauth_destroy_credcache(struct rpc_auth *auth) in rpcauth_destroy_credcache() argument
433 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_destroy_credcache()
436 auth->au_credcache = NULL; in rpcauth_destroy_credcache()
545 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument
549 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_lookup_credcache()
583 new = auth->au_ops->crcreate(auth, acred, flags); in rpcauth_lookup_credcache()
608 int res = cred->cr_ops->cr_init(auth, cred); in rpcauth_lookup_credcache()
621 rpcauth_lookupcred(struct rpc_auth *auth, int flags) in rpcauth_lookupcred() argument
628 auth->au_ops->au_name); in rpcauth_lookupcred()
634 ret = auth->au_ops->lookup_cred(auth, &acred, flags); in rpcauth_lookupcred()
641 struct rpc_auth *auth, const struct rpc_credops *ops) in rpcauth_init_cred() argument
646 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()