Home
last modified time | relevance | path

Searched refs:p_clk (Results 1 – 4 of 4) sorted by relevance

/drivers/clk/hisilicon/
Dclk-hix5hd2.c260 struct hix5hd2_clk_complex *p_clk; in hix5hd2_clk_register_complex() local
264 p_clk = kzalloc(sizeof(*p_clk), GFP_KERNEL); in hix5hd2_clk_register_complex()
265 if (!p_clk) in hix5hd2_clk_register_complex()
279 p_clk->ctrl_reg = base + clks[i].ctrl_reg; in hix5hd2_clk_register_complex()
280 p_clk->ctrl_clk_mask = clks[i].ctrl_clk_mask; in hix5hd2_clk_register_complex()
281 p_clk->ctrl_rst_mask = clks[i].ctrl_rst_mask; in hix5hd2_clk_register_complex()
282 p_clk->phy_reg = base + clks[i].phy_reg; in hix5hd2_clk_register_complex()
283 p_clk->phy_clk_mask = clks[i].phy_clk_mask; in hix5hd2_clk_register_complex()
284 p_clk->phy_rst_mask = clks[i].phy_rst_mask; in hix5hd2_clk_register_complex()
285 p_clk->hw.init = &init; in hix5hd2_clk_register_complex()
[all …]
Dclk-hi3559a.c459 struct hi3559av100_clk_pll *p_clk = NULL; in hisi_clk_register_pll() local
464 p_clk = devm_kzalloc(dev, sizeof(*p_clk) * nums, GFP_KERNEL); in hisi_clk_register_pll()
466 if (!p_clk) in hisi_clk_register_pll()
477 p_clk->ctrl_reg1 = base + clks[i].ctrl_reg1; in hisi_clk_register_pll()
478 p_clk->frac_shift = clks[i].frac_shift; in hisi_clk_register_pll()
479 p_clk->frac_width = clks[i].frac_width; in hisi_clk_register_pll()
480 p_clk->postdiv1_shift = clks[i].postdiv1_shift; in hisi_clk_register_pll()
481 p_clk->postdiv1_width = clks[i].postdiv1_width; in hisi_clk_register_pll()
482 p_clk->postdiv2_shift = clks[i].postdiv2_shift; in hisi_clk_register_pll()
483 p_clk->postdiv2_width = clks[i].postdiv2_width; in hisi_clk_register_pll()
[all …]
/drivers/media/platform/cadence/
Dcdns-csi2rx.c69 struct clk *p_clk; member
111 ret = clk_prepare_enable(csi2rx->p_clk); in csi2rx_start()
172 clk_disable_unprepare(csi2rx->p_clk); in csi2rx_start()
181 clk_disable_unprepare(csi2rx->p_clk); in csi2rx_start()
190 clk_prepare_enable(csi2rx->p_clk); in csi2rx_stop()
199 clk_disable_unprepare(csi2rx->p_clk); in csi2rx_stop()
296 csi2rx->p_clk = devm_clk_get(&pdev->dev, "p_clk"); in csi2rx_get_resources()
297 if (IS_ERR(csi2rx->p_clk)) { in csi2rx_get_resources()
299 return PTR_ERR(csi2rx->p_clk); in csi2rx_get_resources()
317 ret = clk_prepare_enable(csi2rx->p_clk); in csi2rx_get_resources()
[all …]
Dcdns-csi2tx.c107 struct clk *p_clk; member
445 csi2tx->p_clk = devm_clk_get(&pdev->dev, "p_clk"); in csi2tx_get_resources()
446 if (IS_ERR(csi2tx->p_clk)) { in csi2tx_get_resources()
448 return PTR_ERR(csi2tx->p_clk); in csi2tx_get_resources()
457 ret = clk_prepare_enable(csi2tx->p_clk); in csi2tx_get_resources()
464 clk_disable_unprepare(csi2tx->p_clk); in csi2tx_get_resources()