Lines Matching refs:lang_str
336 struct usb_gadget_strings *lang_str; in ast_vhub_collect_languages() local
347 lang_str = ast_vhub_str_of_container(container); in ast_vhub_collect_languages()
348 sdesc->wData[nlangs++] = cpu_to_le16(lang_str->language); in ast_vhub_collect_languages()
361 struct usb_gadget_strings *lang_str; in ast_vhub_lookup_string() local
365 lang_str = ast_vhub_str_of_container(container); in ast_vhub_lookup_string()
366 if (lang_str->language == lang_id) in ast_vhub_lookup_string()
367 return lang_str; in ast_vhub_lookup_string()
380 struct usb_gadget_strings *lang_str; in ast_vhub_rep_string() local
385 lang_str = ast_vhub_lookup_string(vhub, lang_id); in ast_vhub_rep_string()
386 if (!lang_str) in ast_vhub_rep_string()
389 rc = usb_gadget_get_string(lang_str, string_id, buf); in ast_vhub_rep_string()
935 struct usb_gadget_strings *lang_str; in ast_vhub_str_container_alloc() local
945 lang_str = ast_vhub_str_of_container(container); in ast_vhub_str_container_alloc()
946 str_array = (struct usb_string *)(lang_str + 1); in ast_vhub_str_container_alloc()
947 lang_str->strings = str_array; in ast_vhub_str_container_alloc()
1003 struct usb_gadget_strings lang_str = { in ast_vhub_of_parse_str_desc() local
1014 lang_str.language = langid; in ast_vhub_of_parse_str_desc()
1026 ret = ast_vhub_str_alloc_add(vhub, &lang_str); in ast_vhub_of_parse_str_desc()