Searched refs:usb_read (Results 1 - 8 of 8) sorted by relevance

/system/core/adb/client/
H A Dusb_dispatch.cpp44 int usb_read(usb_handle* h, void* data, int len) { function
46 ? libusb::usb_read(reinterpret_cast<libusb::usb_handle*>(h), data, len)
47 : native::usb_read(reinterpret_cast<native::usb_handle*>(h), data, len);
H A Dusb_windows.cpp117 int usb_read(usb_handle* handle, void* data, int len);
383 int usb_read(usb_handle* handle, void* data, int len) { function in namespace:native
389 D("usb_read %d", len);
391 D("usb_read was passed NULL handle");
403 D("usb_read got: %ld, expected: %d", read, len);
415 D("Kicking device due to error in usb_read");
419 D("usb_read failed");
H A Dusb_libusb.cpp511 // usb_read() can return when receiving some data.
595 int usb_read(usb_handle* h, void* d, int len) { function in namespace:libusb
596 LOG(DEBUG) << "usb_read of length " << len;
614 LOG(DEBUG) << "usb_read(" << len << ") = " << rc << ", actual_length "
H A Dusb_linux.cpp428 int usb_read(usb_handle *h, void *_data, int len) function in namespace:native
433 D("++ usb_read ++");
455 D("-- usb_read --");
H A Dusb_osx.cpp507 int usb_read(usb_handle *handle, void *buf, int len) function in namespace:native
521 LOG(ERROR) << "usb_read interface was null";
541 LOG(ERROR) << "usb_read failed with status: " << std::hex << result;
/system/core/adb/
H A Dtransport_usb.cpp36 // Call usb_read using a buffer having a multiple of usb_get_max_packet_size() bytes
47 int n = usb_read(h, buffer, usb_packet_size);
49 D("usb_read returned unexpected length %d (expected %zu)", n, sizeof(*msg));
55 return usb_read(h, msg, sizeof(*msg));
59 // Call usb_read using a buffer having a multiple of usb_get_max_packet_size() bytes
81 int rc = usb_read(h, &p->payload[0], p->payload.size());
90 return usb_read(h, &p->payload[0], p->payload.size());
124 if (usb_read(usb, &p->msg, sizeof(amessage))) {
136 if (usb_read(usb, &p->payload[0], p->payload.size())) {
H A Dusb.h27 int usb_read(handle_ref_type h, void* data, int len); \
/system/core/adb/daemon/
H A Dusb.cpp544 int usb_read(usb_handle* h, void* data, int len) { function

Completed in 329 milliseconds