Lines Matching refs:udc
306 struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor; in ep_enable() local
309 n = readl(&udc->epctrl[num]); in ep_enable()
321 writel(n, &udc->epctrl[num]); in ep_enable()
423 struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor; in ci_ep_submit_next_request() local
525 writel(bit, &udc->epprime); in ci_ep_submit_next_request()
664 struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor; in handle_setup() local
678 writel(EPT_RX(0), &udc->epsetupstat); in handle_setup()
680 writel(EPT_RX(0), &udc->epstat); in handle_setup()
737 writel((r.wValue << 25) | (1 << 24), &udc->devaddr); in handle_setup()
760 writel((1<<16) | (1 << 0), &udc->epctrl[0]); in handle_setup()
767 struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor; in stop_activity() local
768 writel(readl(&udc->epcomp), &udc->epcomp); in stop_activity()
770 writel(readl(&udc->epsetupstat), &udc->epsetupstat); in stop_activity()
772 writel(readl(&udc->epstat), &udc->epstat); in stop_activity()
773 writel(0xffffffff, &udc->epflush); in stop_activity()
778 writel(0, &udc->epctrl[i]); in stop_activity()
793 struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor; in udc_irq() local
794 unsigned n = readl(&udc->usbsts); in udc_irq()
795 writel(n, &udc->usbsts); in udc_irq()
814 bit = (readl(&udc->hostpc1_devlc) >> 25) & 3; in udc_irq()
816 bit = (readl(&udc->portsc) >> 26) & 3; in udc_irq()
831 printf("<UEI %x>\n", readl(&udc->epcomp)); in udc_irq()
835 n = readl(&udc->epsetupstat); in udc_irq()
837 n = readl(&udc->epstat); in udc_irq()
842 n = readl(&udc->epcomp); in udc_irq()
844 writel(n, &udc->epcomp); in udc_irq()
863 struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor; in usb_gadget_handle_interrupts() local
865 value = readl(&udc->usbsts); in usb_gadget_handle_interrupts()
874 struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor; in udc_disconnect() local
877 writel(USBCMD_FS2, &udc->usbcmd); in udc_disconnect()
885 struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor; in ci_pullup() local
888 writel(USBCMD_ITC(MICRO_8FRAME) | USBCMD_RST, &udc->usbcmd); in ci_pullup()
891 writel((unsigned long)controller.epts, &udc->epinitaddr); in ci_pullup()
894 writel(USBMODE_DEVICE, &udc->usbmode); in ci_pullup()
898 setbits_le32(&udc->portsc, PFSC); in ci_pullup()
901 writel(0xffffffff, &udc->epflush); in ci_pullup()
904 writel(USBCMD_ITC(MICRO_8FRAME) | USBCMD_RUN, &udc->usbcmd); in ci_pullup()
1052 struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor; in dfu_usb_get_reset() local
1054 return !!(readl(&udc->usbsts) & STS_URI); in dfu_usb_get_reset()