/linux-master/drivers/clk/mediatek/ |
H A D | clk-mt6765.c | 730 struct clk_hw_onecell_data *clk_data; local 739 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK); 740 if (!clk_data) 743 mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); 746 ARRAY_SIZE(apmixed_clks), clk_data); 747 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); 767 struct clk_hw_onecell_data *clk_data; local 773 clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); 774 if (!clk_data) 778 clk_data); 804 struct clk_hw_onecell_data *clk_data; local [all...] |
H A D | clk-pll.c | 363 struct clk_hw_onecell_data *clk_data) 378 if (!IS_ERR_OR_NULL(clk_data->hws[pll->id])) { 392 clk_data->hws[pll->id] = hw; 401 mtk_clk_unregister_pll(clk_data->hws[pll->id]); 402 clk_data->hws[pll->id] = ERR_PTR(-ENOENT); 420 struct clk_hw_onecell_data *clk_data) 425 if (!clk_data) 431 if (IS_ERR_OR_NULL(clk_data->hws[pll->id])) 440 base = mtk_clk_pll_get_base(clk_data->hws[pll->id], pll); 442 mtk_clk_unregister_pll(clk_data 361 mtk_clk_register_plls(struct device_node *node, const struct mtk_pll_data *plls, int num_plls, struct clk_hw_onecell_data *clk_data) argument 419 mtk_clk_unregister_plls(const struct mtk_pll_data *plls, int num_plls, struct clk_hw_onecell_data *clk_data) argument [all...] |
H A D | clk-pll.h | 76 struct clk_hw_onecell_data *clk_data); 78 struct clk_hw_onecell_data *clk_data);
|
H A D | clk-mt6797.c | 384 struct clk_hw_onecell_data *clk_data; local 392 clk_data = mtk_alloc_clk_data(CLK_TOP_NR); 393 if (!clk_data) 397 clk_data); 401 &mt6797_clk_lock, clk_data); 403 return of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); 651 struct clk_hw_onecell_data *clk_data; local 654 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR); 655 if (!clk_data) 658 mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); [all...] |
/linux-master/drivers/clk/hisilicon/ |
H A D | clk-hi3620.c | 196 struct hisi_clock_data *clk_data; local 198 clk_data = hisi_clk_init(np, HI3620_NR_CLKS); 199 if (!clk_data) 204 clk_data); 207 clk_data); 209 clk_data); 211 clk_data); 214 clk_data); 451 struct clk_onecell_data *clk_data; local 464 clk_data [all...] |
H A D | clk-hix5hd2.c | 295 data->clk_data.clks[clks[i].id] = clk; 301 struct hisi_clock_data *clk_data; local 303 clk_data = hisi_clk_init(np, HIX5HD2_NR_CLKS); 304 if (!clk_data) 309 clk_data); 311 clk_data); 313 ARRAY_SIZE(hix5hd2_gate_clks), clk_data); 316 clk_data);
|
H A D | clk.h | 22 struct clk_onecell_data clk_data; member in struct:hisi_clock_data 142 struct clk **clocks = data->clk_data.clks; \
|
/linux-master/drivers/clk/ |
H A D | clk-s2mps11.c | 124 struct clk_hw_onecell_data *clk_data; local 134 clk_data = devm_kzalloc(&pdev->dev, 135 struct_size(clk_data, hws, S2MPS11_CLKS_NUM), 137 if (!clk_data) 186 clk_data->hws[i] = &s2mps11_clks[i].hw; 189 clk_data->num = S2MPS11_CLKS_NUM; 191 clk_data);
|
H A D | clk-asm9260.c | 60 static struct clk_hw_onecell_data *clk_data; variable in typeref:struct:clk_hw_onecell_data 265 clk_data = kzalloc(struct_size(clk_data, hws, MAX_CLKS), GFP_KERNEL); 266 if (!clk_data) 268 clk_data->num = MAX_CLKS; 269 hws = clk_data->hws; 330 of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data);
|
H A D | clk-scmi.c | 239 struct clk_hw_onecell_data *clk_data; local 259 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, count), 261 if (!clk_data) 264 clk_data->num = count; 265 hws = clk_data->hws; 328 clk_data);
|
/linux-master/drivers/media/platform/qcom/venus/ |
H A D | pm_helpers.c | 559 if (inst->clk_data.core_id == core_id && 587 vpp_freq = inst_pos->clk_data.vpp_freq; 589 vpp_freq = low_power ? inst_pos->clk_data.low_power_freq : 590 inst_pos->clk_data.vpp_freq; 594 coreid = inst_pos->clk_data.core_id; 640 if (inst->clk_data.core_id != VIDC_CORE_ID_DEFAULT) 644 cur_inst_load *= inst->clk_data.vpp_freq; 648 cur_inst_lp_load *= inst->clk_data.low_power_freq; 657 inst->clk_data.core_id = min_coreid; 661 inst->clk_data [all...] |
/linux-master/drivers/clk/visconti/ |
H A D | pll-tmpv770x.c | 75 ctx->clk_data.hws[TMPV770X_PLL_PIPLL1] = 77 ctx->clk_data.hws[TMPV770X_PLL_PIDNNPLL] = 79 ctx->clk_data.hws[TMPV770X_PLL_PIETHERPLL] =
|
H A D | pll.h | 21 struct clk_hw_onecell_data clk_data; member in struct:visconti_pll_provider
|
H A D | clkc.c | 181 ctx->clk_data.hws[clks[i].id] = gate_clk; 194 ctx = devm_kzalloc(dev, struct_size(ctx, clk_data.hws, nr_clks), GFP_KERNEL); 199 ctx->clk_data.hws[i] = ERR_PTR(-ENOENT); 200 ctx->clk_data.num = nr_clks;
|
/linux-master/drivers/clk/st/ |
H A D | clk-flexgen.c | 646 struct clk_onecell_data *clk_data; local 679 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); 680 if (!clk_data) 688 __func__, clk_data->clk_num); 691 clk_data->clk_num = ret; 693 clk_data->clk_num = data->outputs_nb; 695 clk_data->clks = kcalloc(clk_data->clk_num, sizeof(struct clk *), 697 if (!clk_data [all...] |
/linux-master/drivers/irqchip/ |
H A D | irq-gic-pm.c | 21 const struct gic_clk_data *clk_data; member in struct:gic_chip_pm 29 const struct gic_clk_data *data = chip_pm->clk_data; 55 const struct gic_clk_data *data = chip_pm->clk_data; 100 chip_pm->clk_data = data;
|
/linux-master/drivers/platform/x86/ |
H A D | pmc_atom.c | 429 struct pmc_clk_data *clk_data; local 431 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); 432 if (!clk_data) 435 clk_data->base = pmc_regmap; /* offset is added by client */ 436 clk_data->clks = pmc_data->clks; 438 clk_data->critical = pmc_clk_is_critical; 442 clk_data, sizeof(*clk_data)); 444 kfree(clk_data); [all...] |
/linux-master/drivers/clk/samsung/ |
H A D | clk-cpu.c | 643 const struct samsung_cpu_clock *clk_data) 653 hws = ctx->clk_data.hws; 654 parent = hws[clk_data->parent_id]; 655 alt_parent = hws[clk_data->alt_parent_id]; 667 init.name = clk_data->name; 675 cpuclk->base = ctx->reg_base + clk_data->offset; 677 cpuclk->flags = clk_data->flags; 679 cpuclk->chip = &exynos_clkcpu_chips[clk_data->reg_layout]; 684 __func__, clk_data->name); 689 for (num_cfgs = 0; clk_data 642 exynos_register_cpu_clock(struct samsung_clk_provider *ctx, const struct samsung_cpu_clock *clk_data) argument [all...] |
/linux-master/drivers/clk/mvebu/ |
H A D | clk-corediv.c | 62 static struct clk_onecell_data clk_data; variable in typeref:struct:clk_onecell_data 268 clk_data.clk_num = soc_desc->ndescs; 271 clks = kcalloc(clk_data.clk_num, sizeof(struct clk *), 276 corediv = kcalloc(clk_data.clk_num, sizeof(struct clk_corediv), 283 for (i = 0; i < clk_data.clk_num; i++) { 301 clk_data.clks = clks; 302 of_clk_add_provider(node, of_clk_src_onecell_get, &clk_data);
|
/linux-master/drivers/clk/berlin/ |
H A D | bg2q.c | 39 static struct clk_hw_onecell_data *clk_data; variable in typeref:struct:clk_hw_onecell_data 288 clk_data = kzalloc(struct_size(clk_data, hws, MAX_CLKS), GFP_KERNEL); 289 if (!clk_data) { 293 clk_data->num = MAX_CLKS; 294 hws = clk_data->hws; 377 of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data);
|
/linux-master/drivers/clk/at91/ |
H A D | sckc.c | 472 struct clk_hw_onecell_data *clk_data; local 503 clk_data = kzalloc(struct_size(clk_data, hws, 2), GFP_KERNEL); 504 if (!clk_data) 508 clk_data->num = 2; 509 clk_data->hws[0] = clk_hw_register_fixed_rate_parent_hw(NULL, "md_slck", 512 if (IS_ERR(clk_data->hws[0])) 517 clk_data->hws[1] = at91_clk_register_sam9x5_slow(regbase, "td_slck", 520 if (IS_ERR(clk_data->hws[1])) 523 ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); [all...] |
/linux-master/drivers/clk/ralink/ |
H A D | clk-mtmips.c | 227 struct clk_hw_onecell_data *clk_data, 230 struct clk_hw **hws = clk_data->hws; 279 static int mtmips_register_fixed_clocks(struct clk_hw_onecell_data *clk_data, argument 282 struct clk_hw **hws = clk_data->hws; 330 static int mtmips_register_factor_clocks(struct clk_hw_onecell_data *clk_data, argument 333 struct clk_hw **hws = clk_data->hws; 717 struct clk_hw_onecell_data *clk_data, 720 struct clk_hw **hws = clk_data->hws; 891 struct clk_hw_onecell_data *clk_data; local 914 clk_data 226 mtmips_register_pherip_clocks(struct device_node *np, struct clk_hw_onecell_data *clk_data, struct mtmips_clk_priv *priv) argument 716 mtmips_register_clocks(struct device_node *np, struct clk_hw_onecell_data *clk_data, struct mtmips_clk_priv *priv) argument [all...] |
/linux-master/drivers/clk/bcm/ |
H A D | clk-raspberrypi.c | 386 struct clk_hw_onecell_data *clk_data; local 421 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, 424 if (!clk_data) 427 ret = raspberrypi_discover_clocks(rpi, clk_data); 432 clk_data);
|
/linux-master/drivers/clk/mxs/ |
H A D | clk-imx23.c | 91 static struct clk_onecell_data clk_data; variable in typeref:struct:clk_onecell_data 162 clk_data.clks = clks; 163 clk_data.clk_num = ARRAY_SIZE(clks); 164 of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data);
|
/linux-master/drivers/clk/axis/ |
H A D | clk-artpec6.c | 22 struct clk_onecell_data clk_data; member in struct:artpec6_clkctrl_drvdata 107 clkdata->clk_data.clks = clkdata->clk_table; 108 clkdata->clk_data.clk_num = ARTPEC6_CLK_NUMCLOCKS; 110 of_clk_add_provider(np, of_clk_src_onecell_get, &clkdata->clk_data);
|