Home
last modified time | relevance | path

Searched refs:s_desc (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/usb/host/
Dxhci-dbgcap.c40 struct usb_string_descriptor *s_desc; in xhci_dbc_populate_strings() local
44 s_desc = (struct usb_string_descriptor *)strings->serial; in xhci_dbc_populate_strings()
46 UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData, in xhci_dbc_populate_strings()
49 s_desc->bLength = (strlen(DBC_STRING_SERIAL) + 1) * 2; in xhci_dbc_populate_strings()
50 s_desc->bDescriptorType = USB_DT_STRING; in xhci_dbc_populate_strings()
51 string_length = s_desc->bLength; in xhci_dbc_populate_strings()
55 s_desc = (struct usb_string_descriptor *)strings->product; in xhci_dbc_populate_strings()
57 UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData, in xhci_dbc_populate_strings()
60 s_desc->bLength = (strlen(DBC_STRING_PRODUCT) + 1) * 2; in xhci_dbc_populate_strings()
61 s_desc->bDescriptorType = USB_DT_STRING; in xhci_dbc_populate_strings()
[all …]
/Linux-v4.19/drivers/usb/early/
Dxhci-dbc.c228 struct usb_string_descriptor *s_desc; in xdbc_mem_init() local
276 s_desc = (struct usb_string_descriptor *)strings->serial; in xdbc_mem_init()
277 s_desc->bLength = (strlen(XDBC_STRING_SERIAL) + 1) * 2; in xdbc_mem_init()
278 s_desc->bDescriptorType = USB_DT_STRING; in xdbc_mem_init()
280 xdbc_put_utf16(s_desc->wData, XDBC_STRING_SERIAL, strlen(XDBC_STRING_SERIAL)); in xdbc_mem_init()
281 string_length = s_desc->bLength; in xdbc_mem_init()
285 s_desc = (struct usb_string_descriptor *)strings->product; in xdbc_mem_init()
286 s_desc->bLength = (strlen(XDBC_STRING_PRODUCT) + 1) * 2; in xdbc_mem_init()
287 s_desc->bDescriptorType = USB_DT_STRING; in xdbc_mem_init()
289 xdbc_put_utf16(s_desc->wData, XDBC_STRING_PRODUCT, strlen(XDBC_STRING_PRODUCT)); in xdbc_mem_init()
[all …]