Lines Matching defs:item
31 * Description: Get item name and settings for current LMI instance.
86 * Description: Return a list of valid settings for a given item.
352 static int tlmi_setting(int item, char **value, const char *guid_string)
358 status = wmi_query_block(guid_string, item, &output);
369 static int tlmi_get_bios_selections(const char *item, char **value)
371 const struct acpi_buffer input = { strlen(item), (char *)item };
933 char *item, *value, *p;
936 ret = tlmi_setting(setting->index, &item, LENOVO_BIOS_SETTING_GUID);
940 /* validate and split from `item,value` -> `value` */
941 value = strpbrk(item, ",");
942 if (!value || value == item || !strlen(value + 1))
950 kfree(item);
1449 char *item = NULL;
1453 ret = tlmi_setting(i, &item, LENOVO_BIOS_SETTING_GUID);
1456 if (!item)
1458 if (!*item) {
1459 kfree(item);
1464 strreplace(item, '/', '\\');
1467 p = strchrnul(item, ',');
1474 kfree(item);
1478 strscpy(setting->display_name, item, TLMI_SETTINGS_MAXLEN);
1517 kfree(item);