Lines Matching refs:ops
91 rpcauth_register(const struct rpc_authops *ops) in rpcauth_register() argument
96 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_register()
100 auth_flavors[flavor] = ops; in rpcauth_register()
109 rpcauth_unregister(const struct rpc_authops *ops) in rpcauth_unregister() argument
114 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_unregister()
117 if (auth_flavors[flavor] == ops) { in rpcauth_unregister()
138 const struct rpc_authops *ops; in rpcauth_get_pseudoflavor() local
141 ops = auth_flavors[flavor]; in rpcauth_get_pseudoflavor()
142 if (ops == NULL) in rpcauth_get_pseudoflavor()
145 ops = auth_flavors[flavor]; in rpcauth_get_pseudoflavor()
146 if (ops == NULL || !try_module_get(ops->owner)) { in rpcauth_get_pseudoflavor()
153 if (ops->info2flavor != NULL) in rpcauth_get_pseudoflavor()
154 pseudoflavor = ops->info2flavor(info); in rpcauth_get_pseudoflavor()
156 module_put(ops->owner); in rpcauth_get_pseudoflavor()
173 const struct rpc_authops *ops; in rpcauth_get_gssinfo() local
179 ops = auth_flavors[flavor]; in rpcauth_get_gssinfo()
180 if (ops == NULL) in rpcauth_get_gssinfo()
183 ops = auth_flavors[flavor]; in rpcauth_get_gssinfo()
184 if (ops == NULL || !try_module_get(ops->owner)) { in rpcauth_get_gssinfo()
191 if (ops->flavor2info != NULL) in rpcauth_get_gssinfo()
192 result = ops->flavor2info(pseudoflavor, info); in rpcauth_get_gssinfo()
194 module_put(ops->owner); in rpcauth_get_gssinfo()
217 const struct rpc_authops *ops = auth_flavors[flavor]; in rpcauth_list_flavors() local
226 if (ops == NULL) in rpcauth_list_flavors()
228 if (ops->list_pseudoflavors == NULL) { in rpcauth_list_flavors()
229 array[result++] = ops->au_flavor; in rpcauth_list_flavors()
232 len = ops->list_pseudoflavors(pseudos, ARRAY_SIZE(pseudos)); in rpcauth_list_flavors()
256 const struct rpc_authops *ops; in rpcauth_create() local
263 if ((ops = auth_flavors[flavor]) == NULL) in rpcauth_create()
266 ops = auth_flavors[flavor]; in rpcauth_create()
267 if (ops == NULL || !try_module_get(ops->owner)) { in rpcauth_create()
272 auth = ops->create(clnt, pseudoflavor); in rpcauth_create()
273 module_put(ops->owner); in rpcauth_create()
565 struct rpc_auth *auth, const struct rpc_credops *ops) in rpcauth_init_cred() argument
571 cred->cr_ops = ops; in rpcauth_init_cred()