Lines Matching refs:nr_apqns
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()
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()
236 apqns, &nr_apqns); in pkey_ioctl_findcard()
562 size_t nr_apqns, len; in pkey_ioctl_apqns4k() local
568 nr_apqns = kak.apqn_entries; in pkey_ioctl_apqns4k()
569 if (nr_apqns) { in pkey_ioctl_apqns4k()
570 apqns = kmalloc_array(nr_apqns, in pkey_ioctl_apqns4k()
582 apqns, &nr_apqns); in pkey_ioctl_apqns4k()
590 if (nr_apqns > kak.apqn_entries) { in pkey_ioctl_apqns4k()
594 len = nr_apqns * sizeof(struct pkey_apqn); in pkey_ioctl_apqns4k()
602 kak.apqn_entries = nr_apqns; in pkey_ioctl_apqns4k()
614 size_t nr_apqns, len; in pkey_ioctl_apqns4kt() local
619 nr_apqns = kat.apqn_entries; in pkey_ioctl_apqns4kt()
620 if (nr_apqns) { in pkey_ioctl_apqns4kt()
621 apqns = kmalloc_array(nr_apqns, in pkey_ioctl_apqns4kt()
629 kat.flags, apqns, &nr_apqns); in pkey_ioctl_apqns4kt()
636 if (nr_apqns > kat.apqn_entries) { in pkey_ioctl_apqns4kt()
640 len = nr_apqns * sizeof(struct pkey_apqn); in pkey_ioctl_apqns4kt()
648 kat.apqn_entries = nr_apqns; in pkey_ioctl_apqns4kt()