Home | History | Annotate | Download | only in client

Lines Matching defs:usb_handle

91 struct usb_handle : public ::usb_handle {
92 usb_handle(const std::string& device_address, const std::string& serial,
106 ~usb_handle() {
151 static auto& usb_handles = *new std::unordered_map<std::string, std::unique_ptr<usb_handle>>();
374 std::unique_ptr<usb_handle> result(new usb_handle(device_address, device_serial,
377 usb_handle* usb_handle_raw = result.get();
423 std::unique_ptr<usb_handle> handle = std::move(it->second);
429 // Closure of the transport will erase the usb_handle.
453 // function so that the usb_handle
543 static int perform_usb_transfer(usb_handle* h, transfer_info* info,
572 int usb_write(usb_handle* h, const void* d, int len) {
595 int usb_read(usb_handle* h, void* d, int len) {
622 int usb_close(usb_handle* h) {
626 LOG(FATAL) << "attempted to close unregistered usb_handle for '" << h->serial << "'";
632 void usb_kick(usb_handle* h) {
636 size_t usb_get_max_packet_size(usb_handle* h) {