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()
67 struct auth_ops *aops; in svc_authenticate() local
75 aops = svc_get_auth_ops(flavor); in svc_authenticate()
76 if (aops == NULL) { in svc_authenticate()
84 rqstp->rq_authop = aops; in svc_authenticate()
85 return aops->accept(rqstp); in svc_authenticate()
102 struct auth_ops *aops = rqstp->rq_authop; in svc_authorise() local
107 if (aops) { in svc_authorise()
108 rv = aops->release(rqstp); in svc_authorise()
109 svc_put_auth_ops(aops); in svc_authorise()
115 svc_auth_register(rpc_authflavor_t flavor, struct auth_ops *aops) in svc_auth_register() argument
121 old = cmpxchg((struct auth_ops ** __force)&authtab[flavor], NULL, aops); in svc_auth_register()
122 if (old == NULL || old == aops) in svc_auth_register()