Lines Matching refs:reg_val
55 u32 reg_val; in sunxi_clrbits() local
57 reg_val = readl(reg); in sunxi_clrbits()
58 reg_val &= ~(clr_val); in sunxi_clrbits()
59 writel(reg_val, reg); in sunxi_clrbits()
64 u32 reg_val; in sunxi_setbits() local
66 reg_val = readl(reg); in sunxi_setbits()
67 reg_val |= set_val; in sunxi_setbits()
68 writel(reg_val, reg); in sunxi_setbits()
73 u32 reg_val; in sunxi_clrsetbits() local
75 reg_val = readl(reg); in sunxi_clrsetbits()
76 reg_val &= ~(clr_val); in sunxi_clrsetbits()
77 reg_val |= set_val; in sunxi_clrsetbits()
78 writel(reg_val, reg); in sunxi_clrsetbits()
88 u32 reg_val; in ahci_sunxi_phy_init() local
114 reg_val = sunxi_getbits(reg_base + AHCI_PHYCS0R, 0x7, 28); in ahci_sunxi_phy_init()
115 if (reg_val == 0x02) in ahci_sunxi_phy_init()
129 reg_val = sunxi_getbits(reg_base + AHCI_PHYCS2R, 0x1, 24); in ahci_sunxi_phy_init()
130 if (reg_val == 0x00) in ahci_sunxi_phy_init()