Lines Matching refs:aops
39 struct auth_ops *aops; in svc_get_auth_ops() local
44 aops = rcu_dereference(authtab[flavor]); in svc_get_auth_ops()
45 if (aops != NULL && !try_module_get(aops->owner)) in svc_get_auth_ops()
46 aops = NULL; in svc_get_auth_ops()
48 return aops; in svc_get_auth_ops()
52 svc_put_auth_ops(struct auth_ops *aops) in svc_put_auth_ops() argument
54 module_put(aops->owner); in svc_put_auth_ops()
61 struct auth_ops *aops; in svc_authenticate() local
69 aops = svc_get_auth_ops(flavor); in svc_authenticate()
70 if (aops == NULL) { in svc_authenticate()
78 rqstp->rq_authop = aops; in svc_authenticate()
79 return aops->accept(rqstp, authp); in svc_authenticate()
96 struct auth_ops *aops = rqstp->rq_authop; in svc_authorise() local
101 if (aops) { in svc_authorise()
102 rv = aops->release(rqstp); in svc_authorise()
103 svc_put_auth_ops(aops); in svc_authorise()
109 svc_auth_register(rpc_authflavor_t flavor, struct auth_ops *aops) in svc_auth_register() argument
115 old = cmpxchg((struct auth_ops ** __force)&authtab[flavor], NULL, aops); in svc_auth_register()
116 if (old == NULL || old == aops) in svc_auth_register()