Lines Matching refs:crg
187 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3516cv300_clk_unregister() local
192 ARRAY_SIZE(hi3516cv300_gate_clks), crg->clk_data); in hi3516cv300_clk_unregister()
194 ARRAY_SIZE(hi3516cv300_mux_clks), crg->clk_data); in hi3516cv300_clk_unregister()
196 ARRAY_SIZE(hi3516cv300_fixed_rate_clks), crg->clk_data); in hi3516cv300_clk_unregister()
246 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3516cv300_sysctrl_clk_unregister() local
252 crg->clk_data); in hi3516cv300_sysctrl_clk_unregister()
275 struct hisi_crg_dev *crg; in hi3516cv300_crg_probe() local
277 crg = devm_kmalloc(&pdev->dev, sizeof(*crg), GFP_KERNEL); in hi3516cv300_crg_probe()
278 if (!crg) in hi3516cv300_crg_probe()
281 crg->funcs = of_device_get_match_data(&pdev->dev); in hi3516cv300_crg_probe()
282 if (!crg->funcs) in hi3516cv300_crg_probe()
285 crg->rstc = hisi_reset_init(pdev); in hi3516cv300_crg_probe()
286 if (!crg->rstc) in hi3516cv300_crg_probe()
289 crg->clk_data = crg->funcs->register_clks(pdev); in hi3516cv300_crg_probe()
290 if (IS_ERR(crg->clk_data)) { in hi3516cv300_crg_probe()
291 hisi_reset_exit(crg->rstc); in hi3516cv300_crg_probe()
292 return PTR_ERR(crg->clk_data); in hi3516cv300_crg_probe()
295 platform_set_drvdata(pdev, crg); in hi3516cv300_crg_probe()
301 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3516cv300_crg_remove() local
303 hisi_reset_exit(crg->rstc); in hi3516cv300_crg_remove()
304 crg->funcs->unregister_clks(pdev); in hi3516cv300_crg_remove()