Home
last modified time | relevance | path

Searched refs:otgsc (Results 1 – 11 of 11) sorted by relevance

/linux-4.1.27/drivers/usb/phy/
Dphy-mv-usb.c178 u32 otgsc; in mv_otg_init_irq() local
197 otgsc = readl(&mvotg->op_regs->otgsc); in mv_otg_init_irq()
198 otgsc |= mvotg->irq_en; in mv_otg_init_irq()
199 writel(otgsc, &mvotg->op_regs->otgsc); in mv_otg_init_irq()
302 u32 otgsc; in mv_otg_update_inputs() local
304 otgsc = readl(&mvotg->op_regs->otgsc); in mv_otg_update_inputs()
315 otg_ctrl->b_sess_vld = !!(otgsc & OTGSC_STS_B_SESSION_VALID); in mv_otg_update_inputs()
316 otg_ctrl->b_sess_end = !!(otgsc & OTGSC_STS_B_SESSION_END); in mv_otg_update_inputs()
322 otg_ctrl->id = !!(otgsc & OTGSC_STS_USB_ID); in mv_otg_update_inputs()
327 otg_ctrl->a_sess_vld = !!(otgsc & OTGSC_STS_A_SESSION_VALID); in mv_otg_update_inputs()
[all …]
Dphy-fsl-usb.c127 tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK; in fsl_otg_chrg_vbus()
137 fsl_writel(tmp, &usb_dr_regs->otgsc); in fsl_otg_chrg_vbus()
145 tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK; in fsl_otg_dischrg_vbus()
155 fsl_writel(tmp, &usb_dr_regs->otgsc); in fsl_otg_dischrg_vbus()
181 tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK; in fsl_otg_loc_conn()
188 fsl_writel(tmp, &usb_dr_regs->otgsc); in fsl_otg_loc_conn()
217 tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK; in fsl_otg_start_pulse()
219 fsl_writel(tmp, &usb_dr_regs->otgsc); in fsl_otg_start_pulse()
480 !!(fsl_readl(&usb_dr_regs->otgsc) & OTGSC_STS_A_VBUS_VALID); in fsl_otg_start_host()
587 if (!(fsl_readl(&otg_dev->dr_mem_map->otgsc) & in fsl_otg_set_host()
[all …]
Dphy-msm-usb.c1126 u32 otgsc = readl(USB_OTGSC); in msm_otg_init_sm() local
1131 if (otgsc & OTGSC_ID) in msm_otg_init_sm()
1136 if (otgsc & OTGSC_BSV) in msm_otg_init_sm()
1150 if (otgsc & OTGSC_BSV) in msm_otg_init_sm()
1261 u32 otgsc = 0; in msm_otg_irq() local
1270 otgsc = readl(USB_OTGSC); in msm_otg_irq()
1271 if (!(otgsc & (OTGSC_IDIS | OTGSC_BSVIS))) in msm_otg_irq()
1274 if ((otgsc & OTGSC_IDIS) && (otgsc & OTGSC_IDIE)) { in msm_otg_irq()
1275 if (otgsc & OTGSC_ID) in msm_otg_irq()
1281 } else if ((otgsc & OTGSC_BSVIS) && (otgsc & OTGSC_BSVIE)) { in msm_otg_irq()
[all …]
Dphy-mv-usb.h125 u32 otgsc; member
Dphy-fsl-usb.h331 u32 otgsc; /* On-The-Go Status and Control */ member
/linux-4.1.27/arch/mips/include/asm/mach-pmcs-msp71xx/
Dmsp_usb.h99 u32 otgsc; /* 0xa4: OTG status & control */ member
112 u32 otgsc; /* 0xa4: OTG status & control */ member
/linux-4.1.27/drivers/usb/chipidea/
Dotg_fsm.c711 u32 otgsc, otg_int_src = 0; in ci_otg_fsm_irq() local
714 otgsc = hw_read_otgsc(ci, ~0); in ci_otg_fsm_irq()
715 otg_int_src = otgsc & OTGSC_INT_STATUS_BITS & (otgsc >> 8); in ci_otg_fsm_irq()
716 fsm->id = (otgsc & OTGSC_ID) ? 1 : 0; in ci_otg_fsm_irq()
732 if (otgsc & OTGSC_BSV) { in ci_otg_fsm_irq()
744 if (otgsc & OTGSC_AVV) { in ci_otg_fsm_irq()
Dcore.c511 u32 otgsc = 0; in ci_irq() local
521 otgsc = hw_read_otgsc(ci, ~0); in ci_irq()
533 if (ci->is_otg && (otgsc & OTGSC_IDIE) && (otgsc & OTGSC_IDIS)) { in ci_irq()
545 if (ci->is_otg && (otgsc & OTGSC_BSVIE) && (otgsc & OTGSC_BSVIS)) { in ci_irq()
/linux-4.1.27/drivers/usb/gadget/udc/
Dfsl_usb2_udc.h50 u32 otgsc; /* On-The-Go Status and Control */ member
87 u32 otgsc; /* On-The-Go Status and Control */ member
Dmv_udc.h160 u32 otgsc; member
Dfsl_udc_core.c391 if (!(fsl_readl(&dr_regs->otgsc) & OTGSC_STS_USB_ID)) { in dr_controller_stop()