Lines Matching refs:getvariable
142 struct efi_getvariable getvariable; in efi_runtime_get_variable() local
153 if (copy_from_user(&getvariable, getvariable_user, in efi_runtime_get_variable()
154 sizeof(getvariable))) in efi_runtime_get_variable()
156 if (getvariable.data_size && in efi_runtime_get_variable()
157 get_user(datasize, getvariable.data_size)) in efi_runtime_get_variable()
159 if (getvariable.vendor_guid) { in efi_runtime_get_variable()
160 if (copy_from_user(&vendor_guid, getvariable.vendor_guid, in efi_runtime_get_variable()
166 if (getvariable.variable_name) { in efi_runtime_get_variable()
167 rv = copy_ucs2_from_user(&name, getvariable.variable_name); in efi_runtime_get_variable()
172 at = getvariable.attributes ? &attr : NULL; in efi_runtime_get_variable()
173 dz = getvariable.data_size ? &datasize : NULL; in efi_runtime_get_variable()
175 if (getvariable.data_size && getvariable.data) { in efi_runtime_get_variable()
187 if (put_user(status, getvariable.status)) { in efi_runtime_get_variable()
194 if (dz && put_user(datasize, getvariable.data_size)) { in efi_runtime_get_variable()
209 if (copy_to_user(getvariable.data, data, datasize)) { in efi_runtime_get_variable()
215 if (at && put_user(attr, getvariable.attributes)) { in efi_runtime_get_variable()
220 if (dz && put_user(datasize, getvariable.data_size)) in efi_runtime_get_variable()