Lines Matching refs: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()
81 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate() local
85 u8 frac, shift = ref->idx * 8; in clk_ref_set_rate()
93 val = readl_relaxed(ref->reg); in clk_ref_set_rate()
96 writel_relaxed(val, ref->reg); in clk_ref_set_rate()
114 struct clk_ref *ref; in mxs_clk_ref() local
118 ref = kzalloc(sizeof(*ref), GFP_KERNEL); in mxs_clk_ref()
119 if (!ref) in mxs_clk_ref()
128 ref->reg = reg; in mxs_clk_ref()
129 ref->idx = idx; in mxs_clk_ref()
130 ref->hw.init = &init; in mxs_clk_ref()
132 clk = clk_register(NULL, &ref->hw); in mxs_clk_ref()
134 kfree(ref); in mxs_clk_ref()