Lines Matching +defs:level +defs:list
11 * notice, this list of conditions and the following disclaimer.
13 * notice, this list of conditions and the following disclaimer in the
91 libusb_set_debug(libusb_context *ctx, int level)
96 ctx->debug = level;
317 libusb_get_device_list(libusb_context *ctx, libusb_device ***list)
329 if (list == NULL)
342 /* allocate device pointer list */
343 *list = malloc((i + 1) * sizeof(void *));
344 if (*list == NULL) {
355 libusb_unref_device((*list)[i - 1]);
358 free(*list);
359 *list = NULL;
363 /* get device into libUSB v1.0 list */
378 (*list)[i] = libusb_ref_device(dev);
381 (*list)[i] = NULL;
388 libusb_free_device_list(libusb_device **list, int unref_devices)
392 if (list == NULL)
396 for (i = 0; list[i] != NULL; i++)
397 libusb_unref_device(list[i]);
399 free(list);
1533 /* insert transfer into transfer head list */