Lines Matching refs:ctxUSB
26 ctxUSB = (libusb_context *)ctxUSBin;
40 if (!ctxUSB) {
49 if (!ctxUSB) {
50 WRITE_LOG(LOG_FATAL, "USB mod ctxUSB is nullptr, recompile please");
95 void HdcHostUSB::InitLogging(void *ctxUSB)
97 if (ctxUSB == nullptr) {
98 WRITE_LOG(LOG_FATAL, "InitLogging failed ctxUSB is nullptr");
124 libusb_set_option((libusb_context *)ctxUSB, LIBUSB_OPTION_LOG_LEVEL, debugLevel);
125 libusb_set_log_cb((libusb_context *)ctxUSB, UsbLogHandler,
224 ssize_t cnt = libusb_get_device_list(thisClass->ctxUSB, &devs);
279 libusb_handle_events_timeout(thisClass->ctxUSB, &zerotime);
675 bool HdcHostUSB::FindDeviceByID(HUSB hUSB, const char *usbMountPoint, libusb_context *ctxUSB)
685 int device_num = libusb_get_device_list(ctxUSB, &listDevices);
740 hUSB->ctxUSB = ctxUSB;
741 if (!FindDeviceByID(hUSB, hUSB->usbMountPoint.c_str(), hUSB->ctxUSB)) {