Lines Matching full:guid

7  *  GUID parsing code from ldm.c is:
40 guid_t guid; member
51 static_assert(sizeof(typeof_member(struct guid_block, guid)) == 16);
73 const guid_t *guid; member
78 * If the GUID data block is marked as expensive, we must enable and
82 #define ACPI_WMI_METHOD BIT(1) /* GUID is a method */
83 #define ACPI_WMI_STRING BIT(2) /* GUID takes & returns a string */
84 #define ACPI_WMI_EVENT BIT(3) /* GUID is an event */
96 * GUID parsing functions
99 static bool guid_parse_and_compare(const char *string, const guid_t *guid) in guid_parse_and_compare() argument
106 return guid_equal(&guid_input, guid); in guid_parse_and_compare()
119 if (guid_parse_and_compare(id->guid_string, &wblock->gblock.guid)) in find_guid_context()
171 const guid_t *guid = data; in wmidev_match_guid() local
173 /* Legacy GUID-based functions are restricted to only see in wmidev_match_guid()
174 * a single WMI device for each GUID. in wmidev_match_guid()
179 if (guid_equal(guid, &wblock->gblock.guid)) in wmidev_match_guid()
190 guid_t guid; in wmi_find_device_by_guid() local
193 ret = guid_parse(guid_string, &guid); in wmi_find_device_by_guid()
197 dev = bus_find_device(&wmi_bus_type, NULL, &guid, wmidev_match_guid); in wmi_find_device_by_guid()
355 /* Check GUID is a data block */ in __query_block()
505 /* Check GUID is a data block */ in wmidev_block_set()
525 * @guid: 36 char string of the form fa50ff2b-f2e8-45de-83fa-65417f2f49ba
533 acpi_status wmi_install_notify_handler(const char *guid, in wmi_install_notify_handler() argument
541 wdev = wmi_find_device_by_guid(guid); in wmi_install_notify_handler()
569 * @guid: 36 char string of the form fa50ff2b-f2e8-45de-83fa-65417f2f49ba
575 acpi_status wmi_remove_notify_handler(const char *guid) in wmi_remove_notify_handler() argument
581 wdev = wmi_find_device_by_guid(guid); in wmi_remove_notify_handler()
608 * wmi_has_guid - Check if a GUID is available
611 * Check if a given GUID is defined by _WDG.
613 * Return: True if GUID is available, false otherwise.
630 * wmi_get_acpi_device_uid() - Get _UID name of ACPI device that defines GUID (deprecated)
633 * Find the _UID of ACPI device associated with this WMI GUID.
635 * Return: The ACPI _UID field value or NULL if the WMI GUID was not found.
664 return sysfs_emit(buf, "wmi:%pUL\n", &wblock->gblock.guid); in modalias_show()
673 return sysfs_emit(buf, "%pUL\n", &wblock->gblock.guid); in guid_show()
675 static DEVICE_ATTR_RO(guid);
784 if (add_uevent_var(env, "MODALIAS=wmi:%pUL", &wblock->gblock.guid)) in wmi_dev_uevent()
787 if (add_uevent_var(env, "WMI_GUID=%pUL", &wblock->gblock.guid)) in wmi_dev_uevent()
815 if (guid_parse_and_compare(id->guid_string, &wblock->gblock.guid)) in wmi_dev_match()
831 * so they are blocked from probing WMI devices with a duplicated GUID. in wmi_dev_probe()
947 if (guid_equal(&wblock->gblock.guid, context->guid)) in wmi_count_guids()
953 static int guid_count(const guid_t *guid) in guid_count() argument
956 .guid = guid, in guid_count()
1043 count = guid_count(&wblock->gblock.guid); in wmi_create_device()
1048 dev_set_name(&wblock->dev.dev, "%pUL-%d", &wblock->gblock.guid, count); in wmi_create_device()
1051 dev_set_name(&wblock->dev.dev, "%pUL", &wblock->gblock.guid); in wmi_create_device()
1080 * Parse the _WDG method for the GUID data blocks
1113 dev_info(wmi_bus_dev, FW_INFO "%pUL has zero instances\n", &gblock[i].guid); in parse_wdg()
1135 &wblock->gblock.guid); in parse_wdg()