Lines Matching refs:reqcnt
718 static void zcrypt_perdev_reqcnt(int reqcnt[], size_t max_adapters) in zcrypt_perdev_reqcnt() argument
724 memset(reqcnt, 0, sizeof(int) * max_adapters); in zcrypt_perdev_reqcnt()
734 reqcnt[card] = zq->queue->total_request_count; in zcrypt_perdev_reqcnt()
906 int *reqcnt; in zcrypt_unlocked_ioctl() local
908 reqcnt = kcalloc(AP_DEVICES, sizeof(int), GFP_KERNEL); in zcrypt_unlocked_ioctl()
909 if (!reqcnt) in zcrypt_unlocked_ioctl()
911 zcrypt_perdev_reqcnt(reqcnt, AP_DEVICES); in zcrypt_unlocked_ioctl()
912 if (copy_to_user((int __user *) arg, reqcnt, sizeof(reqcnt))) in zcrypt_unlocked_ioctl()
914 kfree(reqcnt); in zcrypt_unlocked_ioctl()
965 int reqcnt[MAX_ZDEV_CARDIDS]; in zcrypt_unlocked_ioctl() local
967 zcrypt_perdev_reqcnt(reqcnt, MAX_ZDEV_CARDIDS); in zcrypt_unlocked_ioctl()
968 if (copy_to_user((int __user *) arg, reqcnt, sizeof(reqcnt))) in zcrypt_unlocked_ioctl()