Lines Matching refs:regs
270 struct ehci_regs *regs; member
2265 static inline unsigned int ehci_readl( unsigned int regs) in ehci_readl() argument
2267 regs = ( (regs & 0xffffff00) + ((regs & 0x000000ff)*2) ); in ehci_readl()
2268 …return (readl((void*)(unsigned int)regs) & 0x0000ffff)|((readl((void*)((unsigned int)regs+4))<<16)… in ehci_readl()
2271 static inline void ehci_writel(const unsigned int val, unsigned int regs) in ehci_writel() argument
2273 regs = ((regs & 0xffffff00) + ((regs & 0x000000ff)*2)) ; in ehci_writel()
2274 writel(val & 0x0000ffff,(void*)regs) ; in ehci_writel()
2275 writel(((val>>16) & 0x0000ffff),(void*)((unsigned int)regs+4)) ; in ehci_writel()
2278 static inline unsigned short ehci_readw(unsigned int regs) in ehci_readw() argument
2280 if (regs & 0x1) in ehci_readw()
2282 diag_printf("TRAP: ehci_readw address not alignment !! 0x%x \n", regs); in ehci_readw()
2285 regs = ( (regs & 0xffffff00) + ((regs & 0x000000ff)*2) ); in ehci_readw()
2286 return (readw((void*)(unsigned int)regs)); in ehci_readw()
2289 static inline unsigned char ehci_readb(unsigned int regs) in ehci_readb() argument
2291 if (regs & 0x1) in ehci_readb()
2292 regs = ( (regs & 0xffffff00) + ((regs & 0x000000ff)*2)-1 ); in ehci_readb()
2294 regs = ( (regs & 0xffffff00) + ((regs & 0x000000ff)*2) ); in ehci_readb()
2295 return (readb((void*)(unsigned int)regs)); in ehci_readb()