Lines Matching refs:getvariable
154 struct efi_getvariable getvariable; in efi_runtime_get_variable() local
165 if (copy_from_user(&getvariable, getvariable_user, in efi_runtime_get_variable()
166 sizeof(getvariable))) in efi_runtime_get_variable()
168 if (getvariable.data_size && in efi_runtime_get_variable()
169 get_user(datasize, getvariable.data_size)) in efi_runtime_get_variable()
171 if (getvariable.vendor_guid) { in efi_runtime_get_variable()
172 if (copy_from_user(&vendor_guid, getvariable.vendor_guid, in efi_runtime_get_variable()
178 if (getvariable.variable_name) { in efi_runtime_get_variable()
179 rv = copy_ucs2_from_user(&name, getvariable.variable_name); in efi_runtime_get_variable()
184 at = getvariable.attributes ? &attr : NULL; in efi_runtime_get_variable()
185 dz = getvariable.data_size ? &datasize : NULL; in efi_runtime_get_variable()
187 if (getvariable.data_size && getvariable.data) { in efi_runtime_get_variable()
199 if (put_user(status, getvariable.status)) { in efi_runtime_get_variable()
206 if (dz && put_user(datasize, getvariable.data_size)) { in efi_runtime_get_variable()
221 if (copy_to_user(getvariable.data, data, datasize)) { in efi_runtime_get_variable()
227 if (at && put_user(attr, getvariable.attributes)) { in efi_runtime_get_variable()
232 if (dz && put_user(datasize, getvariable.data_size)) in efi_runtime_get_variable()