Home
last modified time | relevance | path

Searched refs:langid (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/drivers/usb/gadget/
Dusbstring.c75 bool usb_validate_langid(u16 langid) in usb_validate_langid() argument
77 u16 primary_lang = langid & 0x3ff; /* bit [9:0] */ in usb_validate_langid()
78 u16 sub_lang = langid >> 10; /* bit [15:10] */ in usb_validate_langid()
/linux-6.6.21/drivers/usb/gadget/udc/aspeed-vhub/
Dhub.c997 u32 langid; in ast_vhub_of_parse_str_desc() local
1008 if (of_property_read_u32(child, "reg", &langid)) in ast_vhub_of_parse_str_desc()
1011 if (!usb_validate_langid(langid)) in ast_vhub_of_parse_str_desc()
1014 lang_str.language = langid; in ast_vhub_of_parse_str_desc()
/linux-6.6.21/drivers/usb/core/
Dmessage.c833 static int usb_get_string(struct usb_device *dev, unsigned short langid, in usb_get_string() argument
846 (USB_DT_STRING << 8) + index, langid, buf, size, in usb_get_string()
873 static int usb_string_sub(struct usb_device *dev, unsigned int langid, in usb_string_sub() argument
883 rc = usb_get_string(dev, langid, index, buf, 255); in usb_string_sub()
888 rc = usb_get_string(dev, langid, index, buf, 2); in usb_string_sub()
890 rc = usb_get_string(dev, langid, index, buf, buf[0]); in usb_string_sub()
/linux-6.6.21/include/linux/usb/
Dgadget.h832 bool usb_validate_langid(u16 langid);