Lines Matching refs:ost_clk
95 struct ingenic_ost_clk *ost_clk = to_ost_clk(hw);
96 const struct ingenic_ost_clk_info *info = ost_clk->info;
99 prescale = readl(ost_clk->ost->base + info->ostccr_reg);
109 struct ingenic_ost_clk *ost_clk = to_ost_clk(hw);
110 const struct ingenic_ost_clk_info *info = ost_clk->info;
113 prescale = readl(ost_clk->ost->base + info->ostccr_reg);
148 struct ingenic_ost_clk *ost_clk = to_ost_clk(hw);
149 const struct ingenic_ost_clk_info *info = ost_clk->info;
153 val = readl(ost_clk->ost->base + info->ostccr_reg);
155 writel(val, ost_clk->ost->base + info->ostccr_reg);
163 struct ingenic_ost_clk *ost_clk = to_ost_clk(hw);
164 const struct ingenic_ost_clk_info *info = ost_clk->info;
168 val = readl(ost_clk->ost->base + info->ostccr_reg);
170 writel(val, ost_clk->ost->base + info->ostccr_reg);
273 struct ingenic_ost_clk *ost_clk;
276 ost_clk = kzalloc(sizeof(*ost_clk), GFP_KERNEL);
277 if (!ost_clk)
280 ost_clk->hw.init = &info->init_data;
281 ost_clk->idx = idx;
282 ost_clk->info = info;
283 ost_clk->ost = ost;
290 err = clk_hw_register(NULL, &ost_clk->hw);
292 kfree(ost_clk);
296 clocks->hws[idx] = &ost_clk->hw;