Home
last modified time | relevance | path

Searched refs:dwc (Results 1 – 25 of 30) sorted by relevance

12

/linux/drivers/usb/dwc3/
H A Dep0.c30 static void __dwc3_ep0_do_control_status(struct dwc3 *dwc, struct dwc3_ep *dep);
31 static void __dwc3_ep0_do_control_data(struct dwc3 *dwc,
33 static int dwc3_ep0_delegate_req(struct dwc3 *dwc,
40 struct dwc3 *dwc; in dwc3_ep0_prepare_one_trb() local
42 dwc = dep->dwc; in dwc3_ep0_prepare_one_trb()
43 trb = &dwc->ep0_trb[dep->trb_enqueue]; in dwc3_ep0_prepare_one_trb()
68 struct dwc3 *dwc; in dwc3_ep0_start_trans() local
74 dwc = dep->dwc; in dwc3_ep0_start_trans()
92 struct dwc3 *dwc = dep->dwc; __dwc3_gadget_ep0_queue() local
196 struct dwc3 *dwc = dep->dwc; dwc3_gadget_ep0_queue() local
229 dwc3_ep0_stall_and_restart(struct dwc3 * dwc) dwc3_ep0_stall_and_restart() argument
264 struct dwc3 *dwc = dep->dwc; __dwc3_gadget_ep0_set_halt() local
274 struct dwc3 *dwc = dep->dwc; dwc3_gadget_ep0_set_halt() local
289 dwc3_ep0_out_start(struct dwc3 * dwc) dwc3_ep0_out_start() argument
322 dwc3_wIndex_to_dep(struct dwc3 * dwc,__le16 wIndex_le) dwc3_wIndex_to_dep() argument
348 dwc3_ep0_handle_status(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl) dwc3_ep0_handle_status() argument
416 dwc3_ep0_handle_u1(struct dwc3 * dwc,enum usb_device_state state,int set) dwc3_ep0_handle_u1() argument
439 dwc3_ep0_handle_u2(struct dwc3 * dwc,enum usb_device_state state,int set) dwc3_ep0_handle_u2() argument
463 dwc3_ep0_handle_test(struct dwc3 * dwc,enum usb_device_state state,u32 wIndex,int set) dwc3_ep0_handle_test() argument
487 dwc3_ep0_handle_device(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl,int set) dwc3_ep0_handle_device() argument
529 dwc3_ep0_handle_intf(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl,int set) dwc3_ep0_handle_intf() argument
548 dwc3_ep0_handle_endpoint(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl,int set) dwc3_ep0_handle_endpoint() argument
582 dwc3_ep0_handle_feature(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl,int set) dwc3_ep0_handle_feature() argument
607 dwc3_ep0_set_address(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl) dwc3_ep0_set_address() argument
637 dwc3_ep0_delegate_req(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl) dwc3_ep0_delegate_req() argument
649 dwc3_ep0_set_config(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl) dwc3_ep0_set_config() argument
708 struct dwc3 *dwc = dep->dwc; dwc3_ep0_set_sel_cmpl() local
749 dwc3_ep0_set_sel(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl) dwc3_ep0_set_sel() argument
783 dwc3_ep0_set_isoch_delay(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl) dwc3_ep0_set_isoch_delay() argument
801 dwc3_ep0_std_request(struct dwc3 * dwc,struct usb_ctrlrequest * ctrl) dwc3_ep0_std_request() argument
835 dwc3_ep0_inspect_setup(struct dwc3 * dwc,const struct dwc3_event_depevt * event) dwc3_ep0_inspect_setup() argument
871 dwc3_ep0_complete_data(struct dwc3 * dwc,const struct dwc3_event_depevt * event) dwc3_ep0_complete_data() argument
929 dwc3_ep0_complete_status(struct dwc3 * dwc,const struct dwc3_event_depevt * event) dwc3_ep0_complete_status() argument
968 dwc3_ep0_xfer_complete(struct dwc3 * dwc,const struct dwc3_event_depevt * event) dwc3_ep0_xfer_complete() argument
994 __dwc3_ep0_do_control_data(struct dwc3 * dwc,struct dwc3_ep * dep,struct dwc3_request * req) __dwc3_ep0_do_control_data() argument
1083 struct dwc3 *dwc = dep->dwc; dwc3_ep0_start_control_status() local
1093 __dwc3_ep0_do_control_status(struct dwc3 * dwc,struct dwc3_ep * dep) __dwc3_ep0_do_control_status() argument
1103 dwc3_ep0_do_control_status(struct dwc3 * dwc,const struct dwc3_event_depevt * event) dwc3_ep0_do_control_status() argument
1111 dwc3_ep0_send_delayed_status(struct dwc3 * dwc) dwc3_ep0_send_delayed_status() argument
1124 dwc3_ep0_end_control_data(struct dwc3 * dwc,struct dwc3_ep * dep) dwc3_ep0_end_control_data() argument
1150 dwc3_ep0_xfernotready(struct dwc3 * dwc,const struct dwc3_event_depevt * event) dwc3_ep0_xfernotready() argument
1211 dwc3_ep0_interrupt(struct dwc3 * dwc,const struct dwc3_event_depevt * event) dwc3_ep0_interrupt() argument
[all...]
H A Dgadget.c35 * @dwc: pointer to our context structure
41 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode() argument
45 reg = dwc3_readl(dwc, DWC3_DCTL); in dwc3_gadget_set_test_mode()
60 dwc3_gadget_dctl_write_safe(dwc, reg); in dwc3_gadget_set_test_mode()
67 * @dwc: pointer to our context structure
72 int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state() argument
76 reg = dwc3_readl(dwc, DWC3_DSTS); in dwc3_gadget_get_link_state()
83 * @dwc: pointer to our context structure
89 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state) in dwc3_gadget_set_link_state() argument
100 reg = dwc3_readl(dwc, DWC3_DST in dwc3_gadget_set_link_state()
142 dwc3_ep0_reset_state(struct dwc3 * dwc) dwc3_ep0_reset_state() argument
196 struct dwc3 *dwc = dep->dwc; dwc3_gadget_del_and_unmap_request() local
229 struct dwc3 *dwc = dep->dwc; dwc3_gadget_giveback() local
255 dwc3_send_gadget_generic_command(struct dwc3 * dwc,unsigned int cmd,u32 param) dwc3_send_gadget_generic_command() argument
316 struct dwc3 *dwc = dep->dwc; dwc3_send_gadget_ep_cmd() local
461 struct dwc3 *dwc = dep->dwc; dwc3_send_clear_stall_ep_cmd() local
493 struct dwc3 *dwc = dep->dwc; dwc3_alloc_trb_pool() local
512 struct dwc3 *dwc = dep->dwc; dwc3_free_trb_pool() local
553 dwc3_gadget_start_config(struct dwc3 * dwc,unsigned int resource_index) dwc3_gadget_start_config() argument
589 struct dwc3 *dwc = dep->dwc; dwc3_gadget_set_ep_config() local
683 dwc3_gadget_calc_tx_fifo_size(struct dwc3 * dwc,int mult) dwc3_gadget_calc_tx_fifo_size() argument
705 dwc3_gadget_calc_ram_depth(struct dwc3 * dwc) dwc3_gadget_calc_ram_depth() argument
746 dwc3_gadget_clear_tx_fifos(struct dwc3 * dwc) dwc3_gadget_clear_tx_fifos() argument
805 struct dwc3 *dwc = dep->dwc; dwc3_gadget_resize_tx_fifos() local
920 struct dwc3 *dwc = dep->dwc; __dwc3_gadget_ep_enable() local
1031 dwc3_remove_requests(struct dwc3 * dwc,struct dwc3_ep * dep,int status) dwc3_remove_requests() argument
1073 struct dwc3 *dwc = dep->dwc; __dwc3_gadget_ep_disable() local
1129 struct dwc3 *dwc; dwc3_gadget_ep_enable() local
1165 struct dwc3 *dwc; dwc3_gadget_ep_disable() local
1290 struct dwc3 *dwc = dep->dwc; dwc3_prepare_one_trb() local
1635 struct dwc3 *dwc = dep->dwc; dwc3_prepare_trbs() local
1746 __dwc3_gadget_get_frame(struct dwc3 * dwc) __dwc3_gadget_get_frame() argument
1926 struct dwc3 *dwc = dep->dwc; __dwc3_gadget_start_isoc() local
1991 struct dwc3 *dwc = dep->dwc; __dwc3_gadget_ep_queue() local
2060 struct dwc3 *dwc = dep->dwc; dwc3_gadget_ep_queue() local
2109 struct dwc3 *dwc = dep->dwc; dwc3_gadget_ep_cleanup_cancelled_requests() local
2145 struct dwc3 *dwc = dep->dwc; dwc3_gadget_ep_dequeue() local
2209 struct dwc3 *dwc = dep->dwc; __dwc3_gadget_ep_set_halt() local
2296 struct dwc3 *dwc = dep->dwc; dwc3_gadget_ep_set_halt() local
2316 struct dwc3 *dwc = dep->dwc; dwc3_gadget_ep_set_wedge() local
2368 dwc3_gadget_enable_linksts_evts(struct dwc3 * dwc,bool set) dwc3_gadget_enable_linksts_evts() argument
2386 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_get_frame() local
2391 __dwc3_gadget_wakeup(struct dwc3 * dwc) __dwc3_gadget_wakeup() argument
2446 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_wakeup() local
2476 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_func_wakeup() local
2516 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_set_remote_wakeup() local
2529 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_set_selfpowered() local
2539 dwc3_stop_active_transfers(struct dwc3 * dwc) dwc3_stop_active_transfers() argument
2554 __dwc3_gadget_set_ssp_rate(struct dwc3 * dwc) __dwc3_gadget_set_ssp_rate() argument
2578 __dwc3_gadget_set_speed(struct dwc3 * dwc) __dwc3_gadget_set_speed() argument
2647 dwc3_gadget_run_stop(struct dwc3 * dwc,int is_on) dwc3_gadget_run_stop() argument
2727 dwc3_gadget_soft_disconnect(struct dwc3 * dwc) dwc3_gadget_soft_disconnect() argument
2801 dwc3_gadget_soft_connect(struct dwc3 * dwc) dwc3_gadget_soft_connect() argument
2822 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_pullup() local
2873 dwc3_gadget_enable_irq(struct dwc3 * dwc) dwc3_gadget_enable_irq() argument
2896 dwc3_gadget_disable_irq(struct dwc3 * dwc) dwc3_gadget_disable_irq() argument
2926 dwc3_gadget_setup_nump(struct dwc3 * dwc) dwc3_gadget_setup_nump() argument
2946 __dwc3_gadget_start(struct dwc3 * dwc) __dwc3_gadget_start() argument
3045 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_start() local
3069 __dwc3_gadget_stop(struct dwc3 * dwc) __dwc3_gadget_stop() argument
3078 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_stop() local
3097 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_config_params() local
3136 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_set_speed() local
3147 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_set_ssp_rate() local
3158 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_vbus_draw() local
3195 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_check_config() local
3230 struct dwc3 *dwc = gadget_to_dwc(g); dwc3_gadget_async_callbacks() local
3259 struct dwc3 *dwc = dep->dwc; dwc3_gadget_init_control_endpoint() local
3274 struct dwc3 *dwc = dep->dwc; dwc3_gadget_init_in_endpoint() local
3323 struct dwc3 *dwc = dep->dwc; dwc3_gadget_init_out_endpoint() local
3372 struct dwc3 *dwc = dep->dwc; dwc3_nostream_work() local
3412 dwc3_gadget_init_endpoint(struct dwc3 * dwc,u8 epnum) dwc3_gadget_init_endpoint() argument
3463 dwc3_gadget_get_reserved_endpoints(struct dwc3 * dwc,const char * propname,u8 * eps,u8 num) dwc3_gadget_get_reserved_endpoints() argument
3484 dwc3_gadget_init_endpoints(struct dwc3 * dwc,u8 total) dwc3_gadget_init_endpoints() argument
3519 dwc3_gadget_free_endpoints(struct dwc3 * dwc) dwc3_gadget_free_endpoints() argument
3718 struct dwc3 *dwc = dep->dwc; dwc3_gadget_ep_should_continue() local
3747 struct dwc3 *dwc = dep->dwc; dwc3_gadget_endpoint_trbs_complete() local
3880 struct dwc3 *dwc = dep->dwc; dwc3_gadget_endpoint_command_complete() local
3930 dwc3_endpoint_interrupt(struct dwc3 * dwc,const struct dwc3_event_depevt * event) dwc3_endpoint_interrupt() argument
3981 dwc3_prepare_disconnect_gadget(struct dwc3 * dwc,struct usb_gadget_driver ** driver,struct usb_gadget ** gadget) dwc3_prepare_disconnect_gadget() argument
3995 dwc3_disconnect_gadget(struct dwc3 * dwc) dwc3_disconnect_gadget() argument
4007 dwc3_disconnect_gadget_sleepable(struct dwc3 * dwc) dwc3_disconnect_gadget_sleepable() argument
4023 dwc3_suspend_gadget(struct dwc3 * dwc) dwc3_suspend_gadget() argument
4032 dwc3_resume_gadget(struct dwc3 * dwc) dwc3_resume_gadget() argument
4041 dwc3_reset_gadget(struct dwc3 * dwc) dwc3_reset_gadget() argument
4056 struct dwc3 *dwc = dep->dwc; dwc3_stop_active_transfer() local
4120 dwc3_clear_stall_all_ep(struct dwc3 * dwc) dwc3_clear_stall_all_ep() argument
4144 dwc3_gadget_disconnect_interrupt(struct dwc3 * dwc) dwc3_gadget_disconnect_interrupt() argument
4177 dwc3_gadget_reset_interrupt(struct dwc3 * dwc) dwc3_gadget_reset_interrupt() argument
4259 dwc3_gadget_conndone_interrupt(struct dwc3 * dwc) dwc3_gadget_conndone_interrupt() argument
4405 dwc3_gadget_wakeup_interrupt(struct dwc3 * dwc,unsigned int evtinfo) dwc3_gadget_wakeup_interrupt() argument
4423 dwc3_gadget_linksts_change_interrupt(struct dwc3 * dwc,unsigned int evtinfo) dwc3_gadget_linksts_change_interrupt() argument
4542 dwc3_gadget_suspend_interrupt(struct dwc3 * dwc,unsigned int evtinfo) dwc3_gadget_suspend_interrupt() argument
4555 dwc3_gadget_interrupt(struct dwc3 * dwc,const struct dwc3_event_devt * event) dwc3_gadget_interrupt() argument
4592 dwc3_process_event_entry(struct dwc3 * dwc,const union dwc3_event * event) dwc3_process_event_entry() argument
4607 struct dwc3 *dwc = evt->dwc; dwc3_process_event_buf() local
4661 struct dwc3 *dwc = evt->dwc; dwc3_thread_interrupt() local
4674 dwc3_schedule_err_recovery(struct dwc3 * dwc) dwc3_schedule_err_recovery() argument
4682 struct dwc3 *dwc = evt->dwc; dwc3_check_event_buf() local
4755 dwc3_gadget_get_irq(struct dwc3 * dwc) dwc3_gadget_get_irq() argument
4789 struct dwc3 *dwc = container_of(work, struct dwc3, err_recovery_work); dwc3_err_recovery_work() local
4844 dwc3_gadget_init(struct dwc3 * dwc) dwc3_gadget_init() argument
4974 dwc3_gadget_exit(struct dwc3 * dwc) dwc3_gadget_exit() argument
4993 dwc3_gadget_suspend(struct dwc3 * dwc) dwc3_gadget_suspend() argument
5013 dwc3_gadget_resume(struct dwc3 * dwc) dwc3_gadget_resume() argument
[all...]
H A Ddebugfs.c283 struct dwc3 *dwc = s->private; in dwc3_host_lsp() local
289 dbc_enabled = !!(dwc->hwparams.hwparams1 & DWC3_GHWPARAMS1_ENDBC); in dwc3_host_lsp()
291 sel = dwc->dbg_lsp_select; in dwc3_host_lsp()
299 dwc3_writel(dwc, DWC3_GDBGLSPMUX, reg); in dwc3_host_lsp()
300 val = dwc3_readl(dwc, DWC3_GDBGLSP); in dwc3_host_lsp()
305 dwc3_writel(dwc, DWC3_GDBGLSPMUX, reg); in dwc3_host_lsp()
306 val = dwc3_readl(dwc, DWC3_GDBGLSP); in dwc3_host_lsp()
313 struct dwc3 *dwc = s->private; in dwc3_gadget_lsp() local
319 dwc3_writel(dwc, DWC3_GDBGLSPMUX, reg); in dwc3_gadget_lsp()
320 reg = dwc3_readl(dwc, DWC3_GDBGLS in dwc3_gadget_lsp()
327 struct dwc3 *dwc = s->private; dwc3_lsp_show() local
368 struct dwc3 *dwc = s->private; dwc3_lsp_write() local
398 struct dwc3 *dwc = s->private; dwc3_mode_show() local
437 struct dwc3 *dwc = s->private; dwc3_mode_write() local
471 struct dwc3 *dwc = s->private; dwc3_testmode_show() local
523 struct dwc3 *dwc = s->private; dwc3_testmode_write() local
568 struct dwc3 *dwc = s->private; dwc3_link_state_show() local
611 struct dwc3 *dwc = s->private; dwc3_link_state_write() local
683 struct dwc3 *dwc = dep->dwc; dwc3_tx_fifo_size_show() local
712 struct dwc3 *dwc = dep->dwc; dwc3_rx_fifo_size_show() local
741 struct dwc3 *dwc = dep->dwc; dwc3_tx_request_queue_show() local
763 struct dwc3 *dwc = dep->dwc; dwc3_rx_request_queue_show() local
785 struct dwc3 *dwc = dep->dwc; dwc3_rx_info_queue_show() local
807 struct dwc3 *dwc = dep->dwc; dwc3_descriptor_fetch_queue_show() local
829 struct dwc3 *dwc = dep->dwc; dwc3_event_queue_show() local
851 struct dwc3 *dwc = dep->dwc; dwc3_transfer_type_show() local
886 struct dwc3 *dwc = dep->dwc; dwc3_trb_ring_show() local
931 struct dwc3 *dwc = dep->dwc; dwc3_ep_info_register_show() local
1002 dwc3_debugfs_init(struct dwc3 * dwc) dwc3_debugfs_init() argument
1035 dwc3_debugfs_exit(struct dwc3 * dwc) dwc3_debugfs_exit() argument
[all...]
H A Ddwc3-pci.c226 static int dwc3_pci_quirks(struct dwc3_pci *dwc, in dwc3_pci_quirks() argument
229 struct pci_dev *pdev = dwc->pci; in dwc3_pci_quirks()
235 guid_parse(PCI_INTEL_BXT_DSM_GUID, &dwc->guid); in dwc3_pci_quirks()
236 dwc->has_dsm_for_pm = true; in dwc3_pci_quirks()
290 dwc->dwc3->id = PLATFORM_DEVID_NONE; in dwc3_pci_quirks()
311 return device_add_software_node(&dwc->dwc3->dev, swnode); in dwc3_pci_quirks()
317 struct dwc3_pci *dwc = container_of(work, struct dwc3_pci, wakeup_work); in dwc3_pci_resume_work() local
318 struct platform_device *dwc3 = dwc->dwc3; in dwc3_pci_resume_work()
333 struct dwc3_pci *dwc; in dwc3_pci_probe() local
346 dwc in dwc3_pci_probe()
401 struct dwc3_pci *dwc = pci_get_drvdata(pci); dwc3_pci_remove() local
465 dwc3_pci_dsm(struct dwc3_pci * dwc,int param) dwc3_pci_dsm() argument
493 struct dwc3_pci *dwc = dev_get_drvdata(dev); dwc3_pci_runtime_suspend() local
503 struct dwc3_pci *dwc = dev_get_drvdata(dev); dwc3_pci_runtime_resume() local
519 struct dwc3_pci *dwc = dev_get_drvdata(dev); dwc3_pci_suspend() local
526 struct dwc3_pci *dwc = dev_get_drvdata(dev); dwc3_pci_resume() local
[all...]
H A Ddwc3-haps.c43 struct dwc3_haps *dwc; in dwc3_haps_probe() local
56 dwc = devm_kzalloc_obj(dev, *dwc); in dwc3_haps_probe()
57 if (!dwc) in dwc3_haps_probe()
60 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_haps_probe()
61 if (!dwc->dwc3) in dwc3_haps_probe()
75 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res)); in dwc3_haps_probe()
81 dwc->pci = pci; in dwc3_haps_probe()
82 dwc->dwc3->dev.parent = dev; in dwc3_haps_probe()
84 ret = device_add_software_node(&dwc in dwc3_haps_probe()
105 struct dwc3_haps *dwc = pci_get_drvdata(pci); dwc3_haps_remove() local
[all...]
H A Dcore.h694 * @dwc: pointer to DWC controller
708 struct dwc3 *dwc; member
730 * @dwc: pointer to DWC controller
755 struct dwc3 *dwc; member
1008 void (*pre_set_role)(struct dwc3 *dwc, enum usb_role role);
1009 void (*pre_run_stop)(struct dwc3 *dwc, bool is_on);
1616 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode, bool ignore_susphy);
1617 void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
1621 (dwc->ip == _ip##_IP)
1624 (DWC3_IP_IS(_ip) && dwc
1646 dwc3_mdwidth(struct dwc3 * dwc) dwc3_mdwidth() argument
1665 dwc3_pre_set_role(struct dwc3 * dwc,enum usb_role role) dwc3_pre_set_role() argument
1671 dwc3_pre_run_stop(struct dwc3 * dwc,bool is_on) dwc3_pre_run_stop() argument
1681 dwc3_host_init(struct dwc3 * dwc) dwc3_host_init() argument
1683 dwc3_host_exit(struct dwc3 * dwc) dwc3_host_exit() argument
1700 dwc3_gadget_init(struct dwc3 * dwc) dwc3_gadget_init() argument
1702 dwc3_gadget_exit(struct dwc3 * dwc) dwc3_gadget_exit() argument
1704 dwc3_gadget_set_test_mode(struct dwc3 * dwc,int mode) dwc3_gadget_set_test_mode() argument
1706 dwc3_gadget_get_link_state(struct dwc3 * dwc) dwc3_gadget_get_link_state() argument
1708 dwc3_gadget_set_link_state(struct dwc3 * dwc,enum dwc3_link_state state) dwc3_gadget_set_link_state() argument
1715 dwc3_send_gadget_generic_command(struct dwc3 * dwc,int cmd,u32 param) dwc3_send_gadget_generic_command() argument
1718 dwc3_gadget_clear_tx_fifos(struct dwc3 * dwc) dwc3_gadget_clear_tx_fifos() argument
1730 dwc3_drd_init(struct dwc3 * dwc) dwc3_drd_init() argument
1732 dwc3_drd_exit(struct dwc3 * dwc) dwc3_drd_exit() argument
1734 dwc3_otg_init(struct dwc3 * dwc) dwc3_otg_init() argument
1736 dwc3_otg_exit(struct dwc3 * dwc) dwc3_otg_exit() argument
1738 dwc3_otg_update(struct dwc3 * dwc,bool ignore_idstatus) dwc3_otg_update() argument
1740 dwc3_otg_host_init(struct dwc3 * dwc) dwc3_otg_host_init() argument
1749 dwc3_gadget_suspend(struct dwc3 * dwc) dwc3_gadget_suspend() argument
1754 dwc3_gadget_resume(struct dwc3 * dwc) dwc3_gadget_resume() argument
1765 dwc3_ulpi_init(struct dwc3 * dwc) dwc3_ulpi_init() argument
1767 dwc3_ulpi_exit(struct dwc3 * dwc) dwc3_ulpi_exit() argument
[all...]
H A Ddwc3-apple.c80 * @dwc: Core DWC3 structure
90 struct dwc3 dwc; member
104 #define to_dwc3_apple(d) container_of((d), struct dwc3_apple, dwc)
167 guard(spinlock_irqsave)(&appledwc->dwc.lock); in dwc3_apple_set_ptrcap()
168 dwc3_set_prtcap(&appledwc->dwc, mode, false); in dwc3_apple_set_ptrcap()
179 appledwc->dwc.dev = appledwc->dev; in dwc3_apple_core_probe()
180 probe_data.dwc = &appledwc->dwc; in dwc3_apple_core_probe()
207 ret = dwc3_core_init(&appledwc->dwc); in dwc3_apple_core_init()
236 phy_set_mode(appledwc->dwc in dwc3_apple_init()
487 struct dwc3 *dwc = platform_get_drvdata(pdev); dwc3_apple_remove() local
[all...]
H A Ddwc3-google.c55 struct dwc3 dwc; member
75 #define to_dwc3_google(d) container_of_const((d), struct dwc3_google, dwc)
204 struct dwc3 *dwc = &google->dwc; in dwc3_google_resume_irq() local
208 dr_role = dwc->current_dr_role; in dwc3_google_resume_irq()
217 if (dwc->xhci) in dwc3_google_resume_irq()
218 pm_runtime_resume(&dwc->xhci->dev); in dwc3_google_resume_irq()
294 * Establish PM RUNTIME link between dwc dev and its power domain usb_psw_pd, in dwc3_google_pm_domain_init()
439 google->dwc.dev = dev; in dwc3_google_probe()
440 probe_data.dwc in dwc3_google_probe()
465 struct dwc3 *dwc = platform_get_drvdata(pdev); dwc3_google_remove() local
532 struct dwc3 *dwc = dev_get_drvdata(dev); dwc3_google_pm_suspend() local
545 struct dwc3 *dwc = dev_get_drvdata(dev); dwc3_google_pm_resume() local
558 struct dwc3 *dwc = dev_get_drvdata(dev); dwc3_google_complete() local
565 struct dwc3 *dwc = dev_get_drvdata(dev); dwc3_google_prepare() local
572 struct dwc3 *dwc = dev_get_drvdata(dev); dwc3_google_runtime_suspend() local
585 struct dwc3 *dwc = dev_get_drvdata(dev); dwc3_google_runtime_resume() local
[all...]
H A Ddwc3-imx8mp.c145 struct dwc3 *dwc = platform_get_drvdata(dwc3_imx->dwc3_pdev); in dwc3_imx8mp_interrupt() local
153 if ((dwc->current_dr_role == DWC3_GCTL_PRTCAP_HOST) && dwc->xhci) in dwc3_imx8mp_interrupt()
154 pm_runtime_resume(&dwc->xhci->dev); in dwc3_imx8mp_interrupt()
155 else if (dwc->current_dr_role == DWC3_GCTL_PRTCAP_DEVICE) in dwc3_imx8mp_interrupt()
156 pm_runtime_get(dwc->dev); in dwc3_imx8mp_interrupt()
161 static void dwc3_imx_pre_set_role(struct dwc3 *dwc, enum usb_role role) in dwc3_imx_pre_set_role() argument
165 * For xhci host, we need disable dwc core auto in dwc3_imx_pre_set_role()
171 pm_runtime_dont_use_autosuspend(dwc->dev); in dwc3_imx_pre_set_role()
173 pm_runtime_use_autosuspend(dwc in dwc3_imx_pre_set_role()
330 struct dwc3 *dwc = platform_get_drvdata(dwc3_imx->dwc3_pdev); dwc3_imx8mp_resume() local
[all...]
H A Ddwc3-qcom-legacy.c306 struct dwc3 *dwc; in dwc3_qcom_is_host() local
311 dwc = platform_get_drvdata(qcom->dwc3); in dwc3_qcom_is_host()
314 if (!dwc) in dwc3_qcom_is_host()
317 return dwc->xhci; in dwc3_qcom_is_host()
322 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); in dwc3_qcom_read_usb2_speed() local
329 hcd = platform_get_drvdata(dwc->xhci); in dwc3_qcom_read_usb2_speed()
501 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); in qcom_dwc3_resume_irq() local
512 pm_runtime_resume(&dwc->xhci->dev); in qcom_dwc3_resume_irq()
/linux/drivers/dma/dw/
H A Dcore.c44 static struct dw_desc *dwc_first_active(struct dw_dma_chan *dwc) in chan2dev()
46 return to_dw_desc(dwc->active_list.next); in chan2dev()
52 struct dw_dma_chan *dwc = to_dw_dma_chan(tx->chan); in dwc_first_active()
56 spin_lock_irqsave(&dwc->lock, flags); in dwc_tx_submit()
65 list_add_tail(&desc->desc_node, &dwc->queue); in dwc_tx_submit()
66 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_tx_submit()
73 static struct dw_desc *dwc_desc_get(struct dw_dma_chan *dwc) in dwc_tx_submit()
75 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_tx_submit()
83 dwc->descs_allocated++; in dwc_desc_get()
85 dma_async_tx_descriptor_init(&desc->txd, &dwc in dwc_desc_get()
49 dwc_first_active(struct dw_dma_chan * dwc) dwc_first_active() argument
57 struct dw_dma_chan *dwc = to_dw_dma_chan(tx->chan); dwc_tx_submit() local
78 dwc_desc_get(struct dw_dma_chan * dwc) dwc_desc_get() argument
97 dwc_desc_put(struct dw_dma_chan * dwc,struct dw_desc * desc) dwc_desc_put() argument
115 dwc_initialize(struct dw_dma_chan * dwc) dwc_initialize() argument
128 dwc_dump_chan_regs(struct dw_dma_chan * dwc) dwc_dump_chan_regs() argument
139 dwc_chan_disable(struct dw_dma * dw,struct dw_dma_chan * dwc) dwc_chan_disable() argument
149 dwc_do_single_block(struct dw_dma_chan * dwc,struct dw_desc * desc) dwc_do_single_block() argument
172 dwc_dostart(struct dw_dma_chan * dwc,struct dw_desc * first) dwc_dostart() argument
217 dwc_dostart_first_queued(struct dw_dma_chan * dwc) dwc_dostart_first_queued() argument
233 dwc_descriptor_complete(struct dw_dma_chan * dwc,struct dw_desc * desc,bool callback_required) dwc_descriptor_complete() argument
260 dwc_complete_all(struct dw_dma * dw,struct dw_dma_chan * dwc) dwc_complete_all() argument
289 dwc_get_sent(struct dw_dma_chan * dwc) dwc_get_sent() argument
298 dwc_scan_descriptors(struct dw_dma * dw,struct dw_dma_chan * dwc) dwc_scan_descriptors() argument
411 dwc_dump_lli(struct dw_dma_chan * dwc,struct dw_desc * desc) dwc_dump_lli() argument
421 dwc_handle_error(struct dw_dma * dw,struct dw_dma_chan * dwc) dwc_handle_error() argument
467 struct dw_dma_chan *dwc; dw_dma_tasklet() local
541 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_prep_dma_memcpy() local
619 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_prep_slave_sg() local
765 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dw_dma_filter() local
784 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_verify_maxburst() local
801 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_verify_p_buswidth() local
833 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_verify_m_buswidth() local
868 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_config() local
888 dwc_chan_pause(struct dw_dma_chan * dwc,bool drain) dwc_chan_pause() argument
903 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_pause() local
913 dwc_chan_resume(struct dw_dma_chan * dwc,bool drain) dwc_chan_resume() argument
924 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_resume() local
939 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_terminate_all() local
968 dwc_find_desc(struct dw_dma_chan * dwc,dma_cookie_t c) dwc_find_desc() argument
979 dwc_get_residue_and_status(struct dw_dma_chan * dwc,dma_cookie_t cookie,enum dma_status * status) dwc_get_residue_and_status() argument
1012 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_tx_status() local
1031 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_issue_pending() local
1063 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_alloc_chan_resources() local
1100 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_free_chan_resources() local
1134 struct dw_dma_chan *dwc = to_dw_dma_chan(chan); dwc_caps() local
1237 struct dw_dma_chan *dwc = &dw->chan[i]; do_dma_probe() local
1365 struct dw_dma_chan *dwc, *_dwc; do_dma_remove() local
[all...]
H A Didma32.c36 static unsigned int idma32_get_slave_devfn(struct dw_dma_chan *dwc) in idma32_get_slave_devfn() argument
38 struct device *slave = dwc->chan.slave; in idma32_get_slave_devfn()
46 static void idma32_initialize_chan_xbar(struct dw_dma_chan *dwc) in idma32_initialize_chan_xbar() argument
48 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in idma32_initialize_chan_xbar()
58 value |= dwc->chan.chan_id; in idma32_initialize_chan_xbar()
63 value = readl(misc + DMA_CTL_CH(dwc->chan.chan_id)); in idma32_initialize_chan_xbar()
69 switch (dwc->direction) { in idma32_initialize_chan_xbar()
88 writel(value, misc + DMA_CTL_CH(dwc->chan.chan_id)); in idma32_initialize_chan_xbar()
91 value = readl(misc + DMA_XBAR_SEL(dwc->chan.chan_id)); in idma32_initialize_chan_xbar()
95 value |= idma32_get_slave_devfn(dwc); in idma32_initialize_chan_xbar()
141 idma32_initialize_chan_generic(struct dw_dma_chan * dwc) idma32_initialize_chan_generic() argument
161 idma32_suspend_chan(struct dw_dma_chan * dwc,bool drain) idma32_suspend_chan() argument
171 idma32_resume_chan(struct dw_dma_chan * dwc,bool drain) idma32_resume_chan() argument
181 idma32_bytes2block(struct dw_dma_chan * dwc,size_t bytes,unsigned int width,size_t * len) idma32_bytes2block() argument
197 idma32_block2bytes(struct dw_dma_chan * dwc,u32 block,u32 width) idma32_block2bytes() argument
207 idma32_prepare_ctllo(struct dw_dma_chan * dwc) idma32_prepare_ctllo() argument
[all...]
H A Ddw.c15 static void dw_dma_initialize_chan(struct dw_dma_chan *dwc) in dw_dma_initialize_chan()
17 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dw_dma_initialize_chan()
18 u32 cfghi = is_slave_direction(dwc->direction) ? 0 : DWC_CFGH_FIFO_MODE; in dw_dma_initialize_chan()
19 u32 cfglo = DWC_CFGL_CH_PRIOR(dwc->priority); in dw_dma_initialize_chan()
20 bool hs_polarity = dwc->dws.hs_polarity; in dw_dma_initialize_chan()
22 cfghi |= DWC_CFGH_DST_PER(dwc->dws.dst_id); in dw_dma_initialize_chan()
23 cfghi |= DWC_CFGH_SRC_PER(dwc->dws.src_id); in dw_dma_initialize_chan()
29 channel_writel(dwc, CFG_LO, cfglo); in dw_dma_initialize_chan()
30 channel_writel(dwc, CFG_HI, cfghi); in dw_dma_initialize_chan()
33 static void dw_dma_suspend_chan(struct dw_dma_chan *dwc, boo in dw_dma_suspend_chan()
14 dw_dma_initialize_chan(struct dw_dma_chan * dwc) dw_dma_initialize_chan() argument
32 dw_dma_suspend_chan(struct dw_dma_chan * dwc,bool drain) dw_dma_suspend_chan() argument
39 dw_dma_resume_chan(struct dw_dma_chan * dwc,bool drain) dw_dma_resume_chan() argument
46 dw_dma_bytes2block(struct dw_dma_chan * dwc,size_t bytes,unsigned int width,size_t * len) dw_dma_bytes2block() argument
62 dw_dma_block2bytes(struct dw_dma_chan * dwc,u32 block,u32 width) dw_dma_block2bytes() argument
76 dw_dma_prepare_ctllo(struct dw_dma_chan * dwc) dw_dma_prepare_ctllo() argument
[all...]
H A Dregs.h298 __dwc_regs(struct dw_dma_chan *dwc) in __dwc_regs() argument
300 return dwc->ch_regs; in __dwc_regs()
303 #define channel_readl(dwc, name) \ argument
304 readl(&(__dwc_regs(dwc)->name))
305 #define channel_writel(dwc, name, val) \ argument
306 writel((val), &(__dwc_regs(dwc)->name))
326 void (*initialize_chan)(struct dw_dma_chan *dwc);
327 void (*suspend_chan)(struct dw_dma_chan *dwc, bool drain);
328 void (*resume_chan)(struct dw_dma_chan *dwc, bool drain);
329 u32 (*prepare_ctllo)(struct dw_dma_chan *dwc);
[all …]
/linux/drivers/pwm/
H A Dpwm-dwc-core.c24 static void __dwc_pwm_set_enable(struct dwc_pwm *dwc, int pwm, int enabled) in __dwc_pwm_set_enable() argument
28 reg = dwc_pwm_readl(dwc, DWC_TIM_CTRL(pwm)); in __dwc_pwm_set_enable()
35 dwc_pwm_writel(dwc, reg, DWC_TIM_CTRL(pwm)); in __dwc_pwm_set_enable()
38 static int __dwc_pwm_configure_timer(struct dwc_pwm *dwc, in __dwc_pwm_configure_timer() argument
52 tmp = DIV_ROUND_CLOSEST_ULL(state->duty_cycle, dwc->clk_ns); in __dwc_pwm_configure_timer()
58 dwc->clk_ns); in __dwc_pwm_configure_timer()
70 __dwc_pwm_set_enable(dwc, pwm->hwpwm, false); in __dwc_pwm_configure_timer()
78 dwc_pwm_writel(dwc, low, DWC_TIM_LD_CNT(pwm->hwpwm)); in __dwc_pwm_configure_timer()
79 dwc_pwm_writel(dwc, high, DWC_TIM_LD_CNT2(pwm->hwpwm)); in __dwc_pwm_configure_timer()
88 dwc_pwm_writel(dwc, ctrl, DWC_TIM_CTRL(pwm->hwpwm)); in __dwc_pwm_configure_timer()
[all …]
H A Dpwm-dwc.h64 static inline u32 dwc_pwm_readl(struct dwc_pwm *dwc, u32 offset) in dwc_pwm_readl() argument
66 return readl(dwc->base + offset); in dwc_pwm_readl()
69 static inline void dwc_pwm_writel(struct dwc_pwm *dwc, u32 value, u32 offset) in dwc_pwm_writel() argument
71 writel(value, dwc->base + offset); in dwc_pwm_writel()
/linux/drivers/net/ethernet/synopsys/
H A DMakefile6 obj-$(CONFIG_DWC_XLGMAC) += dwc-xlgmac.o
7 dwc-xlgmac-objs := dwc-xlgmac-net.o dwc-xlgmac-desc.o \
8 dwc-xlgmac-hw.o dwc-xlgmac-common.o \
9 dwc-xlgmac-ethtool.o
11 dwc-xlgmac-$(CONFIG_DWC_XLGMAC_PCI) += dwc-xlgmac-pci.o
H A DKconfig26 Ethernet (dwc-xlgmac).
34 This selects the pci bus support for the dwc-xlgmac driver.
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-eic7700.c73 struct eic7700_qos_priv *dwc = (struct eic7700_qos_priv *)priv; in eic7700_clks_config() local
74 struct plat_stmmacenet_data *plat = dwc->plat_dat; in eic7700_clks_config()
87 struct eic7700_qos_priv *dwc = priv; in eic7700_dwmac_init() local
90 ret = eic7700_clks_config(dwc, true); in eic7700_dwmac_init()
94 ret = regmap_set_bits(dwc->eic7700_hsp_regmap, in eic7700_dwmac_init()
95 dwc->eth_phy_ctrl_offset, in eic7700_dwmac_init()
99 eic7700_clks_config(dwc, false); in eic7700_dwmac_init()
103 regmap_write(dwc->eic7700_hsp_regmap, dwc->eth_axi_lp_ctrl_offset, in eic7700_dwmac_init()
106 if (dwc in eic7700_dwmac_init()
117 struct eic7700_qos_priv *dwc = priv; eic7700_dwmac_exit() local
148 struct eic7700_qos_priv *dwc = (struct eic7700_qos_priv *)priv; eic7700_dwmac_fix_speed() local
[all...]
/linux/drivers/ufs/host/
H A DMakefile5 obj-$(CONFIG_SCSI_UFS_DWC_TC_PCI) += tc-dwc-g210-pci.o ufshcd-dwc.o tc-dwc-g210.o
6 obj-$(CONFIG_SCSI_UFS_DWC_TC_PLATFORM) += tc-dwc-g210-pltfrm.o ufshcd-dwc.o tc-dwc-g210.o
18 obj-$(CONFIG_SCSI_UFS_AMD_VERSAL2) += ufs-amd-versal2.o ufshcd-dwc.o
/linux/Documentation/devicetree/bindings/net/
H A Dsnps,dwc-qos-ethernet.txt14 - "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10"
16 - "nvidia,tegra186-eqos", "snps,dwc-qos-ethernet-4.10"
18 - "snps,dwc-qos-ethernet-4.10"
20 "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10". It is supported to be
72 - "nvidia,tegra186-eqos", "snps,dwc-qos-ethernet-4.10":
78 - "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10":
83 - "snps,dwc-qos-ethernet-4.10" (deprecated):
97 - "nvidia,tegra186-eqos", "snps,dwc-qos-ethernet-4.10":
99 - "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10":
101 - "snps,dwc-qos-ethernet-4.10" (deprecated):
[all …]
/linux/sound/soc/dwc/
H A DMakefile5 designware_i2s-y := dwc-i2s.o
6 designware_i2s-$(CONFIG_SND_DESIGNWARE_PCM) += dwc-pcm.o
/linux/drivers/media/pci/intel/ipu6/
H A DMakefile26 ipu6-isys-dwc-phy.o \
/linux/sound/soc/
H A DMakefile54 obj-$(CONFIG_SND_SOC) += dwc/
/linux/Documentation/usb/
H A Ddwc3.rst18 - dwc core implements a demultiplexing irq chip for interrupts per

12