Lines Matching refs:s_desc
229 struct usb_string_descriptor *s_desc; in xdbc_mem_init() local
277 s_desc = (struct usb_string_descriptor *)strings->serial; in xdbc_mem_init()
278 s_desc->bLength = (strlen(XDBC_STRING_SERIAL) + 1) * 2; in xdbc_mem_init()
279 s_desc->bDescriptorType = USB_DT_STRING; in xdbc_mem_init()
281 xdbc_put_utf16(s_desc->wData, XDBC_STRING_SERIAL, strlen(XDBC_STRING_SERIAL)); in xdbc_mem_init()
282 string_length = s_desc->bLength; in xdbc_mem_init()
286 s_desc = (struct usb_string_descriptor *)strings->product; in xdbc_mem_init()
287 s_desc->bLength = (strlen(XDBC_STRING_PRODUCT) + 1) * 2; in xdbc_mem_init()
288 s_desc->bDescriptorType = USB_DT_STRING; in xdbc_mem_init()
290 xdbc_put_utf16(s_desc->wData, XDBC_STRING_PRODUCT, strlen(XDBC_STRING_PRODUCT)); in xdbc_mem_init()
291 string_length += s_desc->bLength; in xdbc_mem_init()
295 s_desc = (struct usb_string_descriptor *)strings->manufacturer; in xdbc_mem_init()
296 s_desc->bLength = (strlen(XDBC_STRING_MANUFACTURER) + 1) * 2; in xdbc_mem_init()
297 s_desc->bDescriptorType = USB_DT_STRING; in xdbc_mem_init()
299 xdbc_put_utf16(s_desc->wData, XDBC_STRING_MANUFACTURER, strlen(XDBC_STRING_MANUFACTURER)); in xdbc_mem_init()
300 string_length += s_desc->bLength; in xdbc_mem_init()