Lines Matching refs:kgs
1347 struct pkey_genseck kgs; in pkey_unlocked_ioctl() local
1349 if (copy_from_user(&kgs, ugs, sizeof(kgs))) in pkey_unlocked_ioctl()
1351 rc = cca_genseckey(kgs.cardnr, kgs.domain, in pkey_unlocked_ioctl()
1352 kgs.keytype, kgs.seckey.seckey); in pkey_unlocked_ioctl()
1356 if (copy_to_user(ugs, &kgs, sizeof(kgs))) in pkey_unlocked_ioctl()
1509 struct pkey_genseck2 kgs; in pkey_unlocked_ioctl() local
1513 if (copy_from_user(&kgs, ugs, sizeof(kgs))) in pkey_unlocked_ioctl()
1515 apqns = _copy_apqns_from_user(kgs.apqns, kgs.apqn_entries); in pkey_unlocked_ioctl()
1523 rc = pkey_genseckey2(apqns, kgs.apqn_entries, in pkey_unlocked_ioctl()
1524 kgs.type, kgs.size, kgs.keygenflags, in pkey_unlocked_ioctl()
1532 if (kgs.key) { in pkey_unlocked_ioctl()
1533 if (kgs.keylen < klen) { in pkey_unlocked_ioctl()
1537 if (copy_to_user(kgs.key, kkey, klen)) { in pkey_unlocked_ioctl()
1542 kgs.keylen = klen; in pkey_unlocked_ioctl()
1543 if (copy_to_user(ugs, &kgs, sizeof(kgs))) in pkey_unlocked_ioctl()