/kernel/linux/linux-5.10/drivers/s390/crypto/ |
H A D | pkey_api.c | 36 #define MAXAPQNSINLIST 64 /* max 64 apqns within a apqn list */ 198 u32 nr_apqns, *apqns = NULL; in pkey_clr2ep11key() local 200 /* build a list of apqns suitable for ep11 keys with cpacf support */ in pkey_clr2ep11key() 201 rc = ep11_findcard2(&apqns, &nr_apqns, 0xFFFF, 0xFFFF, in pkey_clr2ep11key() 206 /* go through the list of apqns and try to bild an ep11 key */ in pkey_clr2ep11key() 208 card = apqns[i] >> 16; in pkey_clr2ep11key() 209 dom = apqns[i] & 0xFFFF; in pkey_clr2ep11key() 217 kfree(apqns); in pkey_clr2ep11key() 230 u32 nr_apqns, *apqns = NULL; in pkey_ep11key2pkey() local 233 /* build a list of apqns suitabl in pkey_ep11key2pkey() 541 pkey_genseckey2(const struct pkey_apqn *apqns, size_t nr_apqns, enum pkey_key_type ktype, enum pkey_key_size ksize, u32 kflags, u8 *keybuf, size_t *keybufsize) pkey_genseckey2() argument 594 pkey_clr2seckey2(const struct pkey_apqn *apqns, size_t nr_apqns, enum pkey_key_type ktype, enum pkey_key_size ksize, u32 kflags, const u8 *clrkey, u8 *keybuf, size_t *keybufsize) pkey_clr2seckey2() argument 759 pkey_keyblob2pkey2(const struct pkey_apqn *apqns, size_t nr_apqns, const u8 *key, size_t keylen, struct pkey_protkey *pkey) pkey_keyblob2pkey2() argument 831 pkey_apqns4key(const u8 *key, size_t keylen, u32 flags, struct pkey_apqn *apqns, size_t *nr_apqns) pkey_apqns4key() argument 937 pkey_apqns4keytype(enum pkey_key_type ktype, u8 cur_mkvp[32], u8 alt_mkvp[32], u32 flags, struct pkey_apqn *apqns, size_t *nr_apqns) pkey_apqns4keytype() argument 1000 pkey_keyblob2pkey3(const struct pkey_apqn *apqns, size_t nr_apqns, const u8 *key, size_t keylen, u32 *protkeytype, u8 *protkey, u32 *protkeylen) pkey_keyblob2pkey3() argument 1285 struct pkey_apqn *apqns; pkey_unlocked_ioctl() local 1327 struct pkey_apqn *apqns; pkey_unlocked_ioctl() local 1391 struct pkey_apqn *apqns = NULL; pkey_unlocked_ioctl() local 1419 struct pkey_apqn *apqns = NULL; pkey_unlocked_ioctl() local 1468 struct pkey_apqn *apqns = NULL; pkey_unlocked_ioctl() local 1510 struct pkey_apqn *apqns = NULL; pkey_unlocked_ioctl() local 1806 u32 nr_apqns, *apqns = NULL; pkey_ccacipher_aes_attr_read() local 1929 u32 nr_apqns, *apqns = NULL; pkey_ep11_aes_attr_read() local [all...] |
H A D | zcrypt_ep11misc.h | 119 * Build a list of ep11 apqns meeting the following constrains: 121 * - if cardnr is not FFFF only apqns with this cardnr 122 * - if domain is not FFFF only apqns with this domainnr 123 * - if minhwtype > 0 only apqns with hwtype >= minhwtype 124 * - if minapi > 0 only apqns with API_ord_nr >= minapi 125 * - if wkvp != NULL only apqns where the wkvp (EP11_WKVPLEN bytes) matches 130 * The array of apqn entries is allocated with kmalloc and returned in *apqns; 131 * the number of apqns stored into the list is returned in *nr_apqns. One apqn 137 int ep11_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain,
|
H A D | zcrypt_ccamisc.h | 219 * Build a list of cca apqns meeting the following constrains: 221 * - if cardnr is not FFFF only apqns with this cardnr 222 * - if domain is not FFFF only apqns with this domainnr 223 * - if minhwtype > 0 only apqns with hwtype >= minhwtype 224 * - if cur_mkvp != 0 only apqns where cur_mkvp == mkvp 225 * - if old_mkvp != 0 only apqns where old_mkvp == mkvp 231 * The array of apqn entries is allocated with kmalloc and returned in *apqns; 232 * the number of apqns stored into the list is returned in *nr_apqns. One apqn 238 int cca_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain,
|
H A D | zcrypt_ep11misc.c | 1387 int ep11_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain, in ep11_findcard2() argument 1404 /* allocate 1k space for up to 256 apqns */ in ep11_findcard2() 1457 *apqns = _apqns; in ep11_findcard2()
|
H A D | zcrypt_ccamisc.c | 1876 int cca_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain, in cca_findcard2() argument 1893 /* allocate 1k space for up to 256 apqns */ in cca_findcard2() 1957 *apqns = _apqns; in cca_findcard2()
|
/kernel/linux/linux-6.6/drivers/s390/crypto/ |
H A D | pkey_api.c | 38 #define MAXAPQNSINLIST 64 /* max 64 apqns within a apqn list */ 258 u32 nr_apqns, *apqns = NULL; in pkey_clr2ep11key() local 264 /* build a list of apqns suitable for ep11 keys with cpacf support */ in pkey_clr2ep11key() 265 rc = ep11_findcard2(&apqns, &nr_apqns, 0xFFFF, 0xFFFF, in pkey_clr2ep11key() 272 /* go through the list of apqns and try to bild an ep11 key */ in pkey_clr2ep11key() 274 card = apqns[i] >> 16; in pkey_clr2ep11key() 275 dom = apqns[i] & 0xFFFF; in pkey_clr2ep11key() 284 kfree(apqns); in pkey_clr2ep11key() 296 u32 nr_apqns, *apqns = NULL; in pkey_ep11key2pkey() local 302 /* build a list of apqns suitabl in pkey_ep11key2pkey() 699 pkey_genseckey2(const struct pkey_apqn *apqns, size_t nr_apqns, enum pkey_key_type ktype, enum pkey_key_size ksize, u32 kflags, u8 *keybuf, size_t *keybufsize) pkey_genseckey2() argument 760 pkey_clr2seckey2(const struct pkey_apqn *apqns, size_t nr_apqns, enum pkey_key_type ktype, enum pkey_key_size ksize, u32 kflags, const u8 *clrkey, u8 *keybuf, size_t *keybufsize) pkey_clr2seckey2() argument 966 pkey_keyblob2pkey2(const struct pkey_apqn *apqns, size_t nr_apqns, const u8 *key, size_t keylen, u8 *protkey, u32 *protkeylen, u32 *protkeytype) pkey_keyblob2pkey2() argument 1042 pkey_apqns4key(const u8 *key, size_t keylen, u32 flags, struct pkey_apqn *apqns, size_t *nr_apqns) pkey_apqns4key() argument 1151 pkey_apqns4keytype(enum pkey_key_type ktype, u8 cur_mkvp[32], u8 alt_mkvp[32], u32 flags, struct pkey_apqn *apqns, size_t *nr_apqns) pkey_apqns4keytype() argument 1219 pkey_keyblob2pkey3(const struct pkey_apqn *apqns, size_t nr_apqns, const u8 *key, size_t keylen, u8 *protkey, u32 *protkeylen, u32 *protkeytype) pkey_keyblob2pkey3() argument 1510 struct pkey_apqn *apqns; pkey_unlocked_ioctl() local 1552 struct pkey_apqn *apqns; pkey_unlocked_ioctl() local 1614 struct pkey_apqn *apqns = NULL; pkey_unlocked_ioctl() local 1645 struct pkey_apqn *apqns = NULL; pkey_unlocked_ioctl() local 1694 struct pkey_apqn *apqns = NULL; pkey_unlocked_ioctl() local 1737 struct pkey_apqn *apqns = NULL; pkey_unlocked_ioctl() local 2038 u32 nr_apqns, *apqns = NULL; pkey_ccacipher_aes_attr_read() local 2161 u32 nr_apqns, *apqns = NULL; pkey_ep11_aes_attr_read() local [all...] |
H A D | ap_bus.c | 735 unsigned int apqns; member 744 pctrs->apqns++; in __ap_calc_helper() 752 static void ap_calc_bound_apqns(unsigned int *apqns, unsigned int *bound) in ap_calc_bound_apqns() argument 759 *apqns = ctrs.apqns; in ap_calc_bound_apqns() 769 unsigned int apqns, bound; in ap_check_bindings_complete() local 772 ap_calc_bound_apqns(&apqns, &bound); in ap_check_bindings_complete() 773 if (bound == apqns) { in ap_check_bindings_complete() 1556 unsigned int apqns, n; in bindings_show() local 1558 ap_calc_bound_apqns(&apqns, in bindings_show() [all...] |
H A D | zcrypt_ep11misc.h | 128 * Build a list of ep11 apqns meeting the following constrains: 130 * - if cardnr is not FFFF only apqns with this cardnr 131 * - if domain is not FFFF only apqns with this domainnr 132 * - if minhwtype > 0 only apqns with hwtype >= minhwtype 133 * - if minapi > 0 only apqns with API_ord_nr >= minapi 134 * - if wkvp != NULL only apqns where the wkvp (EP11_WKVPLEN bytes) matches 139 * The array of apqn entries is allocated with kmalloc and returned in *apqns; 140 * the number of apqns stored into the list is returned in *nr_apqns. One apqn 146 int ep11_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain,
|
H A D | zcrypt_ccamisc.h | 219 * Build a list of cca apqns meeting the following constrains: 221 * - if cardnr is not FFFF only apqns with this cardnr 222 * - if domain is not FFFF only apqns with this domainnr 223 * - if minhwtype > 0 only apqns with hwtype >= minhwtype 224 * - if cur_mkvp != 0 only apqns where cur_mkvp == mkvp 225 * - if old_mkvp != 0 only apqns where old_mkvp == mkvp 231 * The array of apqn entries is allocated with kmalloc and returned in *apqns; 232 * the number of apqns stored into the list is returned in *nr_apqns. One apqn 238 int cca_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain,
|
H A D | zcrypt_ccamisc.c | 1893 int cca_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain, in cca_findcard2() argument 1910 /* allocate 1k space for up to 256 apqns */ in cca_findcard2() 1974 *apqns = _apqns; in cca_findcard2()
|
H A D | zcrypt_ep11misc.c | 1550 int ep11_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain, in ep11_findcard2() argument 1567 /* allocate 1k space for up to 256 apqns */ in ep11_findcard2() 1620 *apqns = _apqns; in ep11_findcard2()
|
/kernel/linux/linux-5.10/arch/s390/include/uapi/asm/ |
H A D | pkey.h | 224 * There needs to be a list of apqns given with at least one entry in there. 225 * All apqns in the list need to be exact apqns, 0xFFFF as ANY card or domain 226 * is not supported. The implementation walks through the list of apqns and 231 * generate a list of apqns based on the key type to generate. 242 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets*/ member 257 * There needs to be a list of apqns given with at least one entry in there. 258 * All apqns in the list need to be exact apqns, 0xFFFF as ANY card or domain 259 * is not supported. The implementation walks through the list of apqns an 275 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets */ global() member 340 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets */ global() member 376 struct pkey_apqn __user *apqns; /* in/out: ptr to list of apqn targets*/ global() member 415 struct pkey_apqn __user *apqns; /* in/out: ptr to list of apqn targets*/ global() member 439 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets */ global() member [all...] |
/kernel/linux/linux-6.6/arch/s390/include/uapi/asm/ |
H A D | pkey.h | 229 * There needs to be a list of apqns given with at least one entry in there. 230 * All apqns in the list need to be exact apqns, 0xFFFF as ANY card or domain 231 * is not supported. The implementation walks through the list of apqns and 236 * generate a list of apqns based on the key type to generate. 247 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets*/ member 262 * There needs to be a list of apqns given with at least one entry in there. 263 * All apqns in the list need to be exact apqns, 0xFFFF as ANY card or domain 264 * is not supported. The implementation walks through the list of apqns an 280 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets */ global() member 345 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets */ global() member 381 struct pkey_apqn __user *apqns; /* in/out: ptr to list of apqn targets*/ global() member 420 struct pkey_apqn __user *apqns; /* in/out: ptr to list of apqn targets*/ global() member 444 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets */ global() member [all...] |