Lines Matching refs:crg
268 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3798cv200_clk_unregister() local
274 crg->clk_data); in hi3798cv200_clk_unregister()
277 crg->clk_data); in hi3798cv200_clk_unregister()
280 crg->clk_data); in hi3798cv200_clk_unregister()
333 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3798cv200_sysctrl_clk_unregister() local
339 crg->clk_data); in hi3798cv200_sysctrl_clk_unregister()
358 struct hisi_crg_dev *crg; in hi3798cv200_crg_probe() local
360 crg = devm_kmalloc(&pdev->dev, sizeof(*crg), GFP_KERNEL); in hi3798cv200_crg_probe()
361 if (!crg) in hi3798cv200_crg_probe()
364 crg->funcs = of_device_get_match_data(&pdev->dev); in hi3798cv200_crg_probe()
365 if (!crg->funcs) in hi3798cv200_crg_probe()
368 crg->rstc = hisi_reset_init(pdev); in hi3798cv200_crg_probe()
369 if (!crg->rstc) in hi3798cv200_crg_probe()
372 crg->clk_data = crg->funcs->register_clks(pdev); in hi3798cv200_crg_probe()
373 if (IS_ERR(crg->clk_data)) { in hi3798cv200_crg_probe()
374 hisi_reset_exit(crg->rstc); in hi3798cv200_crg_probe()
375 return PTR_ERR(crg->clk_data); in hi3798cv200_crg_probe()
378 platform_set_drvdata(pdev, crg); in hi3798cv200_crg_probe()
384 struct hisi_crg_dev *crg = platform_get_drvdata(pdev); in hi3798cv200_crg_remove() local
386 hisi_reset_exit(crg->rstc); in hi3798cv200_crg_remove()
387 crg->funcs->unregister_clks(pdev); in hi3798cv200_crg_remove()