Searched refs:hwid (Results 1 – 2 of 2) sorted by relevance
336 uint8_t hwid[MAX(16, sizeof(CONFIG_USB_DEVICE_SN) / 2)]; in usb_update_sn_string_descriptor() local341 memset(hwid, 0, sizeof(hwid)); in usb_update_sn_string_descriptor()344 hwlen = hwinfo_get_device_id(hwid, sizeof(hwid)); in usb_update_sn_string_descriptor()347 LOG_HEXDUMP_DBG(&hwid[skip], usblen, "Serial Number"); in usb_update_sn_string_descriptor()349 sn[i * 2] = hex[hwid[i + skip] >> 4]; in usb_update_sn_string_descriptor()350 sn[i * 2 + 1] = hex[hwid[i + skip] & 0xF]; in usb_update_sn_string_descriptor()
538 uint8_t hwid[USBD_HWID_SN_MAX / 2U]; in get_sn_from_hwid() local542 hwid_len = hwinfo_get_device_id(hwid, sizeof(hwid)); in get_sn_from_hwid()554 sn[i * 2] = hex[hwid[i] >> 4]; in get_sn_from_hwid()555 sn[i * 2 + 1] = hex[hwid[i] & 0xF]; in get_sn_from_hwid()