Lines Matching refs:entry
110 struct efivar_entry *entry; in efivarfs_callback() local
119 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in efivarfs_callback()
120 if (!entry) in efivarfs_callback()
123 memcpy(entry->var.VariableName, name16, name_size); in efivarfs_callback()
124 memcpy(&(entry->var.VendorGuid), &vendor, sizeof(efi_guid_t)); in efivarfs_callback()
126 len = ucs2_utf8size(entry->var.VariableName); in efivarfs_callback()
133 ucs2_as_utf8(name, entry->var.VariableName, len); in efivarfs_callback()
135 if (efivar_variable_is_removable(entry->var.VendorGuid, name, len)) in efivarfs_callback()
140 efi_guid_to_str(&entry->var.VendorGuid, name + len + 1); in efivarfs_callback()
155 efivar_entry_size(entry, &size); in efivarfs_callback()
156 err = efivar_entry_add(entry, &efivarfs_list); in efivarfs_callback()
164 inode->i_private = entry; in efivarfs_callback()
165 i_size_write(inode, size + sizeof(entry->var.Attributes)); in efivarfs_callback()
176 kfree(entry); in efivarfs_callback()
180 static int efivarfs_destroy(struct efivar_entry *entry, void *data) in efivarfs_destroy() argument
182 int err = efivar_entry_remove(entry); in efivarfs_destroy()
186 kfree(entry); in efivarfs_destroy()