Lines Matching full:ref
33 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_enable() local
35 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + CLR); in clk_ref_enable()
42 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_disable() local
44 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + SET); in clk_ref_disable()
50 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_recalc_rate() local
52 u8 frac = (readl_relaxed(ref->reg) >> (ref->idx * 8)) & 0x3f; in clk_ref_recalc_rate()
86 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate() local
90 u8 frac, shift = ref->idx * 8; in clk_ref_set_rate()
103 val = readl_relaxed(ref->reg); in clk_ref_set_rate()
106 writel_relaxed(val, ref->reg); in clk_ref_set_rate()
124 struct clk_ref *ref; in mxs_clk_ref() local
128 ref = kzalloc(sizeof(*ref), GFP_KERNEL); in mxs_clk_ref()
129 if (!ref) in mxs_clk_ref()
138 ref->reg = reg; in mxs_clk_ref()
139 ref->idx = idx; in mxs_clk_ref()
140 ref->hw.init = &init; in mxs_clk_ref()
142 clk = clk_register(NULL, &ref->hw); in mxs_clk_ref()
144 kfree(ref); in mxs_clk_ref()