• Home
  • Raw
  • Download

Lines Matching refs:ops

106 rpcauth_register(const struct rpc_authops *ops)  in rpcauth_register()  argument
111 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_register()
113 old = cmpxchg((const struct rpc_authops ** __force)&auth_flavors[flavor], NULL, ops); in rpcauth_register()
114 if (old == NULL || old == ops) in rpcauth_register()
121 rpcauth_unregister(const struct rpc_authops *ops) in rpcauth_unregister() argument
126 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_unregister()
129 old = cmpxchg((const struct rpc_authops ** __force)&auth_flavors[flavor], ops, NULL); in rpcauth_unregister()
130 if (old == ops || old == NULL) in rpcauth_unregister()
139 const struct rpc_authops *ops; in rpcauth_get_authops() local
145 ops = rcu_dereference(auth_flavors[flavor]); in rpcauth_get_authops()
146 if (ops == NULL) { in rpcauth_get_authops()
150 ops = rcu_dereference(auth_flavors[flavor]); in rpcauth_get_authops()
151 if (ops == NULL) in rpcauth_get_authops()
154 if (!try_module_get(ops->owner)) in rpcauth_get_authops()
155 ops = NULL; in rpcauth_get_authops()
158 return ops; in rpcauth_get_authops()
162 rpcauth_put_authops(const struct rpc_authops *ops) in rpcauth_put_authops() argument
164 module_put(ops->owner); in rpcauth_put_authops()
179 const struct rpc_authops *ops = rpcauth_get_authops(flavor); in rpcauth_get_pseudoflavor() local
182 if (!ops) in rpcauth_get_pseudoflavor()
185 if (ops->info2flavor != NULL) in rpcauth_get_pseudoflavor()
186 pseudoflavor = ops->info2flavor(info); in rpcauth_get_pseudoflavor()
188 rpcauth_put_authops(ops); in rpcauth_get_pseudoflavor()
205 const struct rpc_authops *ops; in rpcauth_get_gssinfo() local
208 ops = rpcauth_get_authops(flavor); in rpcauth_get_gssinfo()
209 if (ops == NULL) in rpcauth_get_gssinfo()
213 if (ops->flavor2info != NULL) in rpcauth_get_gssinfo()
214 result = ops->flavor2info(pseudoflavor, info); in rpcauth_get_gssinfo()
216 rpcauth_put_authops(ops); in rpcauth_get_gssinfo()
225 const struct rpc_authops *ops; in rpcauth_create() local
228 ops = rpcauth_get_authops(flavor); in rpcauth_create()
229 if (ops == NULL) in rpcauth_create()
232 auth = ops->create(args, clnt); in rpcauth_create()
234 rpcauth_put_authops(ops); in rpcauth_create()
593 struct rpc_auth *auth, const struct rpc_credops *ops) in rpcauth_init_cred() argument
600 cred->cr_ops = ops; in rpcauth_init_cred()
726 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_marshcred() local
728 return ops->crmarshal(task, xdr); in rpcauth_marshcred()
759 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_wrap_req() local
761 return ops->crwrap_req(task, xdr); in rpcauth_wrap_req()
781 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_checkverf() local
783 return ops->crvalidate(task, xdr); in rpcauth_checkverf()
812 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_unwrap_resp() local
814 return ops->crunwrap_resp(task, xdr); in rpcauth_unwrap_resp()