Home
last modified time | relevance | path

Searched refs:parent_hw (Results 1 – 25 of 36) sorted by relevance

12

/linux/drivers/clk/
H A Dclk-fixed-rate_test.c37 const struct clk_hw *parent_hw; member
54 params->parent_hw, in clk_hw_register_fixed_rate_kunit_init()
178 struct clk_hw *hw, *parent_hw; in clk_fixed_rate_parent_test() local
186 parent_hw = clk_hw_register_fixed_rate_kunit(test, &parent_params); in clk_fixed_rate_parent_test()
187 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent_hw); in clk_fixed_rate_parent_test()
188 KUNIT_ASSERT_STREQ(test, parent_name, clk_hw_get_name(parent_hw)); in clk_fixed_rate_parent_test()
190 expected_parent = clk_hw_get_clk_kunit(test, parent_hw, __func__); in clk_fixed_rate_parent_test()
209 struct clk_hw *hw, *parent_hw; in clk_fixed_rate_parent_rate_test() local
219 parent_hw = clk_hw_register_fixed_rate_kunit(test, &parent_params); in clk_fixed_rate_parent_rate_test()
220 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent_hw); in clk_fixed_rate_parent_rate_test()
[all …]
H A Dclk-gate.c129 const char *parent_name, const struct clk_hw *parent_hw, in __clk_hw_register_gate() argument
156 init.parent_hws = parent_hw ? &parent_hw : NULL; in __clk_hw_register_gate()
158 if (parent_name || parent_hw || parent_data) in __clk_hw_register_gate()
234 const char *parent_name, const struct clk_hw *parent_hw, in __devm_clk_hw_register_gate() argument
246 hw = __clk_hw_register_gate(dev, np, name, parent_name, parent_hw, in __devm_clk_hw_register_gate()
H A Dclk-fixed-factor.c94 const struct clk_hw *parent_hw, const struct clk_parent_data *pdata, in __clk_hw_register_fixed_factor() argument
127 else if (parent_hw) in __clk_hw_register_fixed_factor()
128 init.parent_hws = &parent_hw; in __clk_hw_register_fixed_factor()
188 const char *name, const struct clk_hw *parent_hw, in devm_clk_hw_register_fixed_factor_parent_hw() argument
193 return __clk_hw_register_fixed_factor(dev, NULL, name, NULL, parent_hw, in devm_clk_hw_register_fixed_factor_parent_hw()
199 const char *name, const struct clk_hw *parent_hw, in clk_hw_register_fixed_factor_parent_hw() argument
204 return __clk_hw_register_fixed_factor(dev, NULL, name, NULL, parent_hw, in clk_hw_register_fixed_factor_parent_hw()
H A Dclk-fixed-rate.c66 const char *parent_name, const struct clk_hw *parent_hw, in __clk_hw_register_fixed_rate() argument
89 init.parent_hws = parent_hw ? &parent_hw : NULL; in __clk_hw_register_fixed_rate()
91 if (parent_name || parent_hw || parent_data) in __clk_hw_register_fixed_rate()
H A Dclk-eyeq.c301 struct clk_hw *hw, *parent_hw; in eqc_probe_init_fixed_factors() local
306 parent_hw = cells->hws[ff->parent]; in eqc_probe_init_fixed_factors()
308 if (IS_ERR(parent_hw)) { in eqc_probe_init_fixed_factors()
315 parent_hw, 0, ff->mult, ff->div); in eqc_probe_init_fixed_factors()
795 struct clk_hw *parent_hw = cells->hws[ff->parent]; in eqc_early_init() local
799 parent_hw, 0, ff->mult, ff->div); in eqc_early_init()
H A Dclk-divider.c545 const char *parent_name, const struct clk_hw *parent_hw, in __clk_hw_register_divider() argument
575 init.parent_hws = parent_hw ? &parent_hw : NULL; in __clk_hw_register_divider()
577 if (parent_name || parent_hw || parent_data) in __clk_hw_register_divider()
672 const char *parent_name, const struct clk_hw *parent_hw, in __devm_clk_hw_register_divider() argument
684 hw = __clk_hw_register_divider(dev, np, name, parent_name, parent_hw, in __devm_clk_hw_register_divider()
H A Dclk-npcm8xx.c71 const struct clk_hw *parent_hw; member
375 div_data->parent_hw, in npcm8xx_clk_probe()
395 div_data->parent_hw, in npcm8xx_clk_probe()
H A Dclk_test.c2753 struct clk_hw *parent_hw; in clk_register_clk_parent_data_of_test() local
2771 parent_hw = clk_hw_get_parent(&ctx->hw); in clk_register_clk_parent_data_of_test()
2772 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent_hw); in clk_register_clk_parent_data_of_test()
2774 actual_parent = clk_hw_get_clk_kunit(test, parent_hw, __func__); in clk_register_clk_parent_data_of_test()
2914 struct clk_hw *parent_hw; in KUNIT_ARRAY_PARAM() local
2935 parent_hw = clk_hw_get_parent(&ctx->hw); in KUNIT_ARRAY_PARAM()
2936 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent_hw); in KUNIT_ARRAY_PARAM()
2938 actual_parent = clk_hw_get_clk_kunit(test, parent_hw, __func__); in KUNIT_ARRAY_PARAM()
3022 struct clk_hw *parent_hw; in KUNIT_ARRAY_PARAM() local
3035 parent_hw = &parent->hw; in KUNIT_ARRAY_PARAM()
[all …]
/linux/drivers/clk/at91/
H A Dclk-utmi.c147 struct clk_hw *parent_hw, in at91_clk_register_utmi_internal() argument
155 if (!(parent_name || parent_hw)) in at91_clk_register_utmi_internal()
164 if (parent_hw) in at91_clk_register_utmi_internal()
165 init.parent_hws = (const struct clk_hw **)&parent_hw; in at91_clk_register_utmi_internal()
188 struct clk_hw *parent_hw) in at91_clk_register_utmi() argument
191 parent_name, parent_hw, &utmi_ops, CLK_SET_RATE_GATE); in at91_clk_register_utmi()
290 const char *parent_name, struct clk_hw *parent_hw) in at91_clk_sama7g5_register_utmi() argument
293 parent_name, parent_hw, &sama7g5_utmi_ops, 0); in at91_clk_sama7g5_register_utmi()
H A Dpmc.h189 struct clk_hw *parent_hw);
205 const char *parent_names, struct clk_hw *parent_hw,
220 const char *parent_name, struct clk_hw *parent_hw,
226 struct clk_hw *parent_hw,
242 struct clk_hw *parent_hw, u8 id,
250 struct clk_hw *parent_hw, u8 id,
273 const char *parent_name, struct clk_hw *parent_hw,
292 struct clk_hw *parent_hw);
296 const char *parent_name, struct clk_hw *parent_hw);
H A Dclk-system.c108 const char *parent_name, struct clk_hw *parent_hw, u8 id, in at91_clk_register_system() argument
116 if (!(parent_name || parent_hw) || id > SYSTEM_MAX_ID) in at91_clk_register_system()
125 if (parent_hw) in at91_clk_register_system()
126 init.parent_hws = (const struct clk_hw **)&parent_hw; in at91_clk_register_system()
H A Dclk-peripheral.c100 const char *parent_name, struct clk_hw *parent_hw, in at91_clk_register_peripheral() argument
108 if (!name || !(parent_name || parent_hw) || id > PERIPHERAL_ID_MAX) in at91_clk_register_peripheral()
117 if (parent_hw) in at91_clk_register_peripheral()
118 init.parent_hws = (const struct clk_hw **)&parent_hw; in at91_clk_register_peripheral()
451 struct clk_hw *parent_hw, in at91_clk_register_sam9x5_peripheral() argument
460 if (!name || !(parent_name || parent_hw)) in at91_clk_register_sam9x5_peripheral()
468 if (parent_hw) in at91_clk_register_sam9x5_peripheral()
469 init.parent_hws = (const struct clk_hw **)&parent_hw; in at91_clk_register_sam9x5_peripheral()
H A Dclk-sam9x60-pll.c634 struct clk_hw *parent_hw, u8 id, in sam9x60_clk_register_frac_pll() argument
645 if (id > PLL_MAX_ID || !lock || !parent_hw) in sam9x60_clk_register_frac_pll()
656 init.parent_hws = (const struct clk_hw **)&parent_hw; in sam9x60_clk_register_frac_pll()
687 parent_rate = clk_hw_get_rate(parent_hw); in sam9x60_clk_register_frac_pll()
721 struct clk_hw *parent_hw, u8 id, in sam9x60_clk_register_div_pll() argument
745 if (parent_hw) in sam9x60_clk_register_div_pll()
746 init.parent_hws = (const struct clk_hw **)&parent_hw; in sam9x60_clk_register_div_pll()
H A Dclk-master.c116 struct clk_hw *parent_hw = clk_hw_get_parent(hw); in clk_master_div_save_context() local
128 master->pms.parent_rate = clk_hw_get_rate(parent_hw); in clk_master_div_save_context()
418 struct clk_hw *parent_hw = clk_hw_get_parent(hw); in clk_master_pres_save_context() local
434 master->pms.parent_rate = clk_hw_get_rate(parent_hw); in clk_master_pres_save_context()
549 struct clk_hw *parent_hw, const struct clk_master_layout *layout, in at91_clk_register_master_div() argument
563 parent_hw ? &parent_hw : NULL, layout, in at91_clk_register_master_div()
H A Dsam9x7.c777 struct clk_hw *parent_hw; in sam9x7_pmc_setup() local
785 parent_hw = sam9x7_pmc->chws[PMC_MAIN]; in sam9x7_pmc_setup()
787 parent_hw = main_osc_hw; in sam9x7_pmc_setup()
789 parent_hw = __clk_get_hw(of_clk_get_by_name in sam9x7_pmc_setup()
796 parent_hw, i, in sam9x7_pmc_setup()
H A Dclk-main.c405 struct clk_hw *parent_hw) in at91_clk_register_rm9200_main() argument
415 if (!(parent_name || parent_hw)) in at91_clk_register_rm9200_main()
424 if (parent_hw) in at91_clk_register_rm9200_main()
425 init.parent_hws = (const struct clk_hw **)&parent_hw; in at91_clk_register_rm9200_main()
H A Dclk-programmable.c184 struct clk_hw *parent_hw = clk_hw_get_parent(hw); in clk_programmable_save_context() local
187 prog->pms.parent_rate = clk_hw_get_rate(parent_hw); in clk_programmable_save_context()
/linux/include/linux/
H A Dclk-provider.h364 const char *parent_name, const struct clk_hw *parent_hw,
419 #define clk_hw_register_fixed_rate_parent_hw(dev, name, parent_hw, flags, \ argument
421 __clk_hw_register_fixed_rate((dev), NULL, (name), NULL, (parent_hw), \
464 parent_hw, flags, fixed_rate, fixed_accuracy) \
465 __clk_hw_register_fixed_rate((dev), NULL, (name), NULL, (parent_hw), \
543 const char *parent_name, const struct clk_hw *parent_hw,
550 const char *parent_name, const struct clk_hw *parent_hw,
587 #define clk_hw_register_gate_parent_hw(dev, name, parent_hw, flags, reg, \ argument
589 __clk_hw_register_gate((dev), NULL, (name), NULL, (parent_hw), \
637 #define devm_clk_hw_register_gate_parent_hw(dev, name, parent_hw, flags, \ argument
[all …]
/linux/drivers/clk/tegra/
H A Dclk-tegra20-emc.c171 struct clk_hw *parent_hw; in emc_determine_rate() local
184 parent_hw = clk_hw_get_parent_by_index(hw, i); in emc_determine_rate()
186 if (req->best_parent_hw == parent_hw) in emc_determine_rate()
189 parent_rate = clk_hw_get_rate(parent_hw); in emc_determine_rate()
201 req->best_parent_hw = parent_hw; in emc_determine_rate()
/linux/drivers/clk/nuvoton/
H A Dclk-ma35d1.h11 struct clk_hw *parent_hw, void __iomem *base);
14 struct clk_hw *parent_hw, spinlock_t *lock,
H A Dclk-ma35d1-divider.c79 struct clk_hw *parent_hw, spinlock_t *lock, in ma35d1_reg_adc_clkdiv() argument
114 pdata.hw = parent_hw; in ma35d1_reg_adc_clkdiv()
/linux/drivers/clk/ti/
H A Dgate.c61 struct clk_hw *parent_hw; in omap36xx_gate_clk_enable_with_hsdiv_restore() local
69 parent_hw = clk_hw_get_parent(clk_hw_get_parent(hw)); in omap36xx_gate_clk_enable_with_hsdiv_restore()
70 parent = to_clk_omap_divider(parent_hw); in omap36xx_gate_clk_enable_with_hsdiv_restore()
/linux/drivers/clk/sunxi-ng/
H A Dccu_nkm.c34 struct clk_hw *parent_hw, in ccu_nkm_find_best_with_parent_adj() argument
47 tmp_parent = clk_hw_round_rate(parent_hw, rate * _m / (_n * _k)); in ccu_nkm_find_best_with_parent_adj()
166 struct clk_hw *parent_hw, in ccu_nkm_round_rate() argument
187 rate = ccu_nkm_find_best_with_parent_adj(&nkm->common, parent_hw, parent_rate, rate, in ccu_nkm_round_rate()
/linux/drivers/clk/imx/
H A Dclk-sscg-pll.c420 struct clk_hw *parent_hw = NULL; in __clk_sscg_pll_determine_rate() local
439 parent_hw = clk_hw_get_parent_by_index(hw, bypass_parent_index); in __clk_sscg_pll_determine_rate()
440 ret = __clk_determine_rate(parent_hw, req); in __clk_sscg_pll_determine_rate()
446 req->best_parent_hw = parent_hw; in __clk_sscg_pll_determine_rate()
/linux/drivers/clk/baikal-t1/
H A Dccu-pll.c106 struct clk_hw *parent_hw = clk_hw_get_parent(hw); in ccu_pll_enable() local
112 if (!parent_hw) { in ccu_pll_enable()
123 ret = ccu_pll_reset(pll, clk_hw_get_rate(parent_hw), in ccu_pll_enable()

12