Home
last modified time | relevance | path

Searched refs:nr_apqns (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/drivers/s390/crypto/
Dpkey_cca.c74 struct pkey_apqn *apqns, size_t *nr_apqns) in cca_apqns4key() argument
143 if (*nr_apqns < _nr_apqns) in cca_apqns4key()
148 *nr_apqns = _nr_apqns; in cca_apqns4key()
158 struct pkey_apqn *apqns, size_t *nr_apqns) in cca_apqns4type() argument
201 if (*nr_apqns < _nr_apqns) in cca_apqns4type()
206 *nr_apqns = _nr_apqns; 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()
256 nr_apqns = MAXAPQNSINLIST; in cca_key2protkey()
257 local_apqns = kmalloc_array(nr_apqns, sizeof(struct pkey_apqn), in cca_key2protkey()
[all …]
Dpkey_ep11.c74 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()
[all …]
Dpkey_base.h124 int (*key_to_protkey)(const struct pkey_apqn *apqns, size_t nr_apqns,
128 size_t nr_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,
168 size_t nr_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 …]
Dpkey_api.c25 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()
83 static void *_copy_apqns_from_user(void __user *uapqns, size_t nr_apqns) in _copy_apqns_from_user() argument
85 if (!uapqns || nr_apqns == 0) in _copy_apqns_from_user()
88 return memdup_user(uapqns, nr_apqns * sizeof(struct pkey_apqn)); in _copy_apqns_from_user()
217 size_t nr_apqns; in pkey_ioctl_findcard() local
223 nr_apqns = MAXAPQNSINLIST; in pkey_ioctl_findcard()
224 apqns = kmalloc_array(nr_apqns, sizeof(struct pkey_apqn), GFP_KERNEL); in pkey_ioctl_findcard()
231 apqns, &nr_apqns); in pkey_ioctl_findcard()
[all …]
Dpkey_base.c151 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()
177 size_t nr_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 …]
Dzcrypt_ep11misc.h146 int ep11_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain,
Dzcrypt_ccamisc.h238 int cca_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain,
Dzcrypt_ep11misc.c1581 int ep11_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain, in ep11_findcard2() argument
1652 *nr_apqns = _nr_apqns; in ep11_findcard2()
Dzcrypt_ccamisc.c1871 int cca_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain, in cca_findcard2() argument
1953 *nr_apqns = _nr_apqns; in cca_findcard2()