Lines Matching defs:key
45 struct list_head attribs; /* key/value in vpd_attrib_info list */
49 char *key;
71 * The VPD specification supports only [a-zA-Z0-9_]+ characters in key names but
76 * Returns VPD_OK for a valid key name, VPD_FAIL otherwise.
78 * @key: The key name to check
79 * @key_len: key name length
81 static int vpd_section_check_key_name(const u8 *key, s32 key_len)
86 c = *key++;
95 static int vpd_section_attrib_add(const u8 *key, u32 key_len,
104 * Return VPD_OK immediately to decode next entry if the current key
107 if (vpd_section_check_key_name(key, key_len) != VPD_OK)
114 info->key = kstrndup(key, key_len, GFP_KERNEL);
115 if (!info->key) {
121 info->bin_attr.attr.name = info->key;
139 kfree(info->key);
153 kfree(info->key);