Lines Matching full:language

28 	stringtab_dev->language = num;  in check_user_usb_string()
864 struct gadget_language *language; in gadget_language_string_make() local
867 language = to_gadget_language(&group->cg_item); in gadget_language_string_make()
873 string->usb_string.id = language->nstrings++; in gadget_language_string_make()
875 list_add_tail(&string->list, &language->gadget_strings); in gadget_language_string_make()
885 struct gadget_language *language; in gadget_language_string_drop() local
889 language = to_gadget_language(&group->cg_item); in gadget_language_string_drop()
893 language->nstrings--; in gadget_language_string_drop()
895 /* Reset the ids for the language's strings to guarantee a continuous set */ in gadget_language_string_drop()
896 list_for_each_entry(string, &language->gadget_strings, list) in gadget_language_string_drop()
934 if (gs->stringtab_dev.language == new->stringtab_dev.language) in gadget_language_make()
1608 struct gadget_language *language; in configfs_attach_gadget_strings() local
1629 list_for_each_entry(language, &gi->string_list, list) { in configfs_attach_gadget_strings()
1633 nstrings = language->nstrings; in configfs_attach_gadget_strings()
1634 } else if (nstrings != language->nstrings) { in configfs_attach_gadget_strings()
1640 stringtab = kcalloc(language->nstrings + 1, sizeof(struct usb_string), in configfs_attach_gadget_strings()
1648 stringtab[USB_GADGET_MANUFACTURER_IDX].s = language->manufacturer; in configfs_attach_gadget_strings()
1650 stringtab[USB_GADGET_PRODUCT_IDX].s = language->product; in configfs_attach_gadget_strings()
1652 stringtab[USB_GADGET_SERIAL_IDX].s = language->serialnumber; in configfs_attach_gadget_strings()
1655 list_for_each_entry(string, &language->gadget_strings, list) { in configfs_attach_gadget_strings()
1660 language->stringtab_dev.strings = stringtab; in configfs_attach_gadget_strings()
1661 gadget_strings[i] = &language->stringtab_dev; in configfs_attach_gadget_strings()
1668 list_for_each_entry(language, &gi->string_list, list) { in configfs_attach_gadget_strings()
1669 kfree(language->stringtab_dev.strings); in configfs_attach_gadget_strings()
1670 language->stringtab_dev.strings = NULL; in configfs_attach_gadget_strings()