Lines Matching refs:crg
175 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3516cv300_clk_unregister() local
180 ARRAY_SIZE(hi3516cv300_gate_clks), crg->clk_data); in hi3516cv300_clk_unregister()
182 ARRAY_SIZE(hi3516cv300_mux_clks), crg->clk_data); in hi3516cv300_clk_unregister()
184 ARRAY_SIZE(hi3516cv300_fixed_rate_clks), crg->clk_data); in hi3516cv300_clk_unregister()
234 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3516cv300_sysctrl_clk_unregister() local
240 crg->clk_data); in hi3516cv300_sysctrl_clk_unregister()
263 struct hisi_crg_dev *crg; in hi3516cv300_crg_probe() local
265 crg = devm_kmalloc(&pdev->dev, sizeof(*crg), GFP_KERNEL); in hi3516cv300_crg_probe()
266 if (!crg) in hi3516cv300_crg_probe()
269 crg->funcs = of_device_get_match_data(&pdev->dev); in hi3516cv300_crg_probe()
270 if (!crg->funcs) in hi3516cv300_crg_probe()
273 crg->rstc = hisi_reset_init(pdev); in hi3516cv300_crg_probe()
274 if (!crg->rstc) in hi3516cv300_crg_probe()
277 crg->clk_data = crg->funcs->register_clks(pdev); in hi3516cv300_crg_probe()
278 if (IS_ERR(crg->clk_data)) { in hi3516cv300_crg_probe()
279 hisi_reset_exit(crg->rstc); in hi3516cv300_crg_probe()
280 return PTR_ERR(crg->clk_data); in hi3516cv300_crg_probe()
283 platform_set_drvdata(pdev, crg); in hi3516cv300_crg_probe()
289 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3516cv300_crg_remove() local
291 hisi_reset_exit(crg->rstc); in hi3516cv300_crg_remove()
292 crg->funcs->unregister_clks(pdev); in hi3516cv300_crg_remove()