Lines Matching refs:name
81 * 1. A case-sensitive variable name
89 const struct qstr *name)
93 if (name->len != len)
96 /* Case-sensitive compare for the variable name */
97 if (memcmp(str, name->name, guid))
101 return strncasecmp(name->name + guid, str + guid, EFI_VARIABLE_GUID_LEN);
107 const unsigned char *s = qstr->name;
130 static struct dentry *efivarfs_alloc_dentry(struct dentry *parent, char *name)
136 q.name = name;
137 q.len = strlen(name);
158 char *name;
175 /* name, plus '-', plus GUID, plus NUL*/
176 name = kmalloc(len + 1 + EFI_VARIABLE_GUID_LEN + 1, GFP_KERNEL);
177 if (!name)
180 ucs2_as_utf8(name, entry->var.VariableName, len);
182 if (efivar_variable_is_removable(entry->var.VendorGuid, name, len))
185 name[len] = '-';
187 efi_guid_to_str(&entry->var.VendorGuid, name + len + 1);
189 name[len + EFI_VARIABLE_GUID_LEN+1] = '\0';
192 strreplace(name, '/', '!');
199 dentry = efivarfs_alloc_dentry(root, name);
209 kfree(name);
222 kfree(name);
316 .name = "efivarfs",