Lines Matching refs:qcaps
598 struct efi_querycapsulecapabilities qcaps; in efi_runtime_query_capsulecaps() local
607 if (copy_from_user(&qcaps, qcaps_user, sizeof(qcaps))) in efi_runtime_query_capsulecaps()
610 if (qcaps.capsule_count == ULONG_MAX) in efi_runtime_query_capsulecaps()
613 capsules = kcalloc(qcaps.capsule_count + 1, in efi_runtime_query_capsulecaps()
618 for (i = 0; i < qcaps.capsule_count; i++) { in efi_runtime_query_capsulecaps()
625 if (get_user(c, qcaps.capsule_header_array + i)) { in efi_runtime_query_capsulecaps()
636 qcaps.capsule_header_array = &capsules; in efi_runtime_query_capsulecaps()
639 qcaps.capsule_header_array, in efi_runtime_query_capsulecaps()
640 qcaps.capsule_count, in efi_runtime_query_capsulecaps()
643 if (put_user(status, qcaps.status)) { in efi_runtime_query_capsulecaps()
653 if (put_user(max_size, qcaps.maximum_capsule_size)) { in efi_runtime_query_capsulecaps()
658 if (put_user(reset_type, qcaps.reset_type)) in efi_runtime_query_capsulecaps()