/drivers/clk/ingenic/ |
D | jz4780-cgu.c | 294 .parents = { JZ4780_CLK_EXCLK, -1, -1, -1 }, 300 .parents = { JZ4780_CLK_EXCLK, -1, -1, -1 }, 306 .parents = { JZ4780_CLK_EXCLK, -1, -1, -1 }, 312 .parents = { JZ4780_CLK_EXCLK, -1, -1, -1 }, 322 .parents = { -1, -1, JZ4780_CLK_EXCLK, -1 }, 330 .parents = { -1, JZ4780_CLK_APLL, JZ4780_CLK_EXCLK, 337 .parents = { -1, JZ4780_CLK_SCLKA, JZ4780_CLK_MPLL, 344 .parents = { JZ4780_CLK_CPUMUX, -1, -1, -1 }, 350 .parents = { JZ4780_CLK_CPUMUX, -1, -1, -1 }, 356 .parents = { -1, JZ4780_CLK_SCLKA, JZ4780_CLK_MPLL, [all …]
|
D | jz4770-cgu.c | 104 .parents = { JZ4770_CLK_EXT }, 128 .parents = { JZ4770_CLK_EXT }, 152 .parents = { JZ4770_CLK_PLL0, }, 160 .parents = { JZ4770_CLK_PLL0, }, 168 .parents = { JZ4770_CLK_PLL0, }, 177 .parents = { JZ4770_CLK_PLL0, }, 185 .parents = { JZ4770_CLK_PLL0, }, 194 .parents = { JZ4770_CLK_PLL0, }, 205 .parents = { JZ4770_CLK_PLL0, JZ4770_CLK_PLL1, }, 212 .parents = { JZ4770_CLK_PLL0, JZ4770_CLK_PLL1, }, [all …]
|
D | jz4760-cgu.c | 94 .parents = { JZ4760_CLK_EXT }, 119 .parents = { JZ4760_CLK_EXT }, 144 .parents = { JZ4760_CLK_PLL0, }, 152 .parents = { JZ4760_CLK_PLL0, }, 160 .parents = { JZ4760_CLK_PLL0, }, 168 .parents = { JZ4760_CLK_PLL0, }, 176 .parents = { JZ4760_CLK_PLL0, }, 184 .parents = { JZ4760_CLK_PLL0, }, 195 .parents = { JZ4760_CLK_PLL0 }, 206 .parents = { JZ4760_CLK_PLL0_HALF, JZ4760_CLK_PLL1, }, [all …]
|
D | x1830-cgu.c | 114 .parents = { X1830_CLK_EXCLK, -1, -1, -1 }, 137 .parents = { X1830_CLK_EXCLK, -1, -1, -1 }, 160 .parents = { X1830_CLK_EXCLK, -1, -1, -1 }, 183 .parents = { X1830_CLK_EXCLK, -1, -1, -1 }, 208 .parents = { X1830_CLK_EXCLK, -1, -1, -1 }, 216 .parents = { -1, X1830_CLK_EXCLK, X1830_CLK_APLL, -1 }, 222 .parents = { -1, X1830_CLK_SCLKA, X1830_CLK_MPLL, -1 }, 228 .parents = { X1830_CLK_CPUMUX, -1, -1, -1 }, 235 .parents = { X1830_CLK_CPUMUX, -1, -1, -1 }, 241 .parents = { -1, X1830_CLK_SCLKA, X1830_CLK_MPLL, -1 }, [all …]
|
D | jz4725b-cgu.c | 56 .parents = { JZ4725B_CLK_EXT, -1, -1, -1 }, 81 .parents = { JZ4725B_CLK_PLL, -1, -1, -1 }, 90 .parents = { JZ4725B_CLK_PLL, -1, -1, -1 }, 99 .parents = { JZ4725B_CLK_PLL, -1, -1, -1 }, 108 .parents = { JZ4725B_CLK_PLL, -1, -1, -1 }, 117 .parents = { JZ4725B_CLK_PLL, -1, -1, -1 }, 126 .parents = { JZ4725B_CLK_PLL, -1, -1, -1 }, 136 .parents = { JZ4725B_CLK_PLL_HALF, -1, -1, -1 }, 143 .parents = { JZ4725B_CLK_EXT, JZ4725B_CLK_PLL_HALF, -1, -1 }, 150 .parents = { JZ4725B_CLK_EXT, JZ4725B_CLK_PLL, -1, -1 }, [all …]
|
D | x1000-cgu.c | 186 .parents = { X1000_CLK_EXCLK, -1, -1, -1 }, 209 .parents = { X1000_CLK_EXCLK, -1, -1, -1 }, 234 .parents = { -1, -1, X1000_CLK_EXCLK, -1 }, 242 .parents = { -1, X1000_CLK_EXCLK, X1000_CLK_APLL, -1 }, 248 .parents = { -1, X1000_CLK_SCLKA, X1000_CLK_MPLL, -1 }, 254 .parents = { X1000_CLK_CPUMUX, -1, -1, -1 }, 261 .parents = { X1000_CLK_CPUMUX, -1, -1, -1 }, 267 .parents = { -1, X1000_CLK_SCLKA, X1000_CLK_MPLL, -1 }, 274 .parents = { -1, X1000_CLK_SCLKA, X1000_CLK_MPLL, -1 }, 280 .parents = { X1000_CLK_AHB2PMUX, -1, -1, -1 }, [all …]
|
D | jz4740-cgu.c | 71 .parents = { JZ4740_CLK_EXT, -1, -1, -1 }, 96 .parents = { JZ4740_CLK_PLL, -1, -1, -1 }, 105 .parents = { JZ4740_CLK_PLL, -1, -1, -1 }, 114 .parents = { JZ4740_CLK_PLL, -1, -1, -1 }, 123 .parents = { JZ4740_CLK_PLL, -1, -1, -1 }, 132 .parents = { JZ4740_CLK_PLL, -1, -1, -1 }, 141 .parents = { JZ4740_CLK_PLL_HALF, -1, -1, -1 }, 151 .parents = { JZ4740_CLK_PLL_HALF, -1, -1, -1 }, 157 .parents = { JZ4740_CLK_EXT, JZ4740_CLK_PLL_HALF, -1, -1 }, 165 .parents = { JZ4740_CLK_EXT, JZ4740_CLK_PLL, -1, -1 }, [all …]
|
/drivers/clk/st/ |
D | clkgen-mux.c | 21 const char **parents; in clkgen_mux_get_parents() local 28 parents = kcalloc(nparents, sizeof(const char *), GFP_KERNEL); in clkgen_mux_get_parents() 29 if (!parents) in clkgen_mux_get_parents() 32 *num_parents = of_clk_parent_fill(np, parents, nparents); in clkgen_mux_get_parents() 33 return parents; in clkgen_mux_get_parents() 57 const char **parents; in st_of_clkgen_mux_setup() local 66 parents = clkgen_mux_get_parents(np, &num_parents); in st_of_clkgen_mux_setup() 67 if (IS_ERR(parents)) { in st_of_clkgen_mux_setup() 69 __func__, PTR_ERR(parents)); in st_of_clkgen_mux_setup() 73 clk = clk_register_mux(NULL, np->name, parents, num_parents, in st_of_clkgen_mux_setup() [all …]
|
D | clk-flexgen.c | 280 const char **parents; in flexgen_get_parents() local 287 parents = kcalloc(nparents, sizeof(const char *), GFP_KERNEL); in flexgen_get_parents() 288 if (!parents) in flexgen_get_parents() 291 *num_parents = of_clk_parent_fill(np, parents, nparents); in flexgen_get_parents() 293 return parents; in flexgen_get_parents() 646 const char **parents; in st_of_flexgen_setup() local 665 parents = flexgen_get_parents(np, &num_parents); in st_of_flexgen_setup() 666 if (!parents) { in st_of_flexgen_setup() 726 clk = clk_register_flexgen(clk_name, parents, num_parents, in st_of_flexgen_setup() 735 kfree(parents); in st_of_flexgen_setup() [all …]
|
/drivers/clk/zynqmp/ |
D | clkc.c | 98 u32 parents[CLK_GET_PARENTS_RESP_WORDS]; member 122 const char * const *parents, 306 const char * const *parents, in zynqmp_clk_register_fixed_factor() argument 330 parents[0], in zynqmp_clk_register_fixed_factor() 471 static int __zynqmp_clock_get_parents(struct clock_parent *parents, in __zynqmp_clock_get_parents() argument 478 for (i = 0; i < ARRAY_SIZE(response->parents); i++) { in __zynqmp_clock_get_parents() 479 if (response->parents[i] == NA_PARENT) in __zynqmp_clock_get_parents() 482 parent = &parents[i]; in __zynqmp_clock_get_parents() 483 parent->id = FIELD_GET(CLK_PARENTS_ID, response->parents[i]); in __zynqmp_clock_get_parents() 484 if (response->parents[i] == DUMMY_PARENT) { in __zynqmp_clock_get_parents() [all …]
|
D | clk-zynqmp.h | 71 const char * const *parents, 76 const char * const *parents, 82 const char * const *parents, 87 const char * const *parents, 93 const char * const *parents,
|
/drivers/clk/sunxi/ |
D | clk-sun8i-mbus.c | 27 const char **parents; in sun8i_a23_mbus_setup() local 37 parents = kcalloc(num_parents, sizeof(*parents), GFP_KERNEL); in sun8i_a23_mbus_setup() 38 if (!parents) in sun8i_a23_mbus_setup() 60 of_clk_parent_fill(node, parents, num_parents); in sun8i_a23_mbus_setup() 77 clk = clk_register_composite(NULL, clk_name, parents, num_parents, in sun8i_a23_mbus_setup() 89 kfree(parents); /* parents is deep copied */ in sun8i_a23_mbus_setup() 107 kfree(parents); in sun8i_a23_mbus_setup()
|
D | clk-sun4i-display.c | 19 u8 parents; member 104 const char *parents[4]; in sun4i_a10_display_init() local 123 ret = of_clk_parent_fill(node, parents, data->parents); in sun4i_a10_display_init() 124 if (ret != data->parents) { in sun4i_a10_display_init() 158 parents, data->parents, in sun4i_a10_display_init() 224 .parents = 4, 242 .parents = 3,
|
D | clk-a20-gmac.c | 58 const char *parents[SUN7I_A20_GMAC_PARENTS]; in sun7i_a20_gmac_clk_setup() local 74 if (of_clk_parent_fill(node, parents, 2) != 2) in sun7i_a20_gmac_clk_setup() 91 parents, SUN7I_A20_GMAC_PARENTS, in sun7i_a20_gmac_clk_setup()
|
D | clk-a10-mod1.c | 26 const char *parents[4]; in sun4i_mod1_clk_setup() local 44 i = of_clk_parent_fill(node, parents, SUN4I_MOD1_MAX_PARENTS); in sun4i_mod1_clk_setup() 54 clk = clk_register_composite(NULL, clk_name, parents, i, in sun4i_mod1_clk_setup()
|
/drivers/clk/tegra/ |
D | clk-bpmp.c | 23 unsigned int parents[MRQ_CLK_MAX_PARENTS]; member 35 unsigned int *parents; member 203 request.parent_id = clk->parents[index]; in tegra_bpmp_clk_set_parent() 244 if (clk->parents[i] == response.parent_id) in tegra_bpmp_clk_get_parent() 351 info->parents[i] = response.parents[i]; in tegra_bpmp_clk_get_info() 395 dev_printk(level, bpmp->dev, " %03u\n", info->parents[i]); in tegra_bpmp_clk_info_dump() 472 const char **parents; in tegra_bpmp_clk_register() local 483 clk->parents = devm_kcalloc(bpmp->dev, info->num_parents, in tegra_bpmp_clk_register() 484 sizeof(*clk->parents), GFP_KERNEL); in tegra_bpmp_clk_register() 485 if (!clk->parents) in tegra_bpmp_clk_register() [all …]
|
/drivers/clk/imx/ |
D | clk.h | 118 #define imx_clk_mux(name, reg, shift, width, parents, num_parents) \ argument 119 to_clk(imx_clk_hw_mux(name, reg, shift, width, parents, num_parents)) 240 u8 shift, u8 width, const char * const *parents, 263 u8 shift, u8 width, const char * const *parents, in imx_clk_hw_mux_ldb() argument 266 return clk_hw_register_mux(NULL, name, parents, num_parents, in imx_clk_hw_mux_ldb() 437 u8 shift, u8 width, const char * const *parents, in imx_clk_hw_mux() argument 440 return clk_hw_register_mux(NULL, name, parents, num_parents, in imx_clk_hw_mux() 447 u8 width, const char * const *parents, int num_parents) in imx_dev_clk_hw_mux() argument 449 return clk_hw_register_mux(dev, name, parents, num_parents, in imx_dev_clk_hw_mux() 455 u8 shift, u8 width, const char * const *parents, in imx_clk_mux2() argument [all …]
|
D | clk-scu.h | 32 const char * const *parents, 36 const char * const *parents, int num_parents, 56 static inline struct clk_hw *imx_clk_scu2(const char *name, const char * const *parents, in imx_clk_scu2() argument 59 return imx_clk_scu_alloc_dev(name, parents, num_parents, rsrc_id, clk_type); in imx_clk_scu2()
|
/drivers/gpu/drm/sun4i/ |
D | sun8i_hdmi_phy_clk.c | 148 const char *parents[2]; in sun8i_phy_clk_create() local 150 parents[0] = __clk_get_name(phy->clk_pll0); in sun8i_phy_clk_create() 151 if (!parents[0]) in sun8i_phy_clk_create() 155 parents[1] = __clk_get_name(phy->clk_pll1); in sun8i_phy_clk_create() 156 if (!parents[1]) in sun8i_phy_clk_create() 166 init.parent_names = parents; in sun8i_phy_clk_create()
|
D | sun4i_hdmi_tmds_clk.c | 207 const char *parents[2]; in sun4i_tmds_create() local 209 parents[0] = __clk_get_name(hdmi->pll0_clk); in sun4i_tmds_create() 210 if (!parents[0]) in sun4i_tmds_create() 213 parents[1] = __clk_get_name(hdmi->pll1_clk); in sun4i_tmds_create() 214 if (!parents[1]) in sun4i_tmds_create() 223 init.parent_names = parents; in sun4i_tmds_create()
|
/drivers/clk/nxp/ |
D | clk-lpc18xx-cgu.c | 539 const char *parents[CLK_SRC_MAX]; in lpc18xx_cgu_register_div() local 545 lpc18xx_fill_parent_names(parents, clk->mux.table, clk->n_parents); in lpc18xx_cgu_register_div() 547 return clk_register_composite(NULL, name, parents, clk->n_parents, in lpc18xx_cgu_register_div() 559 const char *parents[CLK_SRC_MAX]; in lpc18xx_register_base_clk() local 567 lpc18xx_fill_parent_names(parents, clk->mux.table, clk->n_parents); in lpc18xx_register_base_clk() 571 return clk_register_composite(NULL, name, parents, clk->n_parents, in lpc18xx_register_base_clk() 575 return clk_register_composite(NULL, name, parents, clk->n_parents, in lpc18xx_register_base_clk() 586 const char *parents[CLK_SRC_MAX]; in lpc18xx_cgu_register_pll() local 592 lpc18xx_fill_parent_names(parents, clk->mux.table, clk->n_parents); in lpc18xx_cgu_register_pll() 594 return clk_register_composite(NULL, name, parents, clk->n_parents, in lpc18xx_cgu_register_pll() [all …]
|
/drivers/clk/x86/ |
D | clk-pmc-atom.c | 47 struct clk_plt_fixed **parents; member 248 plt_clk_unregister_fixed_rate(data->parents[i]); in plt_clk_unregister_fixed_rate_loop() 279 data->parents = devm_kcalloc(&pdev->dev, nparents, in plt_clk_register_parents() 280 sizeof(*data->parents), GFP_KERNEL); in plt_clk_register_parents() 281 if (!data->parents) in plt_clk_register_parents() 290 data->parents[i] = in plt_clk_register_parents() 294 if (IS_ERR(data->parents[i])) { in plt_clk_register_parents() 295 err = PTR_ERR(data->parents[i]); in plt_clk_register_parents()
|
/drivers/clk/samsung/ |
D | clk-exynos-clkout.c | 106 struct clk *parents[EXYNOS_CLKOUT_PARENTS]; in exynos_clkout_probe() local 139 parents[i] = of_clk_get_by_name(clkout->np, name); in exynos_clkout_probe() 140 if (IS_ERR(parents[i])) { in exynos_clkout_probe() 145 parent_names[i] = __clk_get_name(parents[i]); in exynos_clkout_probe() 191 if (!IS_ERR(parents[i])) in exynos_clkout_probe() 192 clk_put(parents[i]); in exynos_clkout_probe()
|
/drivers/clk/keystone/ |
D | pll.c | 303 const char *parents[2]; in of_pll_mux_clk_init() local 313 of_clk_parent_fill(node, parents, 2); in of_pll_mux_clk_init() 314 if (!parents[0] || !parents[1]) { in of_pll_mux_clk_init() 329 clk = clk_register_mux(NULL, clk_name, (const char **)&parents, in of_pll_mux_clk_init() 330 ARRAY_SIZE(parents) , 0, reg, shift, mask, in of_pll_mux_clk_init()
|
/drivers/gpio/ |
D | gpio-ep93xx.c | 375 girq->parents = devm_kcalloc(dev, girq->num_parents, in ep93xx_gpio_add_bank() 376 sizeof(*girq->parents), in ep93xx_gpio_add_bank() 378 if (!girq->parents) in ep93xx_gpio_add_bank() 382 girq->parents[0] = ab_parent_irq; in ep93xx_gpio_add_bank() 397 girq->parents = devm_kcalloc(dev, girq->num_parents, in ep93xx_gpio_add_bank() 398 sizeof(*girq->parents), in ep93xx_gpio_add_bank() 400 if (!girq->parents) in ep93xx_gpio_add_bank() 404 girq->parents[i] = platform_get_irq(pdev, i + 1); in ep93xx_gpio_add_bank()
|