Lines Matching refs:getvariable
152 struct efi_getvariable getvariable; in efi_runtime_get_variable() local
163 if (copy_from_user(&getvariable, getvariable_user, in efi_runtime_get_variable()
164 sizeof(getvariable))) in efi_runtime_get_variable()
166 if (getvariable.data_size && in efi_runtime_get_variable()
167 get_user(datasize, getvariable.data_size)) in efi_runtime_get_variable()
169 if (getvariable.vendor_guid) { in efi_runtime_get_variable()
170 if (copy_from_user(&vendor_guid, getvariable.vendor_guid, in efi_runtime_get_variable()
176 if (getvariable.variable_name) { in efi_runtime_get_variable()
177 rv = copy_ucs2_from_user(&name, getvariable.variable_name); in efi_runtime_get_variable()
182 at = getvariable.attributes ? &attr : NULL; in efi_runtime_get_variable()
183 dz = getvariable.data_size ? &datasize : NULL; in efi_runtime_get_variable()
185 if (getvariable.data_size && getvariable.data) { in efi_runtime_get_variable()
197 if (put_user(status, getvariable.status)) { in efi_runtime_get_variable()
204 if (dz && put_user(datasize, getvariable.data_size)) { in efi_runtime_get_variable()
219 if (copy_to_user(getvariable.data, data, datasize)) { in efi_runtime_get_variable()
225 if (at && put_user(attr, getvariable.attributes)) { in efi_runtime_get_variable()
230 if (dz && put_user(datasize, getvariable.data_size)) in efi_runtime_get_variable()