Searched refs:elength (Results 1 – 2 of 2) sorted by relevance
2000 unsigned int elength; in cdc_parse_cdc_header() local2006 elength = buffer[0]; in cdc_parse_cdc_header()2007 if (!elength) { in cdc_parse_cdc_header()2009 elength = 1; in cdc_parse_cdc_header()2012 if ((buflen < elength) || (elength < 3)) { in cdc_parse_cdc_header()2023 if (elength < sizeof(struct usb_cdc_union_desc)) in cdc_parse_cdc_header()2032 if (elength < sizeof(struct usb_cdc_country_functional_desc)) in cdc_parse_cdc_header()2038 if (elength != sizeof(struct usb_cdc_header_desc)) in cdc_parse_cdc_header()2045 if (elength < sizeof(struct usb_cdc_acm_descriptor)) in cdc_parse_cdc_header()2051 if (elength != sizeof(struct usb_cdc_ether_desc)) in cdc_parse_cdc_header()[all …]
1127 unsigned int elength = 0; in acm_probe() local1172 elength = buffer[0]; in acm_probe()1173 if (!elength) { in acm_probe()1175 elength = 1; in acm_probe()1185 if (elength < sizeof(struct usb_cdc_union_desc)) in acm_probe()1195 if (elength < sizeof(struct usb_cdc_country_functional_desc)) in acm_probe()1202 if (elength < 4) in acm_probe()1207 if (elength < 5) in acm_probe()1219 buffer[2], elength); in acm_probe()1223 buflen -= elength; in acm_probe()[all …]