Lines Matching refs:aops
46 struct auth_ops *aops; in svc_get_auth_ops() local
51 aops = rcu_dereference(authtab[flavor]); in svc_get_auth_ops()
52 if (aops != NULL && !try_module_get(aops->owner)) in svc_get_auth_ops()
53 aops = NULL; in svc_get_auth_ops()
55 return aops; in svc_get_auth_ops()
59 svc_put_auth_ops(struct auth_ops *aops) in svc_put_auth_ops() argument
61 module_put(aops->owner); in svc_put_auth_ops()
78 struct auth_ops *aops; in svc_authenticate() local
90 aops = svc_get_auth_ops(flavor); in svc_authenticate()
91 if (aops == NULL) { in svc_authenticate()
99 rqstp->rq_authop = aops; in svc_authenticate()
100 return aops->accept(rqstp); in svc_authenticate()
128 struct auth_ops *aops = rqstp->rq_authop; in svc_authorise() local
133 if (aops) { in svc_authorise()
134 rv = aops->release(rqstp); in svc_authorise()
135 svc_put_auth_ops(aops); in svc_authorise()
141 svc_auth_register(rpc_authflavor_t flavor, struct auth_ops *aops) in svc_auth_register() argument
147 old = cmpxchg((struct auth_ops ** __force)&authtab[flavor], NULL, aops); in svc_auth_register()
148 if (old == NULL || old == aops) in svc_auth_register()
171 struct auth_ops *aops = rqstp->rq_authop; in svc_auth_flavor() local
173 if (!aops->pseudoflavor) in svc_auth_flavor()
174 return aops->flavour; in svc_auth_flavor()
175 return aops->pseudoflavor(rqstp); in svc_auth_flavor()