Lines Matching refs:NULL
126 if (NULL != dev_name) { in known_device_locked()
130 if((NULL != usb->interface_name) && in known_device_locked()
143 if (NULL != dev_name) { in known_device()
153 if (NULL == handle) in register_new_device()
220 const HINSTANCE instance = GetModuleHandleW(NULL); in _power_notification_thread()
240 NULL, NULL, instance, NULL)) { in _power_notification_thread()
246 while (GetMessageW(&msg, NULL, 0, 0)) { in _power_notification_thread()
272 if (NULL == ret) { in do_usb_open()
284 if (NULL == ret->adb_interface) { in do_usb_open()
295 if (NULL == ret->adb_read_pipe) { in do_usb_open()
306 if (NULL == ret->adb_write_pipe) { in do_usb_open()
315 NULL, in do_usb_open()
325 if (NULL == ret->interface_name) { in do_usb_open()
344 if (NULL != ret) { in do_usb_open()
349 return NULL; in do_usb_open()
358 if (NULL == handle) { in usb_write()
406 if (NULL != handle) { in usb_write()
422 if (NULL == handle) { in usb_read()
447 if (NULL != handle) { in usb_read()
467 if (NULL != handle) { in usb_cleanup_handle()
468 if (NULL != handle->interface_name) in usb_cleanup_handle()
473 if (NULL != handle->adb_write_pipe) in usb_cleanup_handle()
475 if (NULL != handle->adb_read_pipe) in usb_cleanup_handle()
477 if (NULL != handle->adb_interface) in usb_cleanup_handle()
480 handle->interface_name = NULL; in usb_cleanup_handle()
481 handle->adb_write_pipe = NULL; in usb_cleanup_handle()
482 handle->adb_read_pipe = NULL; in usb_cleanup_handle()
483 handle->adb_interface = NULL; in usb_cleanup_handle()
495 if (NULL != handle) { in usb_kick()
509 if (NULL != handle) { in usb_close()
531 if (NULL == handle) in recognized_device()
581 usb_handle* handle = NULL; in find_devices()
590 if (NULL == enum_handle) { in find_devices()
601 if (NULL != handle) { in find_devices()
620 register_usb_transport(handle, serial_number, NULL, 1); in find_devices()