Home
last modified time | relevance | path

Searched refs:nr_clks (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/clk/microchip/
H A Dclk-pic32mzda.c158 int nr_clks, i, ret; in pic32mzda_clk_probe() local
212 for (nr_clks = PB1CLK, i = 0; nr_clks <= PB7CLK; i++, nr_clks++) in pic32mzda_clk_probe()
213 clks[nr_clks] = pic32_periph_clk_register(&periph_clocks[i], in pic32mzda_clk_probe()
216 for (nr_clks = REF1CLK, i = 0; nr_clks <= REF5CLK; i++, nr_clks++) in pic32mzda_clk_probe()
217 clks[nr_clks] = pic32_refo_clk_register(&ref_clks[i], core); in pic32mzda_clk_probe()
/linux/drivers/clk/mmp/
H A Dclk.c11 int nr_clks) in mmp_clk_init() argument
15 clk_table = kzalloc_objs(struct clk *, nr_clks); in mmp_clk_init()
20 unit->nr_clks = nr_clks; in mmp_clk_init()
22 unit->clk_data.clk_num = nr_clks; in mmp_clk_init()
186 if (id >= unit->nr_clks) { in mmp_clk_add()
H A Dclk.h133 unsigned int nr_clks; member
249 int nr_clks);
/linux/drivers/clk/hisilicon/
H A Dclk.c27 int nr_clks) in hisi_clk_alloc() argument
45 clk_table = devm_kmalloc_array(&pdev->dev, nr_clks, in hisi_clk_alloc()
52 clk_data->clk_data.clk_num = nr_clks; in hisi_clk_alloc()
59 int nr_clks) in hisi_clk_init() argument
76 clk_table = kzalloc_objs(*clk_table, nr_clks); in hisi_clk_init()
81 clk_data->clk_data.clk_num = nr_clks; in hisi_clk_init()
/linux/drivers/clk/visconti/
H A Dclkc.c189 unsigned long nr_clks) in visconti_init_clk() argument
194 ctx = devm_kzalloc(dev, struct_size(ctx, clk_data.hws, nr_clks), GFP_KERNEL); in visconti_init_clk()
198 for (i = 0; i < nr_clks; ++i) in visconti_init_clk()
200 ctx->clk_data.num = nr_clks; in visconti_init_clk()
H A Dclkc.h70 unsigned long nr_clks);
/linux/drivers/clk/samsung/
H A Dclk-acpm.c32 unsigned int nr_clks; member
62 .nr_clks = ARRAY_SIZE(gs101_acpm_clks),
129 count = acpm_clk_gs101.nr_clks; in acpm_clk_probe()
H A Dclk.c80 void __iomem *base, unsigned long nr_clks) in samsung_clk_init() argument
85 ctx = kzalloc_flex(*ctx, clk_data.hws, nr_clks); in samsung_clk_init()
89 ctx->clk_data.num = nr_clks; in samsung_clk_init()
90 for (i = 0; i < nr_clks; ++i) in samsung_clk_init()
/linux/drivers/clk/rockchip/
H A Dclk.c359 unsigned long nr_clks, bool has_late_clocks) in rockchip_clk_init_base() argument
372 clk_table = kzalloc_objs(struct clk *, nr_clks); in rockchip_clk_init_base()
376 for (i = 0; i < nr_clks; ++i) in rockchip_clk_init_base()
381 ctx->clk_data.clk_num = nr_clks; in rockchip_clk_init_base()
399 unsigned long nr_clks) in rockchip_clk_init() argument
401 return rockchip_clk_init_base(np, base, nr_clks, false); in rockchip_clk_init()
407 unsigned long nr_clks) in rockchip_clk_init_early() argument
409 return rockchip_clk_init_base(np, base, nr_clks, true); in rockchip_clk_init_early()
H A Dclk-rk3528.c1090 unsigned long nr_clks, nr_vo_clks, nr_vpu_clks; in clk_rk3528_probe() local
1103 nr_clks = rockchip_clk_find_max_clk_id(rk3528_clk_branches, in clk_rk3528_probe()
1110 nr_clks = max(nr_clks, nr_vo_clks); in clk_rk3528_probe()
1120 nr_clks = max(nr_clks, nr_vpu_clks); in clk_rk3528_probe()
1126 ctx = rockchip_clk_init(np, reg_base, nr_clks); in clk_rk3528_probe()
H A Dclk.h1277 void __iomem *base, unsigned long nr_clks);
1279 void __iomem *base, unsigned long nr_clks);
/linux/drivers/clk/aspeed/
H A Dclk-ast2700.c128 unsigned int nr_clks; member
905 clk_hw_data = devm_kzalloc(dev, struct_size(clk_hw_data, hws, clk_data->nr_clks), in ast2700_soc_clk_probe()
910 clk_hw_data->num = clk_data->nr_clks; in ast2700_soc_clk_probe()
916 for (i = 0; i < clk_data->nr_clks; i++) { in ast2700_soc_clk_probe()
1029 .nr_clks = ARRAY_SIZE(ast2700_scu0_clk_info),
1035 .nr_clks = ARRAY_SIZE(ast2700_scu1_clk_info),
/linux/drivers/phy/rockchip/
H A Dphy-rockchip-samsung-hdptx.c411 int nr_clks; member
2407 clk_bulk_disable_unprepare(hdptx->nr_clks, hdptx->clks); in rk_hdptx_phy_runtime_suspend()
2417 ret = clk_bulk_prepare_enable(hdptx->nr_clks, hdptx->clks); in rk_hdptx_phy_runtime_resume()
2468 hdptx->nr_clks = ret; in rk_hdptx_phy_probe()