Lines Matching refs:nr_apqns

74 			  struct pkey_apqn *apqns, size_t *nr_apqns)  in ep11_apqns4key()  argument
131 if (*nr_apqns < _nr_apqns) in ep11_apqns4key()
136 *nr_apqns = _nr_apqns; in ep11_apqns4key()
146 struct pkey_apqn *apqns, size_t *nr_apqns) in ep11_apqns4type() argument
174 if (*nr_apqns < _nr_apqns) in ep11_apqns4type()
179 *nr_apqns = _nr_apqns; in ep11_apqns4type()
187 static int ep11_key2protkey(const struct pkey_apqn *apqns, size_t nr_apqns, in ep11_key2protkey() argument
226 if (!apqns || (nr_apqns == 1 && in ep11_key2protkey()
228 nr_apqns = MAXAPQNSINLIST; in ep11_key2protkey()
229 local_apqns = kmalloc_array(nr_apqns, sizeof(struct pkey_apqn), in ep11_key2protkey()
233 rc = ep11_apqns4key(key, keylen, 0, local_apqns, &nr_apqns); in ep11_key2protkey()
239 for (rc = -ENODEV, i = 0; rc && i < nr_apqns; i++) { in ep11_key2protkey()
279 static int ep11_gen_key(const struct pkey_apqn *apqns, size_t nr_apqns, in ep11_gen_key() argument
317 if (!apqns || (nr_apqns == 1 && in ep11_gen_key()
319 nr_apqns = MAXAPQNSINLIST; in ep11_gen_key()
320 local_apqns = kmalloc_array(nr_apqns, sizeof(struct pkey_apqn), in ep11_gen_key()
325 local_apqns, &nr_apqns); in ep11_gen_key()
331 for (rc = -ENODEV, i = 0; rc && i < nr_apqns; i++) { in ep11_gen_key()
352 static int ep11_clr2key(const struct pkey_apqn *apqns, size_t nr_apqns, in ep11_clr2key() argument
396 if (!apqns || (nr_apqns == 1 && in ep11_clr2key()
398 nr_apqns = MAXAPQNSINLIST; in ep11_clr2key()
399 local_apqns = kmalloc_array(nr_apqns, sizeof(struct pkey_apqn), in ep11_clr2key()
404 local_apqns, &nr_apqns); in ep11_clr2key()
410 for (rc = -ENODEV, i = 0; rc && i < nr_apqns; i++) { in ep11_clr2key()
427 u32 nr_apqns, *apqns = NULL; in ep11_verifykey() local
447 rc = ep11_findcard2(&apqns, &nr_apqns, *card, *dom, in ep11_verifykey()
471 rc = ep11_findcard2(&apqns, &nr_apqns, *card, *dom, in ep11_verifykey()
501 size_t nr_apqns, in ep11_slowpath_key2protkey() argument