Lines Matching refs:mcd
271 const struct mtk_clk_divider *mcd = &mcds[i]; in mtk_clk_register_dividers() local
273 if (clk_data && !IS_ERR_OR_NULL(clk_data->clks[mcd->id])) in mtk_clk_register_dividers()
276 clk = clk_register_divider(NULL, mcd->name, mcd->parent_name, in mtk_clk_register_dividers()
277 mcd->flags, base + mcd->div_reg, mcd->div_shift, in mtk_clk_register_dividers()
278 mcd->div_width, mcd->clk_divider_flags, lock); in mtk_clk_register_dividers()
282 mcd->name, PTR_ERR(clk)); in mtk_clk_register_dividers()
287 clk_data->clks[mcd->id] = clk; in mtk_clk_register_dividers()
293 const struct mtk_clk_desc *mcd; in mtk_clk_simple_probe() local
298 mcd = of_device_get_match_data(&pdev->dev); in mtk_clk_simple_probe()
299 if (!mcd) in mtk_clk_simple_probe()
302 clk_data = mtk_alloc_clk_data(mcd->num_clks); in mtk_clk_simple_probe()
306 r = mtk_clk_register_gates(node, mcd->clks, mcd->num_clks, clk_data); in mtk_clk_simple_probe()