Lines Matching refs:ref
40 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_enable() local
42 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + CLR); in clk_ref_enable()
49 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_disable() local
51 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + SET); in clk_ref_disable()
57 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_recalc_rate() local
59 u8 frac = (readl_relaxed(ref->reg) >> (ref->idx * 8)) & 0x3f; in clk_ref_recalc_rate()
93 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate() local
97 u8 frac, shift = ref->idx * 8; in clk_ref_set_rate()
110 val = readl_relaxed(ref->reg); in clk_ref_set_rate()
113 writel_relaxed(val, ref->reg); in clk_ref_set_rate()
131 struct clk_ref *ref; in mxs_clk_ref() local
135 ref = kzalloc(sizeof(*ref), GFP_KERNEL); in mxs_clk_ref()
136 if (!ref) in mxs_clk_ref()
145 ref->reg = reg; in mxs_clk_ref()
146 ref->idx = idx; in mxs_clk_ref()
147 ref->hw.init = &init; in mxs_clk_ref()
149 clk = clk_register(NULL, &ref->hw); in mxs_clk_ref()
151 kfree(ref); in mxs_clk_ref()