Lines Matching defs:usb
9 #include <ddk/protocol/usb.h>
10 #include <ddk/usb/usb.h>
42 // TODO(jamuraa): move these to hw/usb.h (or hw/bluetooth.h if that exists)
49 usb_protocol_t usb;
85 usb_request_queue(&hci->usb, req);
93 usb_request_queue(&hci->usb, req);
116 printf("bt-transport-usb: failed to write to snoop channel: %s\n", zx_status_get_string(status));
132 zx_status_t status = usb_req_mmap(&hci->usb, req, (void*)&buffer);
134 printf("bt-transport-usb: usb_req_mmap failed: %s\n", zx_status_get_string(status));
146 printf("bt-transport-usb: hci_event_complete failed to write: %s\n", zx_status_get_string(status));
157 printf("bt-transport-usb: event_buffer would overflow!\n");
174 printf("bt-transport-usb: failed to write: %s\n", zx_status_get_string(status));
200 zx_status_t status = usb_req_mmap(&hci->usb, req, &buffer);
202 printf("bt-transport-usb: usb_req_mmap failed: %s\n", zx_status_get_string(status));
212 printf("bt-transport-usb: hci_acl_read_complete failed to write: %s\n", zx_status_get_string(status));
235 zx_status_t status = usb_req_mmap(&hci->usb, req, &buffer);
237 printf("bt-transport-usb: usb_req_mmap failed: %s\n", zx_status_get_string(status));
295 status = usb_control(&hci->usb, USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_DEVICE,
345 usb_req_copy_to(&hci->usb, req, buf, length, 0);
347 usb_request_queue(&hci->usb, req);
369 printf("bt-transport-usb: no channels are open - exiting\n");
381 printf("bt-transport-usb: zx_object_wait_many failed (%s) - exiting\n",
407 printf("bt-transport-usb: all channels closed - exiting\n");
424 printf("bt-transport-usb: already bound, failing\n");
431 printf("bt-transport-usb: Failed to create channel: %s\n",
476 usb_req_release(&hci->usb, req);
479 usb_req_release(&hci->usb, req);
482 usb_req_release(&hci->usb, req);
507 "bt-transport-usb: failed to create a port to watch snoop channel: "
517 printf("bt-transport-usb: timed out: %s\n",
560 usb_protocol_t usb;
562 zx_status_t status = device_get_protocol(device, ZX_PROTOCOL_USB, &usb);
564 printf("bt-transport-usb: get protocol failed: %s\n", zx_status_get_string(status));
570 zx_status_t result = usb_desc_iter_init(&usb, &iter);
572 printf("bt-transport-usb: usb iterator failed: %s\n", zx_status_get_string(status));
606 printf("bt-transport-usb: bind could not find endpoints\n");
612 printf("bt-transport-usb: Not enough memory for hci_t\n");
625 memcpy(&hci->usb, &usb, sizeof(hci->usb));
629 status = usb_req_alloc(&usb, &req, intr_max_packet, intr_addr);
639 status = usb_req_alloc(&usb, &req, ACL_MAX_FRAME_SIZE, bulk_in_addr);
649 status = usb_req_alloc(&usb, &req, ACL_MAX_FRAME_SIZE, bulk_out_addr);
666 usb_get_device_descriptor(&usb, &dev_desc);
689 printf("bt-transport-usb: bind failed: %s\n", zx_status_get_string(status));