Lines Matching refs:ofs
39 u32 reg, ofs, bp, bm; in mxs_iomux_setup_pad() local
43 ofs = 0x100; in mxs_iomux_setup_pad()
44 ofs += PAD_BANK(pad) * 0x20 + PAD_PIN(pad) / 16 * 0x10; in mxs_iomux_setup_pad()
47 reg = __raw_readl(iomux_base + ofs); in mxs_iomux_setup_pad()
50 __raw_writel(reg, iomux_base + ofs); in mxs_iomux_setup_pad()
53 ofs = cpu_is_mx23() ? 0x200 : 0x300; in mxs_iomux_setup_pad()
54 ofs += PAD_BANK(pad) * 0x40 + PAD_PIN(pad) / 8 * 0x10; in mxs_iomux_setup_pad()
59 reg = __raw_readl(iomux_base + ofs); in mxs_iomux_setup_pad()
62 __raw_writel(reg, iomux_base + ofs); in mxs_iomux_setup_pad()
68 __mxs_setl(1 << bp, iomux_base + ofs); in mxs_iomux_setup_pad()
70 __mxs_clrl(1 << bp, iomux_base + ofs); in mxs_iomux_setup_pad()
75 ofs = cpu_is_mx23() ? 0x400 : 0x600; in mxs_iomux_setup_pad()
76 ofs += PAD_BANK(pad) * 0x10; in mxs_iomux_setup_pad()
79 __mxs_setl(1 << bp, iomux_base + ofs); in mxs_iomux_setup_pad()
81 __mxs_clrl(1 << bp, iomux_base + ofs); in mxs_iomux_setup_pad()