Lines Matching refs:auth
276 struct rpc_auth *auth = ERR_PTR(-EINVAL); in rpcauth_create() local
284 auth = ops->create(args, clnt); in rpcauth_create()
287 if (IS_ERR(auth)) in rpcauth_create()
288 return auth; in rpcauth_create()
291 clnt->cl_auth = auth; in rpcauth_create()
294 return auth; in rpcauth_create()
299 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
301 if (!refcount_dec_and_test(&auth->au_count)) in rpcauth_release()
303 auth->au_ops->destroy(auth); in rpcauth_release()
340 rpcauth_init_credcache(struct rpc_auth *auth) in rpcauth_init_credcache() argument
354 auth->au_credcache = new; in rpcauth_init_credcache()
459 rpcauth_destroy_credcache(struct rpc_auth *auth) in rpcauth_destroy_credcache() argument
461 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_destroy_credcache()
464 auth->au_credcache = NULL; in rpcauth_destroy_credcache()
566 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument
570 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_lookup_credcache()
575 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache()
590 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache()
617 int res = cred->cr_ops->cr_init(auth, cred); in rpcauth_lookup_credcache()
630 rpcauth_lookupcred(struct rpc_auth *auth, int flags) in rpcauth_lookupcred() argument
638 ret = auth->au_ops->lookup_cred(auth, &acred, flags); in rpcauth_lookupcred()
645 struct rpc_auth *auth, const struct rpc_credops *ops) in rpcauth_init_cred() argument
650 cred->cr_auth = auth; in rpcauth_init_cred()
661 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_root_cred() local
667 ret = auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_root_cred()
675 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_machine_cred() local
683 return auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_machine_cred()
689 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_new_cred() local
691 return rpcauth_lookupcred(auth, lookupflags); in rpcauth_bind_new_cred()
700 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bindcred() local
711 new = auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bindcred()