/linux/drivers/usb/dwc2/ |
H A D | hcd.c | 42 static void dwc2_enable_common_interrupts(struct dwc2_hsotg *hsotg) in dwc2_enable_common_interrupts() argument 47 dwc2_writel(hsotg, 0xffffffff, GOTGINT); in dwc2_enable_common_interrupts() 50 dwc2_writel(hsotg, 0xffffffff, GINTSTS); in dwc2_enable_common_interrupts() 55 if (!hsotg->params.host_dma) in dwc2_enable_common_interrupts() 57 if (!hsotg->params.external_id_pin_ctl) in dwc2_enable_common_interrupts() 63 if (dwc2_is_device_mode(hsotg) && hsotg->params.lpm) in dwc2_enable_common_interrupts() 66 dwc2_writel(hsotg, intmsk, GINTMSK); in dwc2_enable_common_interrupts() 69 static int dwc2_gahbcfg_init(struct dwc2_hsotg *hsotg) in dwc2_gahbcfg_init() argument 71 u32 ahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_gahbcfg_init() 73 switch (hsotg->hw_params.arch) { in dwc2_gahbcfg_init() [all …]
|
H A D | drd.c | 20 static void dwc2_ovr_init(struct dwc2_hsotg *hsotg) in dwc2_ovr_init() argument 25 spin_lock_irqsave(&hsotg->lock, flags); in dwc2_ovr_init() 27 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init() 30 if (hsotg->role_sw_default_mode == USB_DR_MODE_HOST) in dwc2_ovr_init() 32 else if (hsotg->role_sw_default_mode == USB_DR_MODE_PERIPHERAL) in dwc2_ovr_init() 34 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_ovr_init() 36 spin_unlock_irqrestore(&hsotg->lock, flags); in dwc2_ovr_init() 38 dwc2_force_mode(hsotg, (hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_ovr_init() 39 (hsotg->role_sw_default_mode == USB_DR_MODE_HOST)); in dwc2_ovr_init() 42 static int dwc2_ovr_avalid(struct dwc2_hsotg *hsotg, bool valid) in dwc2_ovr_avalid() argument [all …]
|
H A D | hcd_intr.c | 33 static void dwc2_track_missed_sofs(struct dwc2_hsotg *hsotg) in dwc2_track_missed_sofs() argument 35 u16 curr_frame_number = hsotg->frame_number; in dwc2_track_missed_sofs() 36 u16 expected = dwc2_frame_num_inc(hsotg->last_frame_num, 1); in dwc2_track_missed_sofs() 39 dwc2_sch_vdbg(hsotg, "MISSED SOF %04x != %04x\n", in dwc2_track_missed_sofs() 43 if (hsotg->frame_num_idx < FRAME_NUM_ARRAY_SIZE) { in dwc2_track_missed_sofs() 45 hsotg->frame_num_array[hsotg->frame_num_idx] = in dwc2_track_missed_sofs() 47 hsotg->last_frame_num_array[hsotg->frame_num_idx] = in dwc2_track_missed_sofs() 48 hsotg->last_frame_num; in dwc2_track_missed_sofs() 49 hsotg->frame_num_idx++; in dwc2_track_missed_sofs() 51 } else if (!hsotg->dumped_frame_num_array) { in dwc2_track_missed_sofs() [all …]
|
H A D | params.c | 18 static void dwc2_set_bcm_params(struct dwc2_hsotg *hsotg) in dwc2_set_bcm_params() argument 20 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_bcm_params() 28 static void dwc2_set_his_params(struct dwc2_hsotg *hsotg) in dwc2_set_his_params() argument 30 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_his_params() 51 static void dwc2_set_jz4775_params(struct dwc2_hsotg *hsotg) in dwc2_set_jz4775_params() argument 53 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_jz4775_params() 60 !device_property_read_bool(hsotg->dev, "disable-over-current"); in dwc2_set_jz4775_params() 63 static void dwc2_set_loongson_params(struct dwc2_hsotg *hsotg) in dwc2_set_loongson_params() argument 65 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_loongson_params() 71 static void dwc2_set_x1600_params(struct dwc2_hsotg *hsotg) in dwc2_set_x1600_params() argument [all …]
|
H A D | hcd_ddma.c | 58 static int dwc2_desc_list_alloc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, in dwc2_desc_list_alloc() argument 65 desc_cache = hsotg->desc_hsisoc_cache; in dwc2_desc_list_alloc() 67 desc_cache = hsotg->desc_gen_cache; in dwc2_desc_list_alloc() 76 qh->desc_list_dma = dma_map_single(hsotg->dev, qh->desc_list, in dwc2_desc_list_alloc() 82 dma_unmap_single(hsotg->dev, qh->desc_list_dma, in dwc2_desc_list_alloc() 93 static void dwc2_desc_list_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) in dwc2_desc_list_free() argument 99 desc_cache = hsotg->desc_hsisoc_cache; in dwc2_desc_list_free() 101 desc_cache = hsotg->desc_gen_cache; in dwc2_desc_list_free() 104 dma_unmap_single(hsotg->dev, qh->desc_list_dma, in dwc2_desc_list_free() 114 static int dwc2_frame_list_alloc(struct dwc2_hsotg *hsotg, gfp_t mem_flags) in dwc2_frame_list_alloc() argument [all …]
|
H A D | debugfs.c | 31 struct dwc2_hsotg *hsotg = s->private; in testmode_write() local 52 spin_lock_irqsave(&hsotg->lock, flags); in testmode_write() 53 dwc2_hsotg_set_test_mode(hsotg, testmode); in testmode_write() 54 spin_unlock_irqrestore(&hsotg->lock, flags); in testmode_write() 67 struct dwc2_hsotg *hsotg = s->private; in testmode_show() local 71 spin_lock_irqsave(&hsotg->lock, flags); in testmode_show() 72 dctl = dwc2_readl(hsotg, DCTL); in testmode_show() 75 spin_unlock_irqrestore(&hsotg->lock, flags); in testmode_show() 128 struct dwc2_hsotg *hsotg = seq->private; in state_show() local 132 dwc2_readl(hsotg, DCFG), in state_show() [all …]
|
H A D | hcd.h | 312 struct dwc2_hsotg *hsotg; member 424 struct dwc2_hsotg *hsotg; member 429 u32 dwc2_calc_frame_interval(struct dwc2_hsotg *hsotg); 432 static inline struct usb_hcd *dwc2_hsotg_to_hcd(struct dwc2_hsotg *hsotg) in dwc2_hsotg_to_hcd() argument 434 return (struct usb_hcd *)hsotg->priv; in dwc2_hsotg_to_hcd() 444 static inline void disable_hc_int(struct dwc2_hsotg *hsotg, int chnum, u32 intr) in disable_hc_int() argument 446 u32 mask = dwc2_readl(hsotg, HCINTMSK(chnum)); in disable_hc_int() 449 dwc2_writel(hsotg, mask, HCINTMSK(chnum)); in disable_hc_int() 452 void dwc2_hc_cleanup(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan); 453 void dwc2_hc_halt(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, [all …]
|
H 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/arch/arm/boot/dts/samsung/ |
H A D | exynos4412-odroidx.dts | 109 &hsotg {
|
H A D | exynos4412-odroidu3.dts | 131 &hsotg {
|
H A D | s5pv210-smdkv210.dts | 198 &hsotg {
|
H A D | exynos4412-itop-elite.dts | 172 &hsotg {
|
H A D | s5pv210.dtsi | 406 hsotg: usb@ec000000 { label 407 compatible = "samsung,s3c6400-hsotg";
|
H A D | exynos4210-origen.dts | 167 &hsotg {
|
H A D | s5pv210-aquila.dts | 360 &hsotg {
|
H A D | s5pv210-goni.dts | 339 &hsotg {
|
H A D | exynos3250.dtsi | 540 hsotg: usb@12480000 { label 541 compatible = "samsung,s3c6400-hsotg";
|
H A D | exynos4412-itop-scp-core.dtsi | 127 &hsotg {
|
H A D | exynos4.dtsi | 364 hsotg: usb@12480000 { label 365 compatible = "samsung,s3c6400-hsotg";
|
H A D | exynos4210-trats.dts | 256 &hsotg {
|
H A D | exynos4412-odroid-common.dtsi | 261 &hsotg {
|
H A D | exynos4210-universal_c210.dts | 295 &hsotg {
|
H A D | exynos3250-monk.dts | 186 &hsotg {
|
/linux/Documentation/usb/ |
H A D | gadget_configfs.rst | 223 $ echo s3c-hsotg > UDC
|
/linux/arch/arm/boot/dts/st/ |
H A D | stm32f746.dtsi | 668 compatible = "st,stm32f7-hsotg";
|