Lines Matching defs:aops
45 struct auth_ops *aops;
50 aops = rcu_dereference(authtab[flavor]);
51 if (aops != NULL && !try_module_get(aops->owner))
52 aops = NULL;
54 return aops;
58 svc_put_auth_ops(struct auth_ops *aops)
60 module_put(aops->owner);
77 struct auth_ops *aops;
89 aops = svc_get_auth_ops(flavor);
90 if (aops == NULL) {
98 rqstp->rq_authop = aops;
99 return aops->accept(rqstp);
128 struct auth_ops *aops = rqstp->rq_authop;
133 if (aops) {
134 rv = aops->release(rqstp);
135 svc_put_auth_ops(aops);
141 svc_auth_register(rpc_authflavor_t flavor, struct auth_ops *aops)
147 old = cmpxchg((struct auth_ops ** __force)&authtab[flavor], NULL, aops);
148 if (old == NULL || old == aops)
171 struct auth_ops *aops = rqstp->rq_authop;
173 if (!aops->pseudoflavor)
174 return aops->flavour;
175 return aops->pseudoflavor(rqstp);