Lines Matching refs:auth
227 struct rpc_auth *auth = ERR_PTR(-EINVAL); in rpcauth_create() local
235 auth = ops->create(args, clnt); in rpcauth_create()
238 if (IS_ERR(auth)) in rpcauth_create()
239 return auth; in rpcauth_create()
242 clnt->cl_auth = auth; in rpcauth_create()
245 return auth; in rpcauth_create()
250 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
252 if (!refcount_dec_and_test(&auth->au_count)) in rpcauth_release()
254 auth->au_ops->destroy(auth); in rpcauth_release()
291 rpcauth_init_credcache(struct rpc_auth *auth) in rpcauth_init_credcache() argument
305 auth->au_credcache = new; in rpcauth_init_credcache()
410 rpcauth_destroy_credcache(struct rpc_auth *auth) in rpcauth_destroy_credcache() argument
412 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_destroy_credcache()
415 auth->au_credcache = NULL; in rpcauth_destroy_credcache()
517 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument
521 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_lookup_credcache()
526 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache()
541 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache()
568 int res = cred->cr_ops->cr_init(auth, cred); in rpcauth_lookup_credcache()
581 rpcauth_lookupcred(struct rpc_auth *auth, int flags) in rpcauth_lookupcred() argument
589 ret = auth->au_ops->lookup_cred(auth, &acred, flags); in rpcauth_lookupcred()
596 struct rpc_auth *auth, const struct rpc_credops *ops) in rpcauth_init_cred() argument
601 cred->cr_auth = auth; in rpcauth_init_cred()
612 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_root_cred() local
618 ret = auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_root_cred()
626 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_machine_cred() local
634 return auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_machine_cred()
640 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_new_cred() local
642 return rpcauth_lookupcred(auth, lookupflags); in rpcauth_bind_new_cred()
651 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bindcred() local
662 new = auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bindcred()