Lines Matching defs:usb
10 #include <ddk/protocol/usb.h>
11 #include <ddk/protocol/usb-composite.h>
12 #include <ddk/usb/usb.h>
13 #include <zircon/hw/usb-cdc.h>
35 const char* module_name = "usb-cdc-ecm";
45 usb_protocol_t usb;
104 usb_req_release(&ctx->usb, txn);
107 usb_req_release(&ctx->usb, ctx->int_txn_buf);
197 ssize_t bytes_copied = usb_req_copy_to(&ctx->usb, req, data, length, 0);
202 usb_request_queue(&ctx->usb, req);
230 usb_req_release(&ctx->usb, request);
241 usb_reset_endpoint(&ctx->usb, ctx->tx_endpoint.addr);
251 usb_reset_endpoint(&ctx->usb, ctx->tx_endpoint.addr);
283 zx_status_t status = usb_req_mmap(&ctx->usb, request, (void*)&read_data);
306 usb_req_release(&ctx->usb, request);
312 usb_reset_endpoint(&ctx->usb, ctx->rx_endpoint.addr);
320 usb_reset_endpoint(&ctx->usb, ctx->rx_endpoint.addr);
326 usb_request_queue(&ctx->usb, request);
380 usb_req_copy_from(&ctx->usb, request, &usb_req, sizeof(usb_cdc_notification_t), 0);
395 usb_req_copy_from(&ctx->usb, request, &new_us_bps, 4, sizeof(usb_cdc_notification_t));
396 usb_req_copy_from(&ctx->usb, request, &new_ds_bps, 4, sizeof(usb_cdc_notification_t) + 4);
420 usb_request_queue(&ctx->usb, txn);
431 usb_reset_endpoint(&ctx->usb, ctx->int_endpoint.addr);
456 zx_status_t result = usb_get_descriptor(&ctx->usb, 0, USB_DT_STRING, desc->iMACAddress,
515 usb_protocol_t usb;
516 zx_status_t result = device_get_protocol(device, ZX_PROTOCOL_USB, &usb);
539 memcpy(&ecm_ctx->usb, &usb, sizeof(ecm_ctx->usb));
546 result = usb_desc_iter_init(&usb, &iter);
659 usb_set_interface(&usb, default_ifc->bInterfaceNumber, default_ifc->bAlternateSetting);
660 usb_set_interface(&usb, data_ifc->bInterfaceNumber, data_ifc->bAlternateSetting);
664 zx_status_t alloc_result = usb_req_alloc(&usb, &int_buf,
687 zx_status_t alloc_result = usb_req_alloc(&usb, &tx_buf, tx_buf_sz,
715 zx_status_t alloc_result = usb_req_alloc(&usb, &rx_buf, rx_buf_sz,
724 usb_request_queue(&ecm_ctx->usb, rx_buf);
739 .name = "usb-cdc-ecm",