• Home
  • Raw
  • Download

Lines Matching refs:ifp

165 			struct libusb_interface_descriptor *ifp =  in clear_interface()  local
168 if (ifp->extra) in clear_interface()
169 free((void *) ifp->extra); in clear_interface()
170 if (ifp->endpoint) { in clear_interface()
171 for (j = 0; j < ifp->bNumEndpoints; j++) in clear_interface()
173 ifp->endpoint + j); in clear_interface()
174 free((void *) ifp->endpoint); in clear_interface()
193 struct libusb_interface_descriptor *ifp; in parse_interface() local
210 ifp = altsetting + usb_interface->num_altsetting; in parse_interface()
212 usbi_parse_descriptor(buffer, "bbbbbbbbb", ifp, 0); in parse_interface()
213 ifp->extra = NULL; in parse_interface()
214 ifp->extra_length = 0; in parse_interface()
215 ifp->endpoint = NULL; in parse_interface()
218 buffer += ifp->bLength; in parse_interface()
219 parsed += ifp->bLength; in parse_interface()
220 size -= ifp->bLength; in parse_interface()
250 ifp->extra = malloc(len); in parse_interface()
251 if (!ifp->extra) { in parse_interface()
255 memcpy((unsigned char *) ifp->extra, begin, len); in parse_interface()
256 ifp->extra_length = len; in parse_interface()
268 if (ifp->bNumEndpoints > USB_MAXENDPOINTS) { in parse_interface()
269 usbi_err(ctx, "too many endpoints (%d)", ifp->bNumEndpoints); in parse_interface()
274 if (ifp->bNumEndpoints > 0) { in parse_interface()
276 tmp = ifp->bNumEndpoints * sizeof(struct libusb_endpoint_descriptor); in parse_interface()
278 ifp->endpoint = endpoint; in parse_interface()
285 for (i = 0; i < ifp->bNumEndpoints; i++) { in parse_interface()
306 ifp = (struct libusb_interface_descriptor *) buffer; in parse_interface()
308 ifp->bDescriptorType != LIBUSB_DT_INTERFACE || in parse_interface()
309 !ifp->bAlternateSetting) in parse_interface()