Lines Matching refs:auth

224 	struct rpc_auth	*auth = ERR_PTR(-EINVAL);  in rpcauth_create()  local
232 auth = ops->create(args, clnt); in rpcauth_create()
235 if (IS_ERR(auth)) in rpcauth_create()
236 return auth; in rpcauth_create()
239 clnt->cl_auth = auth; in rpcauth_create()
242 return auth; in rpcauth_create()
247 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
249 if (!refcount_dec_and_test(&auth->au_count)) in rpcauth_release()
251 auth->au_ops->destroy(auth); in rpcauth_release()
288 rpcauth_init_credcache(struct rpc_auth *auth) in rpcauth_init_credcache() argument
302 auth->au_credcache = new; in rpcauth_init_credcache()
407 rpcauth_destroy_credcache(struct rpc_auth *auth) in rpcauth_destroy_credcache() argument
409 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_destroy_credcache()
412 auth->au_credcache = NULL; in rpcauth_destroy_credcache()
514 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument
518 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_lookup_credcache()
523 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache()
538 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache()
565 int res = cred->cr_ops->cr_init(auth, cred); in rpcauth_lookup_credcache()
578 rpcauth_lookupcred(struct rpc_auth *auth, int flags) in rpcauth_lookupcred() argument
586 ret = auth->au_ops->lookup_cred(auth, &acred, flags); in rpcauth_lookupcred()
593 struct rpc_auth *auth, const struct rpc_credops *ops) in rpcauth_init_cred() argument
598 cred->cr_auth = auth; in rpcauth_init_cred()
609 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_root_cred() local
617 ret = auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_root_cred()
625 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_machine_cred() local
635 return auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_machine_cred()
641 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_new_cred() local
643 return rpcauth_lookupcred(auth, lookupflags); in rpcauth_bind_new_cred()
652 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bindcred() local
663 new = auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bindcred()