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

/fuchsia/zircon/system/dev/usb/dwc3/
H A Ddwc3-ep0.c14 #define EP0_LOCK(dwc) (&(dwc)->eps[EP0_OUT].lock)
16 static void dwc3_queue_setup_locked(dwc3_t* dwc) { argument
17 io_buffer_cache_flush_invalidate(&dwc->ep0_buffer, 0, sizeof(usb_setup_t));
18 dwc3_ep_start_transfer(dwc, EP0_OUT, TRB_TRBCTL_SETUP, io_buffer_phys(&dwc->ep0_buffer),
20 dwc->ep0_state = EP0_STATE_SETUP;
23 zx_status_t dwc3_ep0_init(dwc3_t* dwc) { argument
25 zx_status_t status = dwc3_ep_fifo_init(dwc, EP0_OUT);
31 dwc3_endpoint_t* ep = &dwc
41 dwc3_ep0_reset(dwc3_t* dwc) argument
48 dwc3_ep0_start(dwc3_t* dwc) argument
58 dwc3_handle_setup(dwc3_t* dwc, usb_setup_t* setup, void* buffer, size_t length, size_t* out_actual) argument
100 dwc3_ep0_xfer_not_ready(dwc3_t* dwc, unsigned ep_num, unsigned stage) argument
156 dwc3_ep0_xfer_complete(dwc3_t* dwc, unsigned ep_num) argument
[all...]
H A Ddwc3.c40 void dwc3_print_status(dwc3_t* dwc) { argument
41 volatile void* mmio = dwc3_mmio(dwc);
71 static void dwc3_stop(dwc3_t* dwc) { argument
72 volatile void* mmio = dwc3_mmio(dwc);
75 mtx_lock(&dwc->lock);
83 mtx_unlock(&dwc->lock);
86 static void dwc3_start_peripheral_mode(dwc3_t* dwc) { argument
87 volatile void* mmio = dwc3_mmio(dwc);
90 mtx_lock(&dwc->lock);
117 dwc3_events_start(dwc);
131 dwc3_t* dwc = ctx; local
138 dwc3_t* dwc = ctx; local
154 dwc3_start_host_mode(dwc3_t* dwc) argument
189 dwc3_usb_reset(dwc3_t* dwc) argument
204 dwc3_disconnected(dwc3_t* dwc) argument
220 dwc3_connection_done(dwc3_t* dwc) argument
260 dwc3_set_address(dwc3_t* dwc, unsigned address) argument
267 dwc3_reset_configuration(dwc3_t* dwc) argument
284 dwc3_t* dwc = ctx; local
298 dwc3_t* dwc = ctx; local
305 dwc3_t* dwc = ctx; local
310 dwc3_t* dwc = ctx; local
315 dwc3_t* dwc = ctx; local
320 dwc3_t* dwc = ctx; local
325 dwc3_t* dwc = ctx; local
341 dwc3_t* dwc = ctx; local
413 dwc3_t* dwc = ctx; local
439 dwc3_t* dwc = ctx; local
461 dwc3_t* dwc = calloc(1, sizeof(dwc3_t)); local
[all...]
H A Ddwc3-commands.c10 static void dwc3_ep_cmd(dwc3_t* dwc, unsigned ep_num, uint32_t command, uint32_t param0, argument
12 volatile void* mmio = dwc3_mmio(dwc);
14 mtx_lock(&dwc->lock);
27 mtx_unlock(&dwc->lock);
30 void dwc3_cmd_start_new_config(dwc3_t* dwc, unsigned ep_num, unsigned rsrc_id) { argument
31 dwc3_ep_cmd(dwc, ep_num, DEPSTARTCFG | DEPCMD_RESOURCE_INDEX(rsrc_id), 0, 0, 0, 0);
34 void dwc3_cmd_ep_set_config(dwc3_t* dwc, unsigned ep_num, unsigned ep_type, argument
47 dwc3_ep_cmd(dwc, ep_num, DEPCFG, param0, param1, 0, 0);
50 void dwc3_cmd_ep_transfer_config(dwc3_t* dwc, unsigned ep_num) { argument
51 dwc3_ep_cmd(dwc, ep_nu
54 dwc3_cmd_ep_start_transfer(dwc3_t* dwc, unsigned ep_num, zx_paddr_t trb_phys) argument
59 dwc3_cmd_ep_end_transfer(dwc3_t* dwc, unsigned ep_num) argument
65 dwc3_cmd_ep_set_stall(dwc3_t* dwc, unsigned ep_num) argument
69 dwc3_cmd_ep_clear_stall(dwc3_t* dwc, unsigned ep_num) argument
[all...]
H A Ddwc3.h115 static inline volatile void* dwc3_mmio(dwc3_t* dwc) { argument
116 return dwc->mmio.vaddr;
119 void dwc3_usb_reset(dwc3_t* dwc);
120 void dwc3_disconnected(dwc3_t* dwc);
121 void dwc3_connection_done(dwc3_t* dwc);
122 void dwc3_set_address(dwc3_t* dwc, unsigned address);
123 void dwc3_reset_configuration(dwc3_t* dwc);
126 void dwc3_cmd_start_new_config(dwc3_t* dwc, unsigned ep_num, unsigned resource_index);
127 void dwc3_cmd_ep_set_config(dwc3_t* dwc, unsigned ep_num, unsigned ep_type,
129 void dwc3_cmd_ep_transfer_config(dwc3_t* dwc, unsigne
[all...]
H A Ddwc3-endpoints.c24 static void dwc3_enable_ep(dwc3_t* dwc, unsigned ep_num, bool enable) { argument
25 volatile void* reg = dwc3_mmio(dwc) + DALEPENA;
27 mtx_lock(&dwc->lock);
39 mtx_unlock(&dwc->lock);
42 zx_status_t dwc3_ep_fifo_init(dwc3_t* dwc, unsigned ep_num) { argument
43 ZX_DEBUG_ASSERT(ep_num < countof(dwc->eps));
44 dwc3_endpoint_t* ep = &dwc->eps[ep_num];
48 zx_status_t status = io_buffer_init(&fifo->buffer, dwc->bti_handle, EP_FIFO_SIZE,
71 void dwc3_ep_fifo_release(dwc3_t* dwc, unsigned ep_num) { argument
72 ZX_DEBUG_ASSERT(ep_num < countof(dwc
78 dwc3_ep_start_transfer(dwc3_t* dwc, unsigned ep_num, unsigned type, zx_paddr_t buffer, size_t length, bool send_zlp) argument
118 dwc3_ep_queue_next_locked(dwc3_t* dwc, dwc3_endpoint_t* ep) argument
143 dwc3_ep_config(dwc3_t* dwc, usb_endpoint_descriptor_t* ep_desc, usb_ss_ep_comp_descriptor_t* ss_comp_desc) argument
184 dwc3_ep_disable(dwc3_t* dwc, uint8_t ep_addr) argument
202 dwc3_ep_queue(dwc3_t* dwc, unsigned ep_num, usb_request_t* req) argument
231 dwc3_ep_set_config(dwc3_t* dwc, unsigned ep_num, bool enable) argument
245 dwc3_start_eps(dwc3_t* dwc) argument
274 dwc3_ep_xfer_started(dwc3_t* dwc, unsigned ep_num, unsigned rsrc_id) argument
281 dwc3_ep_xfer_not_ready(dwc3_t* dwc, unsigned ep_num, unsigned stage) argument
296 dwc3_ep_xfer_complete(dwc3_t* dwc, unsigned ep_num) argument
334 dwc3_ep_set_stall(dwc3_t* dwc, unsigned ep_num, bool stall) argument
357 dwc3_ep_end_transfers(dwc3_t* dwc, unsigned ep_num, zx_status_t reason) argument
[all...]
H A Ddwc3-events.c14 static void dwc3_handle_ep_event(dwc3_t* dwc, uint32_t event) { argument
21 dwc3_ep_xfer_complete(dwc, ep_num);
27 dwc3_ep_xfer_not_ready(dwc, ep_num, DEPEVT_XFER_NOT_READY_STAGE(event));
36 dwc3_ep_xfer_started(dwc, ep_num, rsrc_id);
46 static void dwc3_handle_event(dwc3_t* dwc, uint32_t event) { argument
49 dwc3_handle_ep_event(dwc, event);
62 dwc3_usb_reset(dwc);
66 dwc3_connection_done(dwc);
145 dwc3_disconnected(dwc);
178 dwc3_t* dwc local
216 dwc3_events_start(dwc3_t* dwc) argument
235 dwc3_events_stop(dwc3_t* dwc) argument
[all...]
/fuchsia/zircon/system/dev/usb/dwc2/
H A Ddwc2.c188 dwc_usb_t* dwc; member in struct:dwc_usb_scheduler_thread_ctx
192 static uint acquire_channel_blocking(dwc_usb_t* dwc);
193 static void release_channel(uint ch, dwc_usb_t* dwc);
287 dwc_usb_t* dwc) {
292 zxlogf(TRACE, "dwc-usb: complete request. id = %u, status = %d, "
307 mtx_lock(&dwc->free_req_mtx);
309 if (dwc->free_req_count >= FREE_REQ_CACHE_THRESHOLD) {
314 list_add_tail(&dwc->free_reqs, &req->node);
315 dwc->free_req_count++;
318 mtx_unlock(&dwc
283 complete_request( dwc_usb_transfer_request_t* req, zx_status_t status, size_t length, dwc_usb_t* dwc) argument
321 dwc_complete_root_port_status_req(dwc_usb_t* dwc) argument
415 dwc_usb_request_queue_rh(dwc_usb_t* dwc, dwc_usb_transfer_request_t* req) argument
428 dwc_usb_request_queue_hw(dwc_usb_t* dwc, dwc_usb_transfer_request_t* req) argument
476 get_free_request(dwc_usb_t* dwc) argument
501 do_dwc_usb_request_queue(dwc_usb_t* dwc, usb_request_t* usb_req) argument
547 dwc_usb_t* dwc = ctx; local
567 dwc_usb_t* dwc = ctx; local
588 dwc_usb_t* dwc = _ctx; local
646 dwc_usb_t* dwc = _ctx; local
793 dwc_handle_channel_irq(uint32_t channel, dwc_usb_t* dwc) argument
806 dwc_handle_irq(dwc_usb_t* dwc) argument
873 dwc_usb_t* dwc = (dwc_usb_t*)arg; local
900 dwc_root_hub_get_descriptor(dwc_usb_transfer_request_t* req, dwc_usb_t* dwc) argument
938 dwc_process_root_hub_std_req(dwc_usb_transfer_request_t* req, dwc_usb_t* dwc) argument
956 dwc_process_root_hub_class_req(dwc_usb_transfer_request_t* req, dwc_usb_t* dwc) argument
1022 dwc_process_root_hub_ctrl_req(dwc_usb_transfer_request_t* req, dwc_usb_t* dwc) argument
1036 dwc_process_root_hub_request(dwc_usb_t* dwc, dwc_usb_transfer_request_t* req) argument
1053 dwc_usb_t* dwc = (dwc_usb_t*)arg; local
1078 acquire_channel_blocking(dwc_usb_t* dwc) argument
1116 release_channel(uint ch, dwc_usb_t* dwc) argument
1159 dwc_await_channel_complete(uint32_t channel, dwc_usb_t* dwc) argument
1318 await_sof_if_necessary(uint channel, dwc_usb_transfer_request_t* req, dwc_usb_endpoint_t* ep, dwc_usb_t* dwc) argument
1356 handle_normal_channel_halted(uint channel, dwc_usb_transfer_request_t* req, dwc_usb_endpoint_t* ep, union dwc_host_channel_interrupts interrupts, dwc_usb_t* dwc) argument
1474 handle_channel_halted_interrupt(uint channel, dwc_usb_transfer_request_t* req, dwc_usb_endpoint_t* ep, union dwc_host_channel_interrupts interrupts, dwc_usb_t* dwc) argument
1586 dwc_usb_t* dwc = ctx->dwc; local
1681 create_default_device(dwc_usb_t* dwc) argument
[all...]
H A Drules.mk23 MODULE_HEADER_DEPS := third_party/ulib/usb-dwc-regs

Completed in 33 milliseconds