Lines Matching refs:ls1x_clk
44 struct ls1x_clk { struct
51 #define to_ls1x_clk(_hw) container_of(_hw, struct ls1x_clk, hw) argument
63 struct ls1x_clk *ls1x_clk = to_ls1x_clk(hw); in ls1x_pll_recalc_rate() local
64 const struct ls1x_clk_pll_data *d = ls1x_clk->data; in ls1x_pll_recalc_rate()
67 val = readl(ls1x_clk->reg); in ls1x_pll_recalc_rate()
85 struct ls1x_clk *ls1x_clk = to_ls1x_clk(hw); in ls1x_divider_recalc_rate() local
86 const struct ls1x_clk_div_data *d = ls1x_clk->data; in ls1x_divider_recalc_rate()
89 val = readl(ls1x_clk->reg) >> d->shift; in ls1x_divider_recalc_rate()
99 struct ls1x_clk *ls1x_clk = to_ls1x_clk(hw); in ls1x_divider_round_rate() local
100 const struct ls1x_clk_div_data *d = ls1x_clk->data; in ls1x_divider_round_rate()
109 struct ls1x_clk *ls1x_clk = to_ls1x_clk(hw); in ls1x_divider_set_rate() local
110 const struct ls1x_clk_div_data *d = ls1x_clk->data; in ls1x_divider_set_rate()
122 val = readl(ls1x_clk->reg); in ls1x_divider_set_rate()
127 writel(val, ls1x_clk->reg); in ls1x_divider_set_rate()
129 val = readl(ls1x_clk->reg); in ls1x_divider_set_rate()
132 writel(val, ls1x_clk->reg); in ls1x_divider_set_rate()
135 val = readl(ls1x_clk->reg); in ls1x_divider_set_rate()
140 writel(val, ls1x_clk->reg); in ls1x_divider_set_rate()
155 struct ls1x_clk _name = { \
179 struct ls1x_clk _name = { \
254 struct ls1x_clk *ls1x_clk; in ls1x_clk_init() local
270 ls1x_clk = to_ls1x_clk(hw_data->hws[i]); in ls1x_clk_init()
271 ls1x_clk->reg = reg + ls1x_clk->offset; in ls1x_clk_init()