Lines Matching refs:entry
126 struct efivar_entry *entry; in efivarfs_callback() local
134 entry = kmalloc(sizeof(*entry), GFP_KERNEL); in efivarfs_callback()
135 if (!entry) in efivarfs_callback()
138 memcpy(entry->var.VariableName, name16, name_size); in efivarfs_callback()
139 memcpy(&(entry->var.VendorGuid), &vendor, sizeof(efi_guid_t)); in efivarfs_callback()
141 len = ucs2_strlen(entry->var.VariableName); in efivarfs_callback()
149 name[i] = entry->var.VariableName[i] & 0xFF; in efivarfs_callback()
153 efi_guid_unparse(&entry->var.VendorGuid, name + len + 1); in efivarfs_callback()
170 efivar_entry_size(entry, &size); in efivarfs_callback()
171 efivar_entry_add(entry, &efivarfs_list); in efivarfs_callback()
174 inode->i_private = entry; in efivarfs_callback()
175 i_size_write(inode, size + sizeof(entry->var.Attributes)); in efivarfs_callback()
186 kfree(entry); in efivarfs_callback()
190 static int efivarfs_destroy(struct efivar_entry *entry, void *data) in efivarfs_destroy() argument
192 efivar_entry_remove(entry); in efivarfs_destroy()
193 kfree(entry); in efivarfs_destroy()