Lines Matching refs:aops
45 struct auth_ops *aops; in svc_get_auth_ops() local
50 aops = rcu_dereference(authtab[flavor]); in svc_get_auth_ops()
51 if (aops != NULL && !try_module_get(aops->owner)) in svc_get_auth_ops()
52 aops = NULL; in svc_get_auth_ops()
54 return aops; in svc_get_auth_ops()
58 svc_put_auth_ops(struct auth_ops *aops) in svc_put_auth_ops() argument
60 module_put(aops->owner); in svc_put_auth_ops()
77 struct auth_ops *aops; in svc_authenticate() local
89 aops = svc_get_auth_ops(flavor); in svc_authenticate()
90 if (aops == NULL) { in svc_authenticate()
98 rqstp->rq_authop = aops; in svc_authenticate()
99 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()