Lines Matching refs:sclk
40 struct clksrc_clk *sclk = to_clksrc(clk); in s3c_getrate_clksrc() local
42 u32 clkdiv = __raw_readl(sclk->reg_div.reg); in s3c_getrate_clksrc()
43 u32 mask = bit_mask(sclk->reg_div.shift, sclk->reg_div.size); in s3c_getrate_clksrc()
46 clkdiv >>= sclk->reg_div.shift; in s3c_getrate_clksrc()
55 struct clksrc_clk *sclk = to_clksrc(clk); in s3c_setrate_clksrc() local
56 void __iomem *reg = sclk->reg_div.reg; in s3c_setrate_clksrc()
58 u32 mask = bit_mask(sclk->reg_div.shift, sclk->reg_div.size); in s3c_setrate_clksrc()
63 if (div > (1 << sclk->reg_div.size)) in s3c_setrate_clksrc()
68 val |= (div - 1) << sclk->reg_div.shift; in s3c_setrate_clksrc()
76 struct clksrc_clk *sclk = to_clksrc(clk); in s3c_setparent_clksrc() local
77 struct clksrc_sources *srcs = sclk->sources; in s3c_setparent_clksrc()
78 u32 clksrc = __raw_readl(sclk->reg_src.reg); in s3c_setparent_clksrc()
79 u32 mask = bit_mask(sclk->reg_src.shift, sclk->reg_src.size); in s3c_setparent_clksrc()
93 clksrc |= src_nr << sclk->reg_src.shift; in s3c_setparent_clksrc()
95 __raw_writel(clksrc, sclk->reg_src.reg); in s3c_setparent_clksrc()
105 struct clksrc_clk *sclk = to_clksrc(clk); in s3c_roundrate_clksrc() local
107 int max_div = 1 << sclk->reg_div.size; in s3c_roundrate_clksrc()