Lines Matching refs:crg
256 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3798cv200_clk_unregister() local
262 crg->clk_data); in hi3798cv200_clk_unregister()
265 crg->clk_data); in hi3798cv200_clk_unregister()
268 crg->clk_data); in hi3798cv200_clk_unregister()
321 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3798cv200_sysctrl_clk_unregister() local
327 crg->clk_data); in hi3798cv200_sysctrl_clk_unregister()
346 struct hisi_crg_dev *crg; in hi3798cv200_crg_probe() local
348 crg = devm_kmalloc(&pdev->dev, sizeof(*crg), GFP_KERNEL); in hi3798cv200_crg_probe()
349 if (!crg) in hi3798cv200_crg_probe()
352 crg->funcs = of_device_get_match_data(&pdev->dev); in hi3798cv200_crg_probe()
353 if (!crg->funcs) in hi3798cv200_crg_probe()
356 crg->rstc = hisi_reset_init(pdev); in hi3798cv200_crg_probe()
357 if (!crg->rstc) in hi3798cv200_crg_probe()
360 crg->clk_data = crg->funcs->register_clks(pdev); in hi3798cv200_crg_probe()
361 if (IS_ERR(crg->clk_data)) { in hi3798cv200_crg_probe()
362 hisi_reset_exit(crg->rstc); in hi3798cv200_crg_probe()
363 return PTR_ERR(crg->clk_data); in hi3798cv200_crg_probe()
366 platform_set_drvdata(pdev, crg); in hi3798cv200_crg_probe()
372 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3798cv200_crg_remove() local
374 hisi_reset_exit(crg->rstc); in hi3798cv200_crg_remove()
375 crg->funcs->unregister_clks(pdev); in hi3798cv200_crg_remove()