Lines Matching refs:guid
45 guid_t guid; member
56 static_assert(sizeof(typeof_member(struct guid_block, guid)) == 16);
128 if (guid_equal(&wblock->gblock.guid, &guid_input)) { in find_guid()
139 static bool guid_parse_and_compare(const char *string, const guid_t *guid) in guid_parse_and_compare() argument
146 return guid_equal(&guid_input, guid); in guid_parse_and_compare()
159 if (guid_parse_and_compare(id->guid_string, &wblock->gblock.guid)) in find_guid_context()
560 pr_info("%pUL:\n", &g->guid); in wmi_dump_wdg()
627 acpi_status wmi_install_notify_handler(const char *guid, in wmi_install_notify_handler() argument
635 if (!guid || !handler) in wmi_install_notify_handler()
638 if (guid_parse(guid, &guid_input)) in wmi_install_notify_handler()
644 if (guid_equal(&block->gblock.guid, &guid_input)) { in wmi_install_notify_handler()
671 acpi_status wmi_remove_notify_handler(const char *guid) in wmi_remove_notify_handler() argument
677 if (!guid) in wmi_remove_notify_handler()
680 if (guid_parse(guid, &guid_input)) in wmi_remove_notify_handler()
686 if (guid_equal(&block->gblock.guid, &guid_input)) { in wmi_remove_notify_handler()
786 return sysfs_emit(buf, "wmi:%pUL\n", &wblock->gblock.guid); in modalias_show()
795 return sysfs_emit(buf, "%pUL\n", &wblock->gblock.guid); in guid_show()
797 static DEVICE_ATTR_RO(guid);
878 if (add_uevent_var(env, "MODALIAS=wmi:%pUL", &wblock->gblock.guid)) in wmi_dev_uevent()
881 if (add_uevent_var(env, "WMI_GUID=%pUL", &wblock->gblock.guid)) in wmi_dev_uevent()
904 if (guid_parse_and_compare(id->guid_string, &wblock->gblock.guid)) in wmi_dev_match()
1130 static int guid_count(const guid_t *guid) in guid_count() argument
1136 if (guid_equal(&wblock->gblock.guid, guid)) in guid_count()
1205 count = guid_count(&wblock->gblock.guid); in wmi_create_device()
1207 dev_set_name(&wblock->dev.dev, "%pUL-%d", &wblock->gblock.guid, count); in wmi_create_device()
1209 dev_set_name(&wblock->dev.dev, "%pUL", &wblock->gblock.guid); in wmi_create_device()
1229 static bool guid_already_parsed_for_legacy(struct acpi_device *device, const guid_t *guid) in guid_already_parsed_for_legacy() argument
1236 if (guid_parse_and_compare(allow_duplicates[i], guid)) in guid_already_parsed_for_legacy()
1239 if (guid_equal(&wblock->gblock.guid, guid)) { in guid_already_parsed_for_legacy()
1247 guid, dev_name(&wblock->acpi_device->dev)); in guid_already_parsed_for_legacy()
1289 dev_info(wmi_bus_dev, FW_INFO "%pUL has zero instances\n", &gblock[i].guid); in parse_wdg()
1293 if (guid_already_parsed_for_legacy(device, &gblock[i].guid)) in parse_wdg()
1298 dev_err(wmi_bus_dev, "Failed to allocate %pUL\n", &gblock[i].guid); in parse_wdg()
1330 &wblock->gblock.guid); in parse_wdg()
1427 pr_info("DEBUG: GUID %pUL event 0x%02X\n", &wblock->gblock.guid, event); in acpi_wmi_notify_handler()