• Home
  • Raw
  • Download

Lines Matching refs:ops

109 rpcauth_register(const struct rpc_authops *ops)  in rpcauth_register()  argument
114 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_register()
116 old = cmpxchg((const struct rpc_authops ** __force)&auth_flavors[flavor], NULL, ops); in rpcauth_register()
117 if (old == NULL || old == ops) in rpcauth_register()
124 rpcauth_unregister(const struct rpc_authops *ops) in rpcauth_unregister() argument
129 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_unregister()
132 old = cmpxchg((const struct rpc_authops ** __force)&auth_flavors[flavor], ops, NULL); in rpcauth_unregister()
133 if (old == ops || old == NULL) in rpcauth_unregister()
142 const struct rpc_authops *ops; in rpcauth_get_authops() local
148 ops = rcu_dereference(auth_flavors[flavor]); in rpcauth_get_authops()
149 if (ops == NULL) { in rpcauth_get_authops()
153 ops = rcu_dereference(auth_flavors[flavor]); in rpcauth_get_authops()
154 if (ops == NULL) in rpcauth_get_authops()
157 if (!try_module_get(ops->owner)) in rpcauth_get_authops()
158 ops = NULL; in rpcauth_get_authops()
161 return ops; in rpcauth_get_authops()
165 rpcauth_put_authops(const struct rpc_authops *ops) in rpcauth_put_authops() argument
167 module_put(ops->owner); in rpcauth_put_authops()
182 const struct rpc_authops *ops = rpcauth_get_authops(flavor); in rpcauth_get_pseudoflavor() local
185 if (!ops) in rpcauth_get_pseudoflavor()
188 if (ops->info2flavor != NULL) in rpcauth_get_pseudoflavor()
189 pseudoflavor = ops->info2flavor(info); in rpcauth_get_pseudoflavor()
191 rpcauth_put_authops(ops); in rpcauth_get_pseudoflavor()
208 const struct rpc_authops *ops; in rpcauth_get_gssinfo() local
211 ops = rpcauth_get_authops(flavor); in rpcauth_get_gssinfo()
212 if (ops == NULL) in rpcauth_get_gssinfo()
216 if (ops->flavor2info != NULL) in rpcauth_get_gssinfo()
217 result = ops->flavor2info(pseudoflavor, info); in rpcauth_get_gssinfo()
219 rpcauth_put_authops(ops); in rpcauth_get_gssinfo()
237 const struct rpc_authops *ops; in rpcauth_list_flavors() local
243 ops = rcu_dereference(auth_flavors[flavor]); in rpcauth_list_flavors()
249 if (ops == NULL) in rpcauth_list_flavors()
251 if (ops->list_pseudoflavors == NULL) { in rpcauth_list_flavors()
252 array[result++] = ops->au_flavor; in rpcauth_list_flavors()
255 len = ops->list_pseudoflavors(pseudos, ARRAY_SIZE(pseudos)); in rpcauth_list_flavors()
277 const struct rpc_authops *ops; in rpcauth_create() local
280 ops = rpcauth_get_authops(flavor); in rpcauth_create()
281 if (ops == NULL) in rpcauth_create()
284 auth = ops->create(args, clnt); in rpcauth_create()
286 rpcauth_put_authops(ops); in rpcauth_create()
645 struct rpc_auth *auth, const struct rpc_credops *ops) in rpcauth_init_cred() argument
652 cred->cr_ops = ops; in rpcauth_init_cred()
774 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_marshcred() local
776 return ops->crmarshal(task, xdr); in rpcauth_marshcred()
807 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_wrap_req() local
809 return ops->crwrap_req(task, xdr); in rpcauth_wrap_req()
824 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_checkverf() local
826 return ops->crvalidate(task, xdr); in rpcauth_checkverf()
855 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_unwrap_resp() local
857 return ops->crunwrap_resp(task, xdr); in rpcauth_unwrap_resp()