Lines Matching refs:ops

95 rpcauth_register(const struct rpc_authops *ops)  in rpcauth_register()  argument
100 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_register()
104 auth_flavors[flavor] = ops; in rpcauth_register()
113 rpcauth_unregister(const struct rpc_authops *ops) in rpcauth_unregister() argument
118 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_unregister()
121 if (auth_flavors[flavor] == ops) { in rpcauth_unregister()
142 const struct rpc_authops *ops; in rpcauth_get_pseudoflavor() local
145 ops = auth_flavors[flavor]; in rpcauth_get_pseudoflavor()
146 if (ops == NULL) in rpcauth_get_pseudoflavor()
149 ops = auth_flavors[flavor]; in rpcauth_get_pseudoflavor()
150 if (ops == NULL || !try_module_get(ops->owner)) { in rpcauth_get_pseudoflavor()
157 if (ops->info2flavor != NULL) in rpcauth_get_pseudoflavor()
158 pseudoflavor = ops->info2flavor(info); in rpcauth_get_pseudoflavor()
160 module_put(ops->owner); in rpcauth_get_pseudoflavor()
177 const struct rpc_authops *ops; in rpcauth_get_gssinfo() local
183 ops = auth_flavors[flavor]; in rpcauth_get_gssinfo()
184 if (ops == NULL) in rpcauth_get_gssinfo()
187 ops = auth_flavors[flavor]; in rpcauth_get_gssinfo()
188 if (ops == NULL || !try_module_get(ops->owner)) { in rpcauth_get_gssinfo()
195 if (ops->flavor2info != NULL) in rpcauth_get_gssinfo()
196 result = ops->flavor2info(pseudoflavor, info); in rpcauth_get_gssinfo()
198 module_put(ops->owner); in rpcauth_get_gssinfo()
221 const struct rpc_authops *ops = auth_flavors[flavor]; in rpcauth_list_flavors() local
230 if (ops == NULL) in rpcauth_list_flavors()
232 if (ops->list_pseudoflavors == NULL) { in rpcauth_list_flavors()
233 array[result++] = ops->au_flavor; in rpcauth_list_flavors()
236 len = ops->list_pseudoflavors(pseudos, ARRAY_SIZE(pseudos)); in rpcauth_list_flavors()
260 const struct rpc_authops *ops; in rpcauth_create() local
267 if ((ops = auth_flavors[flavor]) == NULL) in rpcauth_create()
270 ops = auth_flavors[flavor]; in rpcauth_create()
271 if (ops == NULL || !try_module_get(ops->owner)) { in rpcauth_create()
276 auth = ops->create(args, clnt); in rpcauth_create()
277 module_put(ops->owner); in rpcauth_create()
641 struct rpc_auth *auth, const struct rpc_credops *ops) in rpcauth_init_cred() argument
647 cred->cr_ops = ops; in rpcauth_init_cred()