Lines Matching full:guid
7 * GUID parsing code from ldm.c is:
41 guid_t guid; member
52 static_assert(sizeof(typeof_member(struct guid_block, guid)) == 16);
74 const guid_t *guid; member
81 * If the GUID data block is marked as expensive, we must enable and
85 #define ACPI_WMI_METHOD BIT(1) /* GUID is a method */
86 #define ACPI_WMI_STRING BIT(2) /* GUID takes & returns a string */
87 #define ACPI_WMI_EVENT BIT(3) /* GUID is an event */
99 * GUID parsing functions
102 static bool guid_parse_and_compare(const char *string, const guid_t *guid) in guid_parse_and_compare() argument
109 return guid_equal(&guid_input, guid); in guid_parse_and_compare()
122 if (guid_parse_and_compare(id->guid_string, &wblock->gblock.guid)) in find_guid_context()
156 const guid_t *guid = data; in wmidev_match_guid() local
158 /* Legacy GUID-based functions are restricted to only see in wmidev_match_guid()
159 * a single WMI device for each GUID. in wmidev_match_guid()
164 if (guid_equal(guid, &wblock->gblock.guid)) in wmidev_match_guid()
219 guid_t guid; in wmi_find_device_by_guid() local
222 ret = guid_parse(guid_string, &guid); in wmi_find_device_by_guid()
226 dev = bus_find_device(&wmi_bus_type, NULL, &guid, wmidev_match_guid); in wmi_find_device_by_guid()
382 /* Check GUID is a data block */ in __query_block()
514 /* Check GUID is a data block */ in wmidev_block_set()
534 * @guid: 36 char string of the form fa50ff2b-f2e8-45de-83fa-65417f2f49ba
542 acpi_status wmi_install_notify_handler(const char *guid, in wmi_install_notify_handler() argument
550 wdev = wmi_find_device_by_guid(guid); in wmi_install_notify_handler()
578 * @guid: 36 char string of the form fa50ff2b-f2e8-45de-83fa-65417f2f49ba
584 acpi_status wmi_remove_notify_handler(const char *guid) in wmi_remove_notify_handler() argument
590 wdev = wmi_find_device_by_guid(guid); in wmi_remove_notify_handler()
617 * wmi_has_guid - Check if a GUID is available
620 * Check if a given GUID is defined by _WDG.
622 * Return: True if GUID is available, false otherwise.
639 * wmi_get_acpi_device_uid() - Get _UID name of ACPI device that defines GUID (deprecated)
642 * Find the _UID of ACPI device associated with this WMI GUID.
644 * Return: The ACPI _UID field value or NULL if the WMI GUID was not found.
673 return sysfs_emit(buf, "wmi:%pUL\n", &wblock->gblock.guid); in modalias_show()
682 return sysfs_emit(buf, "%pUL\n", &wblock->gblock.guid); in guid_show()
684 static DEVICE_ATTR_RO(guid);
793 if (add_uevent_var(env, "MODALIAS=wmi:%pUL", &wblock->gblock.guid)) in wmi_dev_uevent()
796 if (add_uevent_var(env, "WMI_GUID=%pUL", &wblock->gblock.guid)) in wmi_dev_uevent()
824 if (guid_parse_and_compare(id->guid_string, &wblock->gblock.guid)) in wmi_dev_match()
848 * so they are blocked from probing WMI devices with a duplicated GUID. in wmi_dev_probe()
969 if (guid_equal(&wblock->gblock.guid, context->guid)) in wmi_count_guids()
975 static int guid_count(const guid_t *guid) in guid_count() argument
978 .guid = guid, in guid_count()
994 return dev_set_name(&wblock->dev.dev, "%pUL-%d", &wblock->gblock.guid, in wmi_dev_set_name()
997 return dev_set_name(&wblock->dev.dev, "%pUL", &wblock->gblock.guid); in wmi_dev_set_name()
1000 return dev_set_name(&wblock->dev.dev, "%pUL-%d", &wblock->gblock.guid, wblock->dev.dev.id); in wmi_dev_set_name()
1078 count = guid_count(&wblock->gblock.guid); in wmi_create_device()
1122 * Parse the _WDG method for the GUID data blocks
1155 dev_info(wmi_bus_dev, FW_INFO "%pUL has zero instances\n", &gblock[i].guid); in parse_wdg()
1177 &wblock->gblock.guid); in parse_wdg()