Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/usb/gadget/
Dconfigfs.c1630 struct usb_string *stringtab; in configfs_attach_gadget_strings() local
1640 stringtab = kcalloc(language->nstrings + 1, sizeof(struct usb_string), in configfs_attach_gadget_strings()
1642 if (!stringtab) { in configfs_attach_gadget_strings()
1647 stringtab[USB_GADGET_MANUFACTURER_IDX].id = USB_GADGET_MANUFACTURER_IDX; in configfs_attach_gadget_strings()
1648 stringtab[USB_GADGET_MANUFACTURER_IDX].s = language->manufacturer; in configfs_attach_gadget_strings()
1649 stringtab[USB_GADGET_PRODUCT_IDX].id = USB_GADGET_PRODUCT_IDX; in configfs_attach_gadget_strings()
1650 stringtab[USB_GADGET_PRODUCT_IDX].s = language->product; in configfs_attach_gadget_strings()
1651 stringtab[USB_GADGET_SERIAL_IDX].id = USB_GADGET_SERIAL_IDX; in configfs_attach_gadget_strings()
1652 stringtab[USB_GADGET_SERIAL_IDX].s = language->serialnumber; in configfs_attach_gadget_strings()
1656 memcpy(&stringtab[j], &string->usb_string, sizeof(struct usb_string)); in configfs_attach_gadget_strings()
[all …]
/linux-6.12.1/drivers/usb/gadget/function/
Df_fs.c3071 vla_item(d, struct usb_gadget_strings, stringtab, lang_count); in __ffs_data_got_strings()
3084 t = vla_ptr(vlabuf, d, stringtab); in __ffs_data_got_strings()
3093 t = vla_ptr(vlabuf, d, stringtab); in __ffs_data_got_strings()