Lines Matching refs:h
11 #include <linux/cpufeature.h>
12 #include <linux/export.h>
13 #include <linux/init.h>
14 #include <linux/list.h>
15 #include <linux/module.h>
16 #include <linux/rculist.h>
18 #include "pkey_base.h"
39 const struct pkey_handler *h;
52 list_for_each_entry_rcu(h, &handler_list, list) {
53 if (h == handler) {
96 const struct pkey_handler *h;
99 list_for_each_entry_rcu(h, &handler_list, list) {
100 if (!try_module_get(h->module))
102 if (h->is_supported_key(key, keylen)) {
104 return h;
106 module_put(h->module);
116 const struct pkey_handler *h;
119 list_for_each_entry_rcu(h, &handler_list, list) {
120 if (!try_module_get(h->module))
122 if (h->is_supported_keytype(kt)) {
124 return h;
126 module_put(h->module);
136 const struct pkey_handler *h;
142 list_for_each_entry_rcu(h, &handler_list, list) {
143 if (h == handler) {
144 module_put(h->module);
157 const struct pkey_handler *h;
160 h = pkey_handler_get_keybased(key, keylen);
161 if (h && h->key_to_protkey) {
162 rc = h->key_to_protkey(apqns, nr_apqns, key, keylen,
166 pkey_handler_put(h);
184 const struct pkey_handler *h, *htmp[10];
188 list_for_each_entry_rcu(h, &handler_list, list) {
189 if (!try_module_get(h->module))
191 if (h->slowpath_key_to_protkey && n < ARRAY_SIZE(htmp))
192 htmp[n++] = h;
194 module_put(h->module);
199 h = htmp[i];
201 rc = h->slowpath_key_to_protkey(apqns, nr_apqns,
205 module_put(h->module);
217 const struct pkey_handler *h;
220 h = pkey_handler_get_keytypebased(keysubtype);
221 if (h && h->gen_key) {
222 rc = h->gen_key(apqns, nr_apqns, keytype, keysubtype,
226 pkey_handler_put(h);
239 const struct pkey_handler *h;
242 h = pkey_handler_get_keytypebased(keysubtype);
243 if (h && h->clr_to_key) {
244 rc = h->clr_to_key(apqns, nr_apqns, keytype, keysubtype,
248 pkey_handler_put(h);
259 const struct pkey_handler *h;
262 h = pkey_handler_get_keybased(key, keylen);
263 if (h && h->verify_key) {
264 rc = h->verify_key(key, keylen, card, dom,
267 pkey_handler_put(h);
277 const struct pkey_handler *h;
280 h = pkey_handler_get_keybased(key, keylen);
281 if (h && h->apqns_for_key)
282 rc = h->apqns_for_key(key, keylen, flags, apqns, nr_apqns,
284 pkey_handler_put(h);
295 const struct pkey_handler *h;
298 h = pkey_handler_get_keytypebased(keysubtype);
299 if (h && h->apqns_for_keytype) {
300 rc = h->apqns_for_keytype(keysubtype,
304 pkey_handler_put(h);
330 const struct pkey_handler *h;
334 list_for_each_entry_rcu(h, &handler_list, list) {
335 if (h->module &&
336 !strcmp(h->module->name, pkey_handler_modules[i])) {