Lines Matching defs:offset
62 static inline u16 musb_readw(const void __iomem *addr, unsigned offset)
63 { return __raw_readw(addr + offset); }
65 static inline u32 musb_readl(const void __iomem *addr, unsigned offset)
66 { return __raw_readl(addr + offset); }
69 static inline void musb_writew(void __iomem *addr, unsigned offset, u16 data)
70 { __raw_writew(data, addr + offset); }
72 static inline void musb_writel(void __iomem *addr, unsigned offset, u32 data)
73 { __raw_writel(data, addr + offset); }
81 static inline u8 musb_readb(const void __iomem *addr, unsigned offset)
86 tmp = __raw_readw(addr + (offset & ~1));
87 if (offset & 1)
95 static inline void musb_writeb(void __iomem *addr, unsigned offset, u8 data)
99 tmp = __raw_readw(addr + (offset & ~1));
100 if (offset & 1)
105 __raw_writew(tmp, addr + (offset & ~1));
110 static inline u8 musb_readb(const void __iomem *addr, unsigned offset)
111 { return __raw_readb(addr + offset); }
113 static inline void musb_writeb(void __iomem *addr, unsigned offset, u8 data)
114 { __raw_writeb(data, addr + offset); }
120 static inline u8 musb_readb(const void __iomem *addr, unsigned offset)
121 { return (u8) (bfin_read16(addr + offset)); }
123 static inline u16 musb_readw(const void __iomem *addr, unsigned offset)
124 { return bfin_read16(addr + offset); }
126 static inline u32 musb_readl(const void __iomem *addr, unsigned offset)
127 { return (u32) (bfin_read16(addr + offset)); }
129 static inline void musb_writeb(void __iomem *addr, unsigned offset, u8 data)
130 { bfin_write16(addr + offset, (u16) data); }
132 static inline void musb_writew(void __iomem *addr, unsigned offset, u16 data)
133 { bfin_write16(addr + offset, data); }
135 static inline void musb_writel(void __iomem *addr, unsigned offset, u32 data)
136 { bfin_write16(addr + offset, (u16) data); }