Lines Matching refs:reg
24 #define OMAP_SDRC_REGADDR(reg) (omap2_sdrc_base + (reg)) argument
25 #define OMAP_SMS_REGADDR(reg) (omap2_sms_base + (reg)) argument
29 static inline void sdrc_write_reg(u32 val, u16 reg) in sdrc_write_reg() argument
31 writel_relaxed(val, OMAP_SDRC_REGADDR(reg)); in sdrc_write_reg()
34 static inline u32 sdrc_read_reg(u16 reg) in sdrc_read_reg() argument
36 return readl_relaxed(OMAP_SDRC_REGADDR(reg)); in sdrc_read_reg()
41 static inline void sms_write_reg(u32 val, u16 reg) in sms_write_reg() argument
43 writel_relaxed(val, OMAP_SMS_REGADDR(reg)); in sms_write_reg()
46 static inline u32 sms_read_reg(u16 reg) in sms_read_reg() argument
48 return readl_relaxed(OMAP_SMS_REGADDR(reg)); in sms_read_reg()
105 #define OMAP242X_SDRC_REGADDR(reg) \ argument
106 OMAP2_L3_IO_ADDRESS(OMAP2420_SDRC_BASE + (reg))
107 #define OMAP243X_SDRC_REGADDR(reg) \ argument
108 OMAP2_L3_IO_ADDRESS(OMAP243X_SDRC_BASE + (reg))
109 #define OMAP34XX_SDRC_REGADDR(reg) \ argument
110 OMAP2_L3_IO_ADDRESS(OMAP343X_SDRC_BASE + (reg))
196 #define OMAP242X_SMS_REGADDR(reg) \ argument
197 (void __iomem *)OMAP2_L3_IO_ADDRESS(OMAP2420_SMS_BASE + reg)
198 #define OMAP243X_SMS_REGADDR(reg) \ argument
199 (void __iomem *)OMAP2_L3_IO_ADDRESS(OMAP243X_SMS_BASE + reg)
200 #define OMAP343X_SMS_REGADDR(reg) \ argument
201 (void __iomem *)OMAP2_L3_IO_ADDRESS(OMAP343X_SMS_BASE + reg)