Lines Matching full:attributes
20 u32 attributes; in efivarfs_file_write() local
22 unsigned long datasize = count - sizeof(attributes); in efivarfs_file_write()
26 if (count < sizeof(attributes)) in efivarfs_file_write()
29 if (copy_from_user(&attributes, userbuf, sizeof(attributes))) in efivarfs_file_write()
32 if (attributes & ~(EFI_VARIABLE_MASK)) in efivarfs_file_write()
35 data = memdup_user(userbuf + sizeof(attributes), datasize); in efivarfs_file_write()
39 bytes = efivar_entry_set_get_size(var, attributes, &datasize, in efivarfs_file_write()
53 i_size_write(inode, datasize + sizeof(attributes)); in efivarfs_file_write()
71 u32 attributes; in efivarfs_file_read() local
90 data = kmalloc(datasize + sizeof(attributes), GFP_KERNEL); in efivarfs_file_read()
95 size = efivar_entry_get(var, &attributes, &datasize, in efivarfs_file_read()
96 data + sizeof(attributes)); in efivarfs_file_read()
100 memcpy(data, &attributes, sizeof(attributes)); in efivarfs_file_read()
102 data, datasize + sizeof(attributes)); in efivarfs_file_read()