Lines Matching refs:reqcnt
1337 static void zcrypt_perdev_reqcnt(u32 reqcnt[], size_t max_adapters) in zcrypt_perdev_reqcnt() argument
1344 memset(reqcnt, 0, sizeof(int) * max_adapters); in zcrypt_perdev_reqcnt()
1356 reqcnt[card] = (cnt < UINT_MAX) ? (u32) cnt : UINT_MAX; in zcrypt_perdev_reqcnt()
1642 u32 *reqcnt; in zcrypt_unlocked_ioctl() local
1644 reqcnt = kcalloc(AP_DEVICES, sizeof(u32), GFP_KERNEL); in zcrypt_unlocked_ioctl()
1645 if (!reqcnt) in zcrypt_unlocked_ioctl()
1647 zcrypt_perdev_reqcnt(reqcnt, AP_DEVICES); in zcrypt_unlocked_ioctl()
1648 if (copy_to_user((int __user *) arg, reqcnt, in zcrypt_unlocked_ioctl()
1651 kfree(reqcnt); in zcrypt_unlocked_ioctl()
1702 u32 reqcnt[MAX_ZDEV_CARDIDS]; in zcrypt_unlocked_ioctl() local
1704 zcrypt_perdev_reqcnt(reqcnt, MAX_ZDEV_CARDIDS); in zcrypt_unlocked_ioctl()
1705 if (copy_to_user((int __user *) arg, reqcnt, sizeof(reqcnt))) in zcrypt_unlocked_ioctl()