Home
last modified time | relevance | path

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

/freebsd/lib/libusb/
H A Dlibusb20_desc.c64 struct libusb20_config *lub_config; in libusb20_parse_config_desc() local
122 size = sizeof(*lub_config) + in libusb20_parse_config_desc()
127 lub_config = malloc(size); in libusb20_parse_config_desc()
128 if (lub_config == NULL) { in libusb20_parse_config_desc()
132 memset(lub_config, 0, size); in libusb20_parse_config_desc()
134 lub_interface = (void *)(lub_config + 1); in libusb20_parse_config_desc()
149 LIBUSB20_INIT(LIBUSB20_CONFIG_DESC, &lub_config->desc); in libusb20_parse_config_desc()
151 if (libusb20_me_decode(ptr, ptr[0], &lub_config->desc)) { in libusb20_parse_config_desc()
154 lub_config->num_interface = 0; in libusb20_parse_config_desc()
155 lub_config->interface = lub_interface; in libusb20_parse_config_desc()
[all …]