| /linux/drivers/usb/dwc2/ |
| A D | core_intr.c | 124 dev_dbg(hsotg->dev, in dwc2_handle_otg_intr() 159 dev_dbg(hsotg->dev, in dwc2_handle_otg_intr() 232 dev_dbg(hsotg->dev, in dwc2_handle_otg_intr() 237 hsotg->op_state); in dwc2_handle_otg_intr() 255 dev_dbg(hsotg->dev, in dwc2_handle_otg_intr() 292 if (hsotg->wq_otg) in dwc2_handle_conn_id_status_change_intr() 293 queue_work(hsotg->wq_otg, &hsotg->wf_otg); in dwc2_handle_conn_id_status_change_intr() 316 hsotg->lx_state); in dwc2_handle_session_req_intr() 415 dev_dbg(hsotg->dev, "%s lxstate = %d\n", __func__, hsotg->lx_state); in dwc2_handle_wakeup_detected_intr() 845 hsotg->frame_number = (dwc2_readl(hsotg, DSTS) in dwc2_handle_common_intr() [all …]
|
| A D | core.c | 74 gr = &hsotg->gr_backup; in dwc2_backup_global_registers() 106 gr = &hsotg->gr_backup; in dwc2_restore_global_registers() 142 gr = &hsotg->gr_backup; in dwc2_exit_partial_power_down() 184 gr = &hsotg->gr_backup; in dwc2_restore_essential_regs() 185 dr = &hsotg->dr_backup; in dwc2_restore_essential_regs() 186 hr = &hsotg->hr_backup; in dwc2_restore_essential_regs() 297 dev_dbg(hsotg->dev, in dwc2_hib_restore_common() 603 switch (hsotg->dr_mode) { in dwc2_force_dr_mode() 655 addr = hsotg->regs + HCFG; in dwc2_dump_host_registers() 1029 dev_err(hsotg->dev, in dwc2_fs_phy_init() [all …]
|
| A D | platform.c | 86 hsotg->dr_mode = usb_get_dr_mode(hsotg->dev); in dwc2_get_dr_mode() 154 } else if (hsotg->plat && hsotg->plat->phy_init) { in __dwc2_lowlevel_hw_enable() 155 ret = hsotg->plat->phy_init(pdev, hsotg->plat->phy_type); in __dwc2_lowlevel_hw_enable() 188 } else if (hsotg->plat && hsotg->plat->phy_exit) { in __dwc2_lowlevel_hw_disable() 246 hsotg->phy = devm_phy_get(hsotg->dev, "usb2-phy"); in dwc2_lowlevel_hw_init() 281 hsotg->plat = dev_get_platdata(hsotg->dev); in dwc2_lowlevel_hw_init() 284 hsotg->clk = devm_clk_get_optional(hsotg->dev, "otg"); in dwc2_lowlevel_hw_init() 460 if (!hsotg) in dwc2_driver_probe() 495 retval = devm_request_irq(hsotg->dev, hsotg->irq, in dwc2_driver_probe() 497 dev_name(hsotg->dev), hsotg); in dwc2_driver_probe() [all …]
|
| A D | hcd.c | 92 if (dwc2_is_device_mode(hsotg) && hsotg->params.lpm) in dwc2_enable_common_interrupts() 809 if ((hsotg->params.g_dma && !hsotg->params.g_dma_desc) || in dwc2_hc_halt() 1688 queue_delayed_work(hsotg->wq_otg, &hsotg->start_work, in dwc2_hcd_start() 2075 dev_dbg(hsotg->dev, "%s(%p)\n", __func__, hsotg); in dwc2_core_init() 2162 dev_dbg(hsotg->dev, "%s(%p)\n", __func__, hsotg); in dwc2_core_host_init() 3211 if (hsotg->in_ppd && hsotg->lx_state == DWC2_L2) in dwc2_conn_id_status_change() 4224 dev_dbg(hsotg->dev, "%s() %p\n", __func__, hsotg); in dwc2_hcd_start_func() 4971 queue_work(hsotg->wq_otg, &hsotg->wf_otg); in dwc2_change_bus_speed() 5058 dwc2_qh_list_free(hsotg, &hsotg->periodic_sched_ready); in dwc2_hcd_free() 5060 dwc2_qh_list_free(hsotg, &hsotg->periodic_sched_queued); in dwc2_hcd_free() [all …]
|
| A D | gadget.c | 324 dwc2_writel(hsotg, (hsotg->params.g_rx_fifo_size << in dwc2_hsotg_init_fifo() 3325 kill_all_requests(hsotg, hsotg->eps_in[ep], in dwc2_hsotg_disconnect() 3328 kill_all_requests(hsotg, hsotg->eps_out[ep], in dwc2_hsotg_disconnect() 3490 dwc2_writel(hsotg, ((hsotg->dedicated_fifos && !using_dma(hsotg)) ? in dwc2_hsotg_core_init_disconnected() 4873 hsotg->eps_in[0] = devm_kzalloc(hsotg->dev, in dwc2_hsotg_hw_cfg() 4879 hsotg->eps_out[0] = hsotg->eps_in[0]; in dwc2_hsotg_hw_cfg() 4886 hsotg->eps_in[i] = devm_kzalloc(hsotg->dev, in dwc2_hsotg_hw_cfg() 4893 hsotg->eps_out[i] = devm_kzalloc(hsotg->dev, in dwc2_hsotg_hw_cfg() 4997 hsotg->ctrl_buff = devm_kzalloc(hsotg->dev, in dwc2_gadget_init() 5002 hsotg->ep0_buff = devm_kzalloc(hsotg->dev, in dwc2_gadget_init() [all …]
|
| A D | hcd_intr.c | 75 hsotg->frame_num_array[hsotg->frame_num_idx] = in dwc2_track_missed_sofs() 77 hsotg->last_frame_num_array[hsotg->frame_num_idx] = in dwc2_track_missed_sofs() 153 hsotg->frame_number = dwc2_hcd_get_frame_number(hsotg); in dwc2_sof_intr() 232 dev_err(hsotg->dev, in dwc2_rx_fifo_level_intr() 274 dev_vdbg(hsotg->dev, "%s(%p)\n", __func__, hsotg); in dwc2_hprt0_enable() 342 queue_delayed_work(hsotg->wq_otg, &hsotg->reset_work, in dwc2_hprt0_enable() 379 dev_vdbg(hsotg->dev, in dwc2_port_intr() 396 dev_vdbg(hsotg->dev, in dwc2_port_intr() 420 dev_vdbg(hsotg->dev, in dwc2_port_intr() 1658 dev_dbg(hsotg->dev, in dwc2_hc_xacterr_intr() [all …]
|
| A D | params.c | 286 if (dwc2_is_fs_iot(hsotg)) in dwc2_set_param_phy_type() 299 if (dwc2_is_fs_iot(hsotg)) in dwc2_set_param_speed() 302 if (dwc2_is_hs_iot(hsotg)) in dwc2_set_param_speed() 305 hsotg->params.speed = val; in dwc2_set_param_speed() 315 if (hsotg->phy) { in dwc2_set_param_phy_utmi_width() 487 if (hsotg->params.otg_caps.hnp_support && hsotg->params.otg_caps.srp_support) { in dwc2_check_param_otg_cap() 602 dev_dbg(hsotg->dev, in dwc2_check_param_power_down() 609 dev_dbg(hsotg->dev, in dwc2_check_param_power_down() 614 dev_err(hsotg->dev, in dwc2_check_param_power_down() 898 set_params(hsotg); in dwc2_init_params() [all …]
|
| A D | drd.c | 23 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init() 31 dwc2_force_mode(hsotg, (hsotg->dr_mode == USB_DR_MODE_HOST)); in dwc2_ovr_init() 99 if (!hsotg->ll_hw_enabled && hsotg->clk) { in dwc2_drd_role_sw_set() 113 dwc2_hsotg_core_connect(hsotg); in dwc2_drd_role_sw_set() 130 if (!hsotg->ll_hw_enabled && hsotg->clk) in dwc2_drd_role_sw_set() 157 dev_err(hsotg->dev, in dwc2_drd_init() 162 hsotg->role_sw = role_sw; in dwc2_drd_init() 165 dwc2_ovr_init(hsotg); in dwc2_drd_init() 174 if (hsotg->role_sw && !hsotg->params.external_id_pin_ctl) { in dwc2_drd_suspend() 187 if (hsotg->role_sw && !hsotg->params.external_id_pin_ctl) { in dwc2_drd_resume() [all …]
|
| A D | core.h | 60 #define dwc2_sch_dbg(hsotg, fmt, ...) \ argument 62 dev_name(hsotg->dev), ##__VA_ARGS__) 67 dev_name(hsotg->dev), ##__VA_ARGS__) 1230 val = readl(hsotg->regs + offset); in dwc2_readl() 1231 if (hsotg->needs_byte_swap) in dwc2_readl() 1239 if (hsotg->needs_byte_swap) in dwc2_writel() 1242 writel(value, hsotg->regs + offset); in dwc2_writel() 1256 u32 x = dwc2_readl(hsotg, offset); in dwc2_readl_rep() 1269 dwc2_writel(hsotg, *buf++, offset); in dwc2_writel_rep() 1418 #define dwc2_is_device_connected(hsotg) (hsotg->connected) argument [all …]
|
| A D | hcd_ddma.c | 146 if (hsotg->frame_list) in dwc2_frame_list_alloc() 150 hsotg->frame_list = kzalloc(hsotg->frame_list_sz, GFP_ATOMIC | GFP_DMA); in dwc2_frame_list_alloc() 154 hsotg->frame_list_dma = dma_map_single(hsotg->dev, hsotg->frame_list, in dwc2_frame_list_alloc() 172 dma_unmap_single(hsotg->dev, hsotg->frame_list_dma, in dwc2_frame_list_free() 195 dwc2_writel(hsotg, hsotg->frame_list_dma, HFLBADDR); in dwc2_per_sched_enable() 236 if (!hsotg) { in dwc2_update_frame_list() 248 hsotg->frame_list); in dwc2_update_frame_list() 348 dev_err(hsotg->dev, in dwc2_hcd_qh_init_ddma() 409 !hsotg->periodic_channels) && hsotg->frame_list) { in dwc2_hcd_qh_free_ddma() 433 hsotg->frame_number = dwc2_hcd_get_frame_number(hsotg); in dwc2_calc_starting_frame() [all …]
|
| A D | hcd_queue.c | 83 if ((hsotg->periodic_channels + hsotg->non_periodic_channels < in dwc2_periodic_channel_available() 87 dev_dbg(hsotg->dev, in dwc2_periodic_channel_available() 90 hsotg->periodic_channels, hsotg->non_periodic_channels); in dwc2_periodic_channel_available() 132 dev_err(hsotg->dev, in dwc2_check_periodic_bandwidth() 536 dwc2_sch_dbg(hsotg, in dwc2_qh_schedule_print() 552 dwc2_sch_dbg(hsotg, in dwc2_qh_schedule_print() 1220 dev_dbg(hsotg->dev, in dwc2_do_reserve() 1285 struct dwc2_hsotg *hsotg = qh->hsotg; in dwc2_unreserve_timer_fn() local 1339 dev_err(hsotg->dev, in dwc2_check_max_xfer_size() 1473 struct dwc2_hsotg *hsotg = qh->hsotg; in dwc2_wait_timer_fn() local [all …]
|
| A D | debugfs.c | 132 dwc2_readl(hsotg, DCFG), in state_show() 133 dwc2_readl(hsotg, DCTL), in state_show() 134 dwc2_readl(hsotg, DSTS)); in state_show() 137 dwc2_readl(hsotg, DIEPMSK), dwc2_readl(hsotg, DOEPMSK)); in state_show() 297 root = hsotg->debug_root; in dwc2_hsotg_create_debug() 316 ep = hsotg->eps_in[epidx]; in dwc2_hsotg_create_debug() 779 hsotg->debug_root = root; in dwc2_debugfs_init() 788 hsotg->regset = devm_kzalloc(hsotg->dev, sizeof(*hsotg->regset), in dwc2_debugfs_init() 790 if (!hsotg->regset) { in dwc2_debugfs_init() 797 hsotg->regset->base = hsotg->regs; in dwc2_debugfs_init() [all …]
|
| A D | hcd.h | 341 struct dwc2_hsotg *hsotg; member 453 struct dwc2_hsotg *hsotg; member 463 return (struct usb_hcd *)hsotg->priv; in dwc2_hsotg_to_hcd() 475 u32 mask = dwc2_readl(hsotg, HCINTMSK(chnum)); in disable_hc_int() 478 dwc2_writel(hsotg, mask, HCINTMSK(chnum)); in disable_hc_int() 493 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_read_hprt0() 554 int dwc2_hcd_init(struct dwc2_hsotg *hsotg); 559 struct dwc2_hsotg *hsotg); 694 return dwc2_readl(hsotg, GINTSTS) & in dwc2_read_core_intr() 695 dwc2_readl(hsotg, GINTMSK); in dwc2_read_core_intr() [all …]
|
| A D | debug.h | 12 int dwc2_debugfs_init(struct dwc2_hsotg *hsotg); 13 void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg); 15 static inline int dwc2_debugfs_init(struct dwc2_hsotg *hsotg) in dwc2_debugfs_init() argument 17 static inline void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg) in dwc2_debugfs_exit() argument
|
| /linux/Documentation/devicetree/bindings/usb/ |
| A D | samsung-hsotg.txt | 15 - compatible: "samsung,s3c6400-hsotg" should be used for all currently 29 hsotg@12480000 { 30 compatible = "samsung,s3c6400-hsotg";
|
| A D | dwc2.yaml | 49 - const: st,stm32f4x9-hsotg 50 - const: st,stm32f7-hsotg 53 - const: st,stm32mp15-hsotg 55 - const: samsung,s3c6400-hsotg
|
| /linux/arch/arm/boot/dts/ |
| A D | exynos4412-odroidx.dts | 106 &hsotg {
|
| A D | exynos4412-odroidu3.dts | 129 &hsotg {
|
| A D | s5pv210.dtsi | 408 hsotg: hsotg@ec000000 { label 409 compatible = "samsung,s3c6400-hsotg";
|
| A D | s5pv210-smdkv210.dts | 190 &hsotg {
|
| A D | exynos4412-itop-elite.dts | 165 &hsotg {
|
| A D | exynos3250.dtsi | 367 hsotg: hsotg@12480000 { label 368 compatible = "samsung,s3c6400-hsotg";
|
| A D | exynos4.dtsi | 365 hsotg: hsotg@12480000 { label 366 compatible = "samsung,s3c6400-hsotg";
|
| A D | exynos4210-origen.dts | 160 &hsotg {
|
| A D | s5pv210-aquila.dts | 361 &hsotg {
|