Lines Matching refs:acred
566 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument
575 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache()
579 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache()
590 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache()
598 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache()
632 struct auth_cred acred; in rpcauth_lookupcred() local
636 memset(&acred, 0, sizeof(acred)); in rpcauth_lookupcred()
637 acred.cred = cred; in rpcauth_lookupcred()
638 ret = auth->au_ops->lookup_cred(auth, &acred, flags); in rpcauth_lookupcred()
644 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, in rpcauth_init_cred() argument
654 cred->cr_cred = get_cred(acred->cred); in rpcauth_init_cred()
662 struct auth_cred acred = { in rpcauth_bind_root_cred() local
667 ret = auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_root_cred()
668 put_cred(acred.cred); in rpcauth_bind_root_cred()
676 struct auth_cred acred = { in rpcauth_bind_machine_cred() local
681 if (!acred.principal) in rpcauth_bind_machine_cred()
683 return auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_machine_cred()
701 struct auth_cred acred = { in rpcauth_bindcred() local
711 new = auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bindcred()