Lines Matching refs:NULL
94 if (NULL == ret) in do_usb_open()
95 return NULL; in do_usb_open()
100 if (NULL == ret->adb_interface) { in do_usb_open()
103 return NULL; in do_usb_open()
111 if (NULL != ret->adb_read_pipe) { in do_usb_open()
117 if (NULL != ret->adb_write_pipe) { in do_usb_open()
123 NULL, in do_usb_open()
129 if (NULL != ret->interface_name) { in do_usb_open()
151 return NULL; in do_usb_open()
161 if (NULL != handle) { in usb_write()
202 if (NULL != handle) { in usb_read()
234 if (NULL != handle) { in usb_cleanup_handle()
235 if (NULL != handle->interface_name) in usb_cleanup_handle()
237 if (NULL != handle->adb_write_pipe) in usb_cleanup_handle()
239 if (NULL != handle->adb_read_pipe) in usb_cleanup_handle()
241 if (NULL != handle->adb_interface) in usb_cleanup_handle()
244 handle->interface_name = NULL; in usb_cleanup_handle()
245 handle->adb_write_pipe = NULL; in usb_cleanup_handle()
246 handle->adb_read_pipe = NULL; in usb_cleanup_handle()
247 handle->adb_interface = NULL; in usb_cleanup_handle()
252 if (NULL != handle) { in usb_kick()
263 if (NULL != handle) { in usb_close()
277 if (NULL == handle) in recognized_device()
324 usb_handle* handle = NULL; in find_usb_device()
335 if (NULL == enum_handle) in find_usb_device()
336 return NULL; in find_usb_device()
351 if (NULL != handle) { in find_usb_device()
359 handle = NULL; in find_usb_device()