Lines Matching refs:apqns

74 			 struct pkey_apqn *apqns, size_t *nr_apqns)  in cca_apqns4key()  argument
142 if (apqns) { in cca_apqns4key()
146 memcpy(apqns, _apqns, _nr_apqns * sizeof(u32)); in cca_apqns4key()
158 struct pkey_apqn *apqns, size_t *nr_apqns) in cca_apqns4type() argument
200 if (apqns) { in cca_apqns4type()
204 memcpy(apqns, _apqns, _nr_apqns * sizeof(u32)); in cca_apqns4type()
214 static int cca_key2protkey(const struct pkey_apqn *apqns, size_t nr_apqns, in cca_key2protkey() argument
254 if (!apqns || (nr_apqns == 1 && in cca_key2protkey()
255 apqns[0].card == 0xFFFF && apqns[0].domain == 0xFFFF)) { in cca_key2protkey()
264 apqns = local_apqns; in cca_key2protkey()
270 rc = cca_sec2protkey(apqns[i].card, apqns[i].domain, in cca_key2protkey()
275 rc = cca_cipher2protkey(apqns[i].card, apqns[i].domain, in cca_key2protkey()
279 rc = cca_ecc2protkey(apqns[i].card, apqns[i].domain, in cca_key2protkey()
303 static int cca_gen_key(const struct pkey_apqn *apqns, size_t nr_apqns, in cca_gen_key() argument
341 if (!apqns || (nr_apqns == 1 && in cca_gen_key()
342 apqns[0].card == 0xFFFF && apqns[0].domain == 0xFFFF)) { in cca_gen_key()
352 apqns = local_apqns; in cca_gen_key()
357 rc = cca_gencipherkey(apqns[i].card, apqns[i].domain, in cca_gen_key()
362 rc = cca_genseckey(apqns[i].card, apqns[i].domain, in cca_gen_key()
383 static int cca_clr2key(const struct pkey_apqn *apqns, size_t nr_apqns, in cca_clr2key() argument
427 if (!apqns || (nr_apqns == 1 && in cca_clr2key()
428 apqns[0].card == 0xFFFF && apqns[0].domain == 0xFFFF)) { in cca_clr2key()
438 apqns = local_apqns; in cca_clr2key()
443 rc = cca_clr2cipherkey(apqns[i].card, apqns[i].domain, in cca_clr2key()
448 rc = cca_clr2seckey(apqns[i].card, apqns[i].domain, in cca_clr2key()
465 u32 nr_apqns, *apqns = NULL; in cca_verifykey() local
482 rc = cca_findcard2(&apqns, &nr_apqns, *card, *dom, in cca_verifykey()
488 rc = cca_findcard2(&apqns, &nr_apqns, *card, *dom, in cca_verifykey()
497 *card = ((struct pkey_apqn *)apqns)->card; in cca_verifykey()
498 *dom = ((struct pkey_apqn *)apqns)->domain; in cca_verifykey()
515 rc = cca_findcard2(&apqns, &nr_apqns, *card, *dom, in cca_verifykey()
521 rc = cca_findcard2(&apqns, &nr_apqns, *card, *dom, in cca_verifykey()
530 *card = ((struct pkey_apqn *)apqns)->card; in cca_verifykey()
531 *dom = ((struct pkey_apqn *)apqns)->domain; in cca_verifykey()
539 kfree(apqns); in cca_verifykey()
551 static int cca_slowpath_key2protkey(const struct pkey_apqn *apqns, in cca_slowpath_key2protkey() argument