Lines Matching refs:devstat
1148 if (udc->devstat & UDC_SUS) { in omap_wakeup()
1152 if (udc->devstat & (UDC_B_HNP_ENABLE|UDC_R_WK_OK)) { in omap_wakeup()
1159 } else if (!(udc->devstat & UDC_ATT)) { in omap_wakeup()
1367 u16 devstat; in update_otg() local
1373 devstat = omap_readw(UDC_DEVSTAT); in update_otg()
1375 devstat = 0; in update_otg()
1377 udc->gadget.b_hnp_enable = !!(devstat & UDC_B_HNP_ENABLE); in update_otg()
1378 udc->gadget.a_hnp_support = !!(devstat & UDC_A_HNP_SUPPORT); in update_otg()
1379 udc->gadget.a_alt_hnp_support = !!(devstat & UDC_A_ALT_HNP_SUPPORT); in update_otg()
1727 u16 devstat, change; in devstate_irq() local
1729 devstat = omap_readw(UDC_DEVSTAT); in devstate_irq()
1730 change = devstat ^ udc->devstat; in devstate_irq()
1731 udc->devstat = devstat; in devstate_irq()
1740 if (devstat & UDC_ATT) { in devstate_irq()
1762 if (devstat & UDC_USB_RESET) { in devstate_irq()
1778 if (devstat & UDC_SUS) { in devstate_irq()
1814 devstat, change); in devstate_irq()
2957 u32 devstat; in omap_udc_suspend() local
2959 devstat = omap_readw(UDC_DEVSTAT); in omap_udc_suspend()
2965 if ((devstat & UDC_ATT) != 0 && (devstat & UDC_SUS) == 0) { in omap_udc_suspend()