Lines Matching refs:creg
124 u32 __iomem *creg = ep->creg; in read_fifo() local
125 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in read_fifo()
138 csr = __raw_readl(creg); in read_fifo()
164 __raw_writel(csr, creg); in read_fifo()
186 csr = __raw_readl(creg); in read_fifo()
199 u32 __iomem *creg = ep->creg; in write_fifo() local
200 u32 csr = __raw_readl(creg); in write_fifo()
201 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in write_fifo()
221 __raw_writel(csr, creg); in write_fifo()
222 csr = __raw_readl(creg); in write_fifo()
255 __raw_writel(csr, creg); in write_fifo()
346 __raw_writel(tmp, ep->creg); in at91_ep_enable()
382 __raw_writel(0, ep->creg); in at91_ep_disable()
486 tmp = __raw_readl(ep->creg); in at91_ep_queue()
489 __raw_writel(tmp, ep->creg); in at91_ep_queue()
547 u32 __iomem *creg; in at91_ep_set_halt() local
555 creg = ep->creg; in at91_ep_set_halt()
558 csr = __raw_readl(creg); in at91_ep_set_halt()
578 __raw_writel(csr, creg); in at91_ep_set_halt()
650 ep->creg = (void __iomem *) udc->udp_baseaddr + AT91_UDP_CSR(i); in udc_reinit()
810 u32 __iomem *creg = ep->creg; in handle_ep() local
811 u32 csr = __raw_readl(creg); in handle_ep()
823 __raw_writel(csr, creg); in handle_ep()
835 __raw_writel(csr, creg); in handle_ep()
836 csr = __raw_readl(creg); in handle_ep()
851 u32 __iomem *creg = ep->creg; in handle_setup() local
852 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in handle_setup()
877 __raw_writel(csr, creg); in handle_setup()
897 csr = __raw_readl(creg); in handle_setup()
904 __raw_writel(csr | AT91_UDP_TXPKTRDY, creg); in handle_setup()
990 if (__raw_readl(ep->creg) & AT91_UDP_FORCESTALL) in handle_setup()
1012 tmp = __raw_readl(ep->creg); in handle_setup()
1015 __raw_writel(tmp, ep->creg); in handle_setup()
1035 tmp = __raw_readl(ep->creg); in handle_setup()
1038 __raw_writel(tmp, ep->creg); in handle_setup()
1061 __raw_writel(csr, creg); in handle_setup()
1071 __raw_writel(csr, creg); in handle_setup()
1078 u32 __iomem *creg = ep0->creg; in handle_ep0() local
1079 u32 csr = __raw_readl(creg); in handle_ep0()
1087 __raw_writel(csr, creg); in handle_ep0()
1089 csr = __raw_readl(creg); in handle_ep0()
1123 __raw_writel(csr, creg); in handle_ep0()
1157 csr = __raw_readl(creg); in handle_ep0()
1160 __raw_writel(csr, creg); in handle_ep0()
1182 __raw_writel(csr | AT91_UDP_FORCESTALL, creg); in handle_ep0()
1189 __raw_writel(csr, creg); in handle_ep0()