Lines Matching refs:aops
43 struct auth_ops *aops; in svc_get_auth_ops() local
48 aops = rcu_dereference(authtab[flavor]); in svc_get_auth_ops()
49 if (aops != NULL && !try_module_get(aops->owner)) in svc_get_auth_ops()
50 aops = NULL; in svc_get_auth_ops()
52 return aops; in svc_get_auth_ops()
56 svc_put_auth_ops(struct auth_ops *aops) in svc_put_auth_ops() argument
58 module_put(aops->owner); in svc_put_auth_ops()
65 struct auth_ops *aops; in svc_authenticate() local
73 aops = svc_get_auth_ops(flavor); in svc_authenticate()
74 if (aops == NULL) { in svc_authenticate()
82 rqstp->rq_authop = aops; in svc_authenticate()
83 return aops->accept(rqstp, authp); in svc_authenticate()
100 struct auth_ops *aops = rqstp->rq_authop; in svc_authorise() local
105 if (aops) { in svc_authorise()
106 rv = aops->release(rqstp); in svc_authorise()
107 svc_put_auth_ops(aops); in svc_authorise()
113 svc_auth_register(rpc_authflavor_t flavor, struct auth_ops *aops) in svc_auth_register() argument
119 old = cmpxchg((struct auth_ops ** __force)&authtab[flavor], NULL, aops); in svc_auth_register()
120 if (old == NULL || old == aops) in svc_auth_register()