| /linux/drivers/clk/ |
| H A D | clk-fixed-rate_test.c | 37 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 D | clk-gate.c | 129 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 D | clk-divider_test.c | 35 struct clk_hw *parent_hw, *div_hw; in clk_divider_bestdiv_ulong_max_returns_max_rate() local 42 parent_hw = clk_hw_register_fixed_rate(NULL, "bestdiv-parent", in clk_divider_bestdiv_ulong_max_returns_max_rate() 44 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent_hw); in clk_divider_bestdiv_ulong_max_returns_max_rate() 47 parent_hw)); in clk_divider_bestdiv_ulong_max_returns_max_rate()
|
| H A D | clk-fixed-factor.c | 39 struct clk_hw *parent_hw = clk_hw_get_parent(hw); in clk_factor_determine_rate() local 42 if (!parent_hw) in clk_factor_determine_rate() 46 req->best_parent_rate = clk_hw_round_rate(parent_hw, best_parent); in clk_factor_determine_rate() 100 const struct clk_hw *parent_hw, const struct clk_parent_data *pdata, in __clk_hw_register_fixed_factor() argument 132 init.parent_hws = parent_hw ? &parent_hw : NULL; in __clk_hw_register_fixed_factor() 134 if (parent_name || parent_hw || pdata) in __clk_hw_register_fixed_factor()
|
| H A D | clk-fixed-rate.c | 66 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 D | clk-divider.c | 487 const char *parent_name, const struct clk_hw *parent_hw, in __clk_hw_register_divider() argument 517 init.parent_hws = parent_hw ? &parent_hw : NULL; in __clk_hw_register_divider() 519 if (parent_name || parent_hw || parent_data) in __clk_hw_register_divider() 614 const char *parent_name, const struct clk_hw *parent_hw, in __devm_clk_hw_register_divider() argument 626 hw = __clk_hw_register_divider(dev, np, name, parent_name, parent_hw, in __devm_clk_hw_register_divider()
|
| H A D | clk-npcm8xx.c | 71 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 D | clk-composite.c | 47 struct clk_hw *parent_hw, in clk_composite_determine_rate_for_parent() argument 50 req->best_parent_hw = parent_hw; in clk_composite_determine_rate_for_parent() 51 req->best_parent_rate = clk_hw_get_rate(parent_hw); in clk_composite_determine_rate_for_parent()
|
| /linux/drivers/clk/at91/ |
| H A D | clk-utmi.c | 147 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 D | pmc.h | 187 struct clk_hw *parent_hw); 203 const char *parent_names, struct clk_hw *parent_hw, 218 const char *parent_name, struct clk_hw *parent_hw, 224 struct clk_hw *parent_hw, 240 struct clk_hw *parent_hw, u8 id, 248 struct clk_hw *parent_hw, u8 id, 271 const char *parent_name, struct clk_hw *parent_hw, 290 struct clk_hw *parent_hw); 294 const char *parent_name, struct clk_hw *parent_hw);
|
| H A D | clk-system.c | 108 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 D | clk-peripheral.c | 101 const char *parent_name, struct clk_hw *parent_hw, in at91_clk_register_peripheral() argument 109 if (!name || !(parent_name || parent_hw) || id > PERIPHERAL_ID_MAX) in at91_clk_register_peripheral() 118 if (parent_hw) in at91_clk_register_peripheral() 119 init.parent_hws = (const struct clk_hw **)&parent_hw; in at91_clk_register_peripheral() 462 struct clk_hw *parent_hw, in at91_clk_register_sam9x5_peripheral() argument 471 if (!name || !(parent_name || parent_hw)) in at91_clk_register_sam9x5_peripheral() 479 if (parent_hw) in at91_clk_register_sam9x5_peripheral() 480 init.parent_hws = (const struct clk_hw **)&parent_hw; in at91_clk_register_sam9x5_peripheral()
|
| H A D | clk-sam9x60-pll.c | 641 struct clk_hw *parent_hw, u8 id, in sam9x60_clk_register_frac_pll() argument 652 if (id > PLL_MAX_ID || !lock || !parent_hw) in sam9x60_clk_register_frac_pll() 663 init.parent_hws = (const struct clk_hw **)&parent_hw; in sam9x60_clk_register_frac_pll() 694 parent_rate = clk_hw_get_rate(parent_hw); in sam9x60_clk_register_frac_pll() 728 struct clk_hw *parent_hw, u8 id, in sam9x60_clk_register_div_pll() argument 752 if (parent_hw) in sam9x60_clk_register_div_pll() 753 init.parent_hws = (const struct clk_hw **)&parent_hw; in sam9x60_clk_register_div_pll()
|
| H A D | sam9x7.c | 782 struct clk_hw *parent_hw; in sam9x7_pmc_setup() local 790 parent_hw = sam9x7_pmc->chws[PMC_MAIN]; in sam9x7_pmc_setup() 792 parent_hw = main_osc_hw; in sam9x7_pmc_setup() 794 parent_hw = __clk_get_hw(of_clk_get_by_name in sam9x7_pmc_setup() 801 parent_hw, i, in sam9x7_pmc_setup()
|
| H A D | clk-master.c | 116 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 D | clk-main.c | 405 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 D | clk-programmable.c | 184 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/drivers/clk/ultrarisc/ |
| H A D | clk-ultrarisc.c | 172 struct clk_hw *parent_hw, void __iomem *base, in ultrarisc_clk_register_divider() argument 175 const struct clk_parent_data pdata = { .hw = parent_hw }; in ultrarisc_clk_register_divider() 216 struct clk_hw *parent_hw; in ultrarisc_clk_register_fixed_factors() local 223 parent_hw = clk_data->hws[desc->parent_id]; in ultrarisc_clk_register_fixed_factors() 224 if (!parent_hw) in ultrarisc_clk_register_fixed_factors() 228 parent_hw, 0, in ultrarisc_clk_register_fixed_factors() 279 struct clk_hw *parent_hw; in ultrarisc_clk_register_dividers() local 286 parent_hw = clk_data->hws[desc->parent_id]; in ultrarisc_clk_register_dividers() 287 if (!parent_hw) in ultrarisc_clk_register_dividers() 290 hw = ultrarisc_clk_register_divider(dev, desc, parent_hw, base, in ultrarisc_clk_register_dividers() [all …]
|
| /linux/include/linux/ |
| H A D | clk-provider.h | 399 const char *parent_name, const struct clk_hw *parent_hw, 454 #define clk_hw_register_fixed_rate_parent_hw(dev, name, parent_hw, flags, \ argument 456 __clk_hw_register_fixed_rate((dev), NULL, (name), NULL, (parent_hw), \ 499 parent_hw, flags, fixed_rate, fixed_accuracy) \ 500 __clk_hw_register_fixed_rate((dev), NULL, (name), NULL, (parent_hw), \ 578 const char *parent_name, const struct clk_hw *parent_hw, 585 const char *parent_name, const struct clk_hw *parent_hw, 622 #define clk_hw_register_gate_parent_hw(dev, name, parent_hw, flags, reg, \ argument 624 __clk_hw_register_gate((dev), NULL, (name), NULL, (parent_hw), \ 672 #define devm_clk_hw_register_gate_parent_hw(dev, name, parent_hw, flags, \ argument [all …]
|
| /linux/drivers/clk/tegra/ |
| H A D | clk-tegra20-emc.c | 171 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 D | clk-ma35d1.h | 11 struct clk_hw *parent_hw, void __iomem *base); 14 struct clk_hw *parent_hw, spinlock_t *lock,
|
| /linux/drivers/clk/aspeed/ |
| H A D | clk-ast2700.c | 654 const char *name, const struct clk_hw *parent_hw, in ast2700_clk_hw_register_hpll() argument 710 parent_hw, 0, mult, div); in ast2700_clk_hw_register_hpll() 714 const char *name, const struct clk_hw *parent_hw, in ast2700_clk_hw_register_pll() argument 745 parent_hw, 0, mult, div); in ast2700_clk_hw_register_pll() 749 const struct clk_hw *parent_hw, in ast2700_clk_hw_register_uartpll() argument 761 parent_hw, 0, mult, div); in ast2700_clk_hw_register_uartpll() 765 const char *name, const struct clk_hw *parent_hw, in ast2700_clk_hw_register_misc() argument 782 parent_hw, 0, 1, div); in ast2700_clk_hw_register_misc() 823 const struct clk_hw *parent_hw, in ast2700_clk_hw_register_gate() argument 840 init.parent_hws = parent_hw ? &parent_hw : NULL; in ast2700_clk_hw_register_gate() [all …]
|
| /linux/drivers/clk/ti/ |
| H A D | gate.c | 61 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/imx/ |
| H A D | clk-sscg-pll.c | 420 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/samsung/ |
| H A D | clk.c | 291 const char *parent_name, const struct clk_hw *parent_hw, in samsung_register_auto_gate() argument 311 init.parent_hws = parent_hw ? &parent_hw : NULL; in samsung_register_auto_gate() 313 if (parent_name || parent_hw || parent_data) in samsung_register_auto_gate()
|