Lines Matching refs:ost_clk
94 struct ingenic_ost_clk *ost_clk = to_ost_clk(hw);
95 const struct ingenic_ost_clk_info *info = ost_clk->info;
98 prescale = readl(ost_clk->ost->base + info->ostccr_reg);
108 struct ingenic_ost_clk *ost_clk = to_ost_clk(hw);
109 const struct ingenic_ost_clk_info *info = ost_clk->info;
112 prescale = readl(ost_clk->ost->base + info->ostccr_reg);
147 struct ingenic_ost_clk *ost_clk = to_ost_clk(hw);
148 const struct ingenic_ost_clk_info *info = ost_clk->info;
152 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);
171 writel(val, ost_clk->ost->base + info->ostccr_reg);
274 struct ingenic_ost_clk *ost_clk;
277 ost_clk = kzalloc(sizeof(*ost_clk), GFP_KERNEL);
278 if (!ost_clk)
281 ost_clk->hw.init = &info->init_data;
282 ost_clk->idx = idx;
283 ost_clk->info = info;
284 ost_clk->ost = ost;
291 err = clk_hw_register(NULL, &ost_clk->hw);
293 kfree(ost_clk);
297 clocks->hws[idx] = &ost_clk->hw;