Lines Matching refs:creg
126 u32 __iomem *creg = ep->creg; in read_fifo() local
127 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in read_fifo()
140 csr = __raw_readl(creg); in read_fifo()
166 __raw_writel(csr, creg); in read_fifo()
188 csr = __raw_readl(creg); in read_fifo()
201 u32 __iomem *creg = ep->creg; in write_fifo() local
202 u32 csr = __raw_readl(creg); in write_fifo()
203 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in write_fifo()
223 __raw_writel(csr, creg); in write_fifo()
224 csr = __raw_readl(creg); in write_fifo()
257 __raw_writel(csr, creg); in write_fifo()
348 __raw_writel(tmp, ep->creg); in at91_ep_enable()
384 __raw_writel(0, ep->creg); in at91_ep_disable()
488 tmp = __raw_readl(ep->creg); in at91_ep_queue()
491 __raw_writel(tmp, ep->creg); in at91_ep_queue()
549 u32 __iomem *creg; in at91_ep_set_halt() local
557 creg = ep->creg; in at91_ep_set_halt()
560 csr = __raw_readl(creg); in at91_ep_set_halt()
580 __raw_writel(csr, creg); in at91_ep_set_halt()
652 ep->creg = (void __iomem *) udc->udp_baseaddr + AT91_UDP_CSR(i); in udc_reinit()
812 u32 __iomem *creg = ep->creg; in handle_ep() local
813 u32 csr = __raw_readl(creg); in handle_ep()
825 __raw_writel(csr, creg); in handle_ep()
837 __raw_writel(csr, creg); in handle_ep()
838 csr = __raw_readl(creg); in handle_ep()
853 u32 __iomem *creg = ep->creg; in handle_setup() local
854 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in handle_setup()
879 __raw_writel(csr, creg); in handle_setup()
899 csr = __raw_readl(creg); in handle_setup()
906 __raw_writel(csr | AT91_UDP_TXPKTRDY, creg); in handle_setup()
992 if (__raw_readl(ep->creg) & AT91_UDP_FORCESTALL) in handle_setup()
1014 tmp = __raw_readl(ep->creg); in handle_setup()
1017 __raw_writel(tmp, ep->creg); in handle_setup()
1037 tmp = __raw_readl(ep->creg); in handle_setup()
1040 __raw_writel(tmp, ep->creg); in handle_setup()
1063 __raw_writel(csr, creg); in handle_setup()
1073 __raw_writel(csr, creg); in handle_setup()
1080 u32 __iomem *creg = ep0->creg; in handle_ep0() local
1081 u32 csr = __raw_readl(creg); in handle_ep0()
1089 __raw_writel(csr, creg); in handle_ep0()
1091 csr = __raw_readl(creg); in handle_ep0()
1125 __raw_writel(csr, creg); in handle_ep0()
1159 csr = __raw_readl(creg); in handle_ep0()
1162 __raw_writel(csr, creg); in handle_ep0()
1184 __raw_writel(csr | AT91_UDP_FORCESTALL, creg); in handle_ep0()
1191 __raw_writel(csr, creg); in handle_ep0()