/linux/drivers/s390/crypto/ |
H A D | pkey_api.c | 25 static int key2protkey(const struct pkey_apqn *apqns, size_t nr_apqns, in key2protkey() argument 32 rc = pkey_handler_key_to_protkey(apqns, nr_apqns, in key2protkey() 39 rc = pkey_handler_slowpath_key_to_protkey(apqns, nr_apqns, in key2protkey() 216 struct pkey_apqn *apqns; in pkey_ioctl_findcard() local 224 apqns = kmalloc_array(nr_apqns, sizeof(struct pkey_apqn), GFP_KERNEL); in pkey_ioctl_findcard() 225 if (!apqns) in pkey_ioctl_findcard() 231 apqns, &nr_apqns); in pkey_ioctl_findcard() 236 apqns, &nr_apqns); in pkey_ioctl_findcard() 239 kfree(apqns); in pkey_ioctl_findcard() 242 kfc.cardnr = apqns[0].card; in pkey_ioctl_findcard() [all …]
|
H A D | pkey_cca.c | 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() [all …]
|
H A D | pkey_ep11.c | 74 struct pkey_apqn *apqns, size_t *nr_apqns) in ep11_apqns4key() argument 130 if (apqns) { in ep11_apqns4key() 134 memcpy(apqns, _apqns, _nr_apqns * sizeof(u32)); in ep11_apqns4key() 146 struct pkey_apqn *apqns, size_t *nr_apqns) in ep11_apqns4type() argument 173 if (apqns) { in ep11_apqns4type() 177 memcpy(apqns, _apqns, _nr_apqns * sizeof(u32)); 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() 227 apqns[0].card == 0xFFFF && apqns[0].domain == 0xFFFF)) { in ep11_key2protkey() 236 apqns = local_apqns; in ep11_key2protkey() [all …]
|
H A D | pkey_base.h | 124 int (*key_to_protkey)(const struct pkey_apqn *apqns, size_t nr_apqns, 127 int (*slowpath_key_to_protkey)(const struct pkey_apqn *apqns, 132 int (*gen_key)(const struct pkey_apqn *apqns, size_t nr_apqns, 136 int (*clr_to_key)(const struct pkey_apqn *apqns, size_t nr_apqns, 145 struct pkey_apqn *apqns, size_t *nr_apqns); 148 struct pkey_apqn *apqns, size_t *nr_apqns); 164 int pkey_handler_key_to_protkey(const struct pkey_apqn *apqns, size_t nr_apqns, 167 int pkey_handler_slowpath_key_to_protkey(const struct pkey_apqn *apqns, 172 int pkey_handler_gen_key(const struct pkey_apqn *apqns, size_t nr_apqns, 176 int pkey_handler_clr_to_key(const struct pkey_apqn *apqns, size_t nr_apqns, [all …]
|
H A D | pkey_base.c | 151 int pkey_handler_key_to_protkey(const struct pkey_apqn *apqns, size_t nr_apqns, in pkey_handler_key_to_protkey() argument 160 rc = h->key_to_protkey(apqns, nr_apqns, key, keylen, in pkey_handler_key_to_protkey() 176 int pkey_handler_slowpath_key_to_protkey(const struct pkey_apqn *apqns, in pkey_handler_slowpath_key_to_protkey() argument 199 rc = h->slowpath_key_to_protkey(apqns, nr_apqns, in pkey_handler_slowpath_key_to_protkey() 210 int pkey_handler_gen_key(const struct pkey_apqn *apqns, size_t nr_apqns, in pkey_handler_gen_key() argument 220 rc = h->gen_key(apqns, nr_apqns, keytype, keysubtype, in pkey_handler_gen_key() 230 int pkey_handler_clr_to_key(const struct pkey_apqn *apqns, size_t nr_apqns, in pkey_handler_clr_to_key() argument 241 rc = h->clr_to_key(apqns, nr_apqns, keytype, keysubtype, in pkey_handler_clr_to_key() 270 struct pkey_apqn *apqns, size_t *nr_apqns) in pkey_handler_apqns_for_key() argument 277 rc = h->apqns_for_key(key, keylen, flags, apqns, nr_apqns); in pkey_handler_apqns_for_key() [all …]
|
H A D | ap_bus.c | 695 unsigned int apqns; member 704 pctrs->apqns++; in __ap_calc_helper() 712 static void ap_calc_bound_apqns(unsigned int *apqns, unsigned int *bound) in ap_calc_bound_apqns() argument 719 *apqns = ctrs.apqns; in ap_calc_bound_apqns() 729 unsigned int apqns, bound; in ap_check_bindings_complete() local 732 ap_calc_bound_apqns(&apqns, &bound); in ap_check_bindings_complete() 733 if (bound == apqns) { in ap_check_bindings_complete() 1574 unsigned int apqns, n; in bindings_show() local 1576 ap_calc_bound_apqns(&apqns, &n); in bindings_show() 1577 if (atomic64_read(&ap_scan_bus_count) >= 1 && n == apqns) in bindings_show() [all …]
|
H A D | zcrypt_ep11misc.h | 146 int ep11_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain,
|
H A D | zcrypt_ccamisc.h | 238 int cca_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain,
|
H A D | zcrypt_ep11misc.c | 1581 int ep11_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain, in ep11_findcard2() argument 1651 *apqns = _apqns; in ep11_findcard2()
|
H A D | zcrypt_ccamisc.c | 1871 int cca_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain, in cca_findcard2() argument 1952 *apqns = _apqns; in cca_findcard2()
|
/linux/arch/s390/include/uapi/asm/ |
H A D | pkey.h | 252 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets*/ member 285 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets */ member 350 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets */ member 386 struct pkey_apqn __user *apqns; /* in/out: ptr to list of apqn targets*/ member 425 struct pkey_apqn __user *apqns; /* in/out: ptr to list of apqn targets*/ member 449 struct pkey_apqn __user *apqns; /* in: ptr to list of apqn targets */ member
|