Lines Matching refs:endpoint
72 static void clear_endpoint(struct libusb_endpoint_descriptor *endpoint)
74 if (endpoint->extra)
75 free((unsigned char *) endpoint->extra);
79 struct libusb_endpoint_descriptor *endpoint, unsigned char *buffer,
104 usbi_parse_descriptor(buffer, "bbbbwbbb", endpoint, host_endian);
106 usbi_parse_descriptor(buffer, "bbbbwb", endpoint, host_endian);
140 endpoint->extra = NULL;
141 endpoint->extra_length = 0;
146 endpoint->extra = extra;
148 endpoint->extra_length = 0;
153 endpoint->extra_length = len;
170 if (ifp->endpoint) {
173 ifp->endpoint + j);
174 free((void *) ifp->endpoint);
215 ifp->endpoint = NULL;
275 struct libusb_endpoint_descriptor *endpoint;
277 endpoint = malloc(tmp);
278 ifp->endpoint = endpoint;
279 if (!endpoint) {
284 memset(endpoint, 0, tmp);
294 r = parse_endpoint(ctx, endpoint + i, buffer, size,