Home
last modified time | relevance | path

Searched refs:clk_name (Results 1 – 25 of 142) sorted by relevance

123456

/linux-6.6.21/drivers/clk/zynqmp/
Dpll.c53 const char *clk_name = clk_hw_get_name(hw); in zynqmp_pll_get_mode() local
60 __func__, clk_name, ret); in zynqmp_pll_get_mode()
76 const char *clk_name = clk_hw_get_name(hw); in zynqmp_pll_set_mode() local
88 __func__, clk_name, ret); in zynqmp_pll_set_mode()
138 const char *clk_name = clk_hw_get_name(hw); in zynqmp_pll_recalc_rate() local
148 __func__, clk_name, ret); in zynqmp_pll_recalc_rate()
182 const char *clk_name = clk_hw_get_name(hw); in zynqmp_pll_set_rate() local
200 clk_name); in zynqmp_pll_set_rate()
203 __func__, clk_name, ret); in zynqmp_pll_set_rate()
214 __func__, clk_name, ret); in zynqmp_pll_set_rate()
[all …]
Dclk-gate-zynqmp.c37 const char *clk_name = clk_hw_get_name(hw); in zynqmp_clk_gate_enable() local
45 __func__, clk_name, clk_id, ret); in zynqmp_clk_gate_enable()
57 const char *clk_name = clk_hw_get_name(hw); in zynqmp_clk_gate_disable() local
65 __func__, clk_name, clk_id, ret); in zynqmp_clk_gate_disable()
77 const char *clk_name = clk_hw_get_name(hw); in zynqmp_clk_gate_is_enabled() local
84 __func__, clk_name, ret); in zynqmp_clk_gate_is_enabled()
Dclkc.c72 char clk_name[MAX_NAME_LEN]; member
161 static int zynqmp_get_clock_name(u32 clk_id, char *clk_name) in zynqmp_get_clock_name() argument
167 strscpy(clk_name, clock[clk_id].clk_name, MAX_NAME_LEN); in zynqmp_get_clock_name()
586 static struct clk_hw *zynqmp_register_clk_topology(int clk_id, char *clk_name, in zynqmp_register_clk_topology() argument
606 clk_out[j] = kasprintf(GFP_KERNEL, "%s%s", clk_name, in zynqmp_register_clk_topology()
609 clk_out[j] = kasprintf(GFP_KERNEL, "%s", clk_name); in zynqmp_register_clk_topology()
621 __func__, clk_dev_id, clk_name, in zynqmp_register_clk_topology()
646 char clk_name[MAX_NAME_LEN]; in zynqmp_register_clocks() local
649 if (zynqmp_get_clock_name(i, clk_name)) in zynqmp_register_clocks()
663 clock[i].clk_name); in zynqmp_register_clocks()
[all …]
Ddivider.c83 const char *clk_name = clk_hw_get_name(hw); in zynqmp_clk_divider_recalc_rate() local
93 __func__, clk_name, ret); in zynqmp_clk_divider_recalc_rate()
106 clk_name); in zynqmp_clk_divider_recalc_rate()
126 const char *clk_name = clk_hw_get_name(hw); in zynqmp_clk_divider_round_rate() local
139 __func__, clk_name, ret); in zynqmp_clk_divider_round_rate()
173 const char *clk_name = clk_hw_get_name(hw); in zynqmp_clk_divider_set_rate() local
195 __func__, clk_name, ret); in zynqmp_clk_divider_set_rate()
/linux-6.6.21/drivers/gpu/drm/msm/dp/
Ddp_parser.c145 const char *clk_name) in dp_parser_check_prefix() argument
147 return !strncmp(clk_prefix, clk_name, strlen(clk_prefix)); in dp_parser_check_prefix()
154 const char *clk_name; in dp_parser_init_clk_data() local
168 "clock-names", i, &clk_name); in dp_parser_init_clk_data()
172 if (dp_parser_check_prefix("core", clk_name)) in dp_parser_init_clk_data()
175 if (dp_parser_check_prefix("ctrl", clk_name)) in dp_parser_init_clk_data()
178 if (dp_parser_check_prefix("stream", clk_name)) in dp_parser_init_clk_data()
234 const char *clk_name; in dp_parser_clock() local
254 i, &clk_name); in dp_parser_clock()
259 if (dp_parser_check_prefix("core", clk_name) && in dp_parser_clock()
[all …]
/linux-6.6.21/drivers/clk/sunxi/
Dclk-a10-pll2.c41 const char *clk_name = node->name, *parent; in sun4i_pll2_setup() local
121 SUN4I_A10_PLL2_1X, &clk_name); in sun4i_pll2_setup()
122 clks[SUN4I_A10_PLL2_1X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup()
136 SUN4I_A10_PLL2_2X, &clk_name); in sun4i_pll2_setup()
137 clks[SUN4I_A10_PLL2_2X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup()
145 SUN4I_A10_PLL2_4X, &clk_name); in sun4i_pll2_setup()
146 clks[SUN4I_A10_PLL2_4X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup()
154 SUN4I_A10_PLL2_8X, &clk_name); in sun4i_pll2_setup()
155 clks[SUN4I_A10_PLL2_8X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup()
Dclk-sun4i-pll3.c23 const char *clk_name = node->name, *parent; in sun4i_a10_pll3_setup() local
31 of_property_read_string(node, "clock-output-names", &clk_name); in sun4i_a10_pll3_setup()
36 pr_err("%s: Could not map the clock registers\n", clk_name); in sun4i_a10_pll3_setup()
57 clk = clk_register_composite(NULL, clk_name, in sun4i_a10_pll3_setup()
64 pr_err("%s: Couldn't register the clock\n", clk_name); in sun4i_a10_pll3_setup()
71 clk_name); in sun4i_a10_pll3_setup()
Dclk-sun4i-display.c105 const char *clk_name = node->name; in sun4i_a10_display_init() local
115 of_property_read_string(node, "clock-output-names", &clk_name); in sun4i_a10_display_init()
119 pr_err("%s: Could not map the clock registers\n", clk_name); in sun4i_a10_display_init()
125 pr_err("%s: Could not retrieve the parents\n", clk_name); in sun4i_a10_display_init()
157 clk = clk_register_composite(NULL, clk_name, in sun4i_a10_display_init()
165 pr_err("%s: Couldn't register the clock\n", clk_name); in sun4i_a10_display_init()
171 pr_err("%s: Couldn't register DT provider\n", clk_name); in sun4i_a10_display_init()
198 clk_name); in sun4i_a10_display_init()
Dclk-sunxi.c655 const char *clk_name = node->name; in sunxi_mux_clk_setup() local
667 if (of_property_read_string(node, "clock-output-names", &clk_name)) { in sunxi_mux_clk_setup()
673 clk = clk_register_mux(NULL, clk_name, parents, i, in sunxi_mux_clk_setup()
680 clk_name, PTR_ERR(clk)); in sunxi_mux_clk_setup()
686 __func__, clk_name); in sunxi_mux_clk_setup()
779 const char *clk_name = node->name; in sunxi_divider_clk_setup() local
791 if (of_property_read_string(node, "clock-output-names", &clk_name)) { in sunxi_divider_clk_setup()
797 clk = clk_register_divider_table(NULL, clk_name, clk_parent, 0, in sunxi_divider_clk_setup()
803 __func__, clk_name, PTR_ERR(clk)); in sunxi_divider_clk_setup()
809 __func__, clk_name); in sunxi_divider_clk_setup()
[all …]
Dclk-a10-codec.c17 const char *clk_name = node->name, *parent_name; in sun4i_codec_clk_setup() local
24 of_property_read_string(node, "clock-output-names", &clk_name); in sun4i_codec_clk_setup()
27 clk = clk_register_gate(NULL, clk_name, parent_name, in sun4i_codec_clk_setup()
/linux-6.6.21/drivers/mailbox/
Dqcom-apcs-ipc-mailbox.c29 char *clk_name; member
33 .offset = 8, .clk_name = "qcom,apss-ipq6018-clk"
37 .offset = 8, .clk_name = "qcom-apcs-msm8916-clk"
41 .offset = 8, .clk_name = NULL
45 .offset = 16, .clk_name = "qcom-apcs-msm8996-clk"
49 .offset = 12, .clk_name = NULL
53 .offset = 0x1008, .clk_name = "qcom-sdx55-acps-clk"
118 if (apcs_data->clk_name) { in qcom_apcs_ipc_probe()
120 apcs_data->clk_name, in qcom_apcs_ipc_probe()
/linux-6.6.21/drivers/clk/pxa/
Dclk-pxa.h19 #define MUX_RO_RATE_RO_OPS(name, clk_name) \ argument
31 return clk_register_composite(NULL, clk_name, \
39 #define RATE_RO_OPS(name, clk_name) \ argument
46 return clk_register_composite(NULL, clk_name, \
54 #define RATE_OPS(name, clk_name) \ argument
63 return clk_register_composite(NULL, clk_name, \
71 #define MUX_OPS(name, clk_name, flags) \ argument
80 return clk_register_composite(NULL, clk_name, \
/linux-6.6.21/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy_10nm.c577 char clk_name[32]; in pll_10nm_register() local
583 .name = clk_name, in pll_10nm_register()
594 snprintf(clk_name, sizeof(clk_name), "dsi%dvco_clk", pll_10nm->phy->id); in pll_10nm_register()
601 snprintf(clk_name, sizeof(clk_name), "dsi%d_pll_out_div_clk", pll_10nm->phy->id); in pll_10nm_register()
603 pll_out_div = devm_clk_hw_register_divider_parent_hw(dev, clk_name, in pll_10nm_register()
613 snprintf(clk_name, sizeof(clk_name), "dsi%d_pll_bit_clk", pll_10nm->phy->id); in pll_10nm_register()
616 pll_bit = devm_clk_hw_register_divider_parent_hw(dev, clk_name, in pll_10nm_register()
625 snprintf(clk_name, sizeof(clk_name), "dsi%d_phy_pll_out_byteclk", pll_10nm->phy->id); in pll_10nm_register()
628 hw = devm_clk_hw_register_fixed_factor_parent_hw(dev, clk_name, in pll_10nm_register()
637 snprintf(clk_name, sizeof(clk_name), "dsi%d_pll_by_2_bit_clk", pll_10nm->phy->id); in pll_10nm_register()
[all …]
Ddsi_phy_7nm.c626 char clk_name[32]; in pll_7nm_register() local
632 .name = clk_name, in pll_7nm_register()
643 snprintf(clk_name, sizeof(clk_name), "dsi%dvco_clk", pll_7nm->phy->id); in pll_7nm_register()
650 snprintf(clk_name, sizeof(clk_name), "dsi%d_pll_out_div_clk", pll_7nm->phy->id); in pll_7nm_register()
652 pll_out_div = devm_clk_hw_register_divider_parent_hw(dev, clk_name, in pll_7nm_register()
662 snprintf(clk_name, sizeof(clk_name), "dsi%d_pll_bit_clk", pll_7nm->phy->id); in pll_7nm_register()
665 pll_bit = devm_clk_hw_register_divider_parent_hw(dev, clk_name, in pll_7nm_register()
674 snprintf(clk_name, sizeof(clk_name), "dsi%d_phy_pll_out_byteclk", pll_7nm->phy->id); in pll_7nm_register()
677 hw = devm_clk_hw_register_fixed_factor_parent_hw(dev, clk_name, in pll_7nm_register()
687 snprintf(clk_name, sizeof(clk_name), "dsi%d_pll_by_2_bit_clk", pll_7nm->phy->id); in pll_7nm_register()
[all …]
Ddsi_phy_28nm.c600 char clk_name[32]; in pll_28nm_register() local
606 .name = clk_name, in pll_28nm_register()
622 snprintf(clk_name, sizeof(clk_name), "dsi%dvco_clk", pll_28nm->phy->id); in pll_28nm_register()
628 snprintf(clk_name, sizeof(clk_name), "dsi%danalog_postdiv_clk", pll_28nm->phy->id); in pll_28nm_register()
629 analog_postdiv = devm_clk_hw_register_divider_parent_hw(dev, clk_name, in pll_28nm_register()
637 snprintf(clk_name, sizeof(clk_name), "dsi%dindirect_path_div2_clk", pll_28nm->phy->id); in pll_28nm_register()
639 clk_name, analog_postdiv, CLK_SET_RATE_PARENT, 1, 2); in pll_28nm_register()
643 snprintf(clk_name, sizeof(clk_name), "dsi%dpll", pll_28nm->phy->id); in pll_28nm_register()
644 hw = devm_clk_hw_register_divider_parent_hw(dev, clk_name, in pll_28nm_register()
652 snprintf(clk_name, sizeof(clk_name), "dsi%dbyte_mux", pll_28nm->phy->id); in pll_28nm_register()
[all …]
/linux-6.6.21/drivers/clk/mvebu/
Dclk-cpu.c36 const char *clk_name; member
195 char *clk_name = kzalloc(5, GFP_KERNEL); in of_cpu_clk_setup() local
197 if (WARN_ON(!clk_name)) in of_cpu_clk_setup()
200 sprintf(clk_name, "cpu%d", cpu); in of_cpu_clk_setup()
203 cpuclk[cpu].clk_name = clk_name; in of_cpu_clk_setup()
210 init.name = cpuclk[cpu].clk_name; in of_cpu_clk_setup()
229 kfree(cpuclk[ncpus].clk_name); in of_cpu_clk_setup()
/linux-6.6.21/drivers/clk/
Dclk-nspire.c69 const char *clk_name = node->name; in nspire_ahbdiv_setup() local
81 of_property_read_string(node, "clock-output-names", &clk_name); in nspire_ahbdiv_setup()
84 hw = clk_hw_register_fixed_factor(NULL, clk_name, parent_name, 0, in nspire_ahbdiv_setup()
111 const char *clk_name = node->name; in nspire_clk_setup() local
122 of_property_read_string(node, "clock-output-names", &clk_name); in nspire_clk_setup()
124 hw = clk_hw_register_fixed_rate(NULL, clk_name, NULL, 0, in nspire_clk_setup()
/linux-6.6.21/drivers/clk/socfpga/
Dclk-pll.c79 const char *clk_name = node->name; in __socfpga_pll_init() local
97 of_property_read_string(node, "clock-output-names", &clk_name); in __socfpga_pll_init()
99 init.name = clk_name; in __socfpga_pll_init()
113 pr_err("Could not register clock:%s\n", clk_name); in __socfpga_pll_init()
120 clk_name); in __socfpga_pll_init()
Dclk-gate-a10.c50 const char *clk_name = node->name; in __socfpga_gate_init() local
86 of_property_read_string(node, "clock-output-names", &clk_name); in __socfpga_gate_init()
88 init.name = clk_name; in __socfpga_gate_init()
99 pr_err("Could not register clock:%s\n", clk_name); in __socfpga_gate_init()
106 clk_name); in __socfpga_gate_init()
Dclk-periph.c56 const char *clk_name = node->name; in __socfpga_periph_init() local
86 of_property_read_string(node, "clock-output-names", &clk_name); in __socfpga_periph_init()
88 init.name = clk_name; in __socfpga_periph_init()
101 pr_err("Could not register clock:%s\n", clk_name); in __socfpga_periph_init()
108 clk_name); in __socfpga_periph_init()
Dclk-pll-a10.c72 const char *clk_name = node->name; in __socfpga_pll_init() local
91 of_property_read_string(node, "clock-output-names", &clk_name); in __socfpga_pll_init()
93 init.name = clk_name; in __socfpga_pll_init()
109 pr_err("Could not register clock:%s\n", clk_name); in __socfpga_pll_init()
116 clk_name); in __socfpga_pll_init()
Dclk-periph-a10.c66 const char *clk_name = node->name; in __socfpga_periph_init() local
96 of_property_read_string(node, "clock-output-names", &clk_name); in __socfpga_periph_init()
98 init.name = clk_name; in __socfpga_periph_init()
111 pr_err("Could not register clock:%s\n", clk_name); in __socfpga_periph_init()
118 clk_name); in __socfpga_periph_init()
/linux-6.6.21/drivers/clk/keystone/
Dpll.c254 const char *clk_name = node->name; in of_pll_div_clk_init() local
256 of_property_read_string(node, "clock-output-names", &clk_name); in of_pll_div_clk_init()
282 clk = clk_register_divider(NULL, clk_name, parent_name, 0, reg, shift, in of_pll_div_clk_init()
285 pr_err("%s: error registering divider %s\n", __func__, clk_name); in of_pll_div_clk_init()
304 const char *clk_name = node->name; in of_pll_mux_clk_init() local
306 of_property_read_string(node, "clock-output-names", &clk_name); in of_pll_mux_clk_init()
329 clk = clk_register_mux(NULL, clk_name, (const char **)&parents, in of_pll_mux_clk_init()
333 pr_err("%s: error registering mux %s\n", __func__, clk_name); in of_pll_mux_clk_init()
/linux-6.6.21/drivers/regulator/
Draa215300.c69 const char *clk_name = NULL; in raa215300_i2c_probe() local
112 clk_name = xin_name; in raa215300_i2c_probe()
118 clk_name = clkin_name; in raa215300_i2c_probe()
121 if (clk_name) { in raa215300_i2c_probe()
130 hw = devm_clk_hw_register_fixed_rate(dev, clk_name, NULL, 0, 32768); in raa215300_i2c_probe()
134 ret = devm_clk_hw_register_clkdev(dev, hw, clk_name, NULL); in raa215300_i2c_probe()
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/
Dkvm_clock_test.c139 char *clk_name; in check_clocksource() local
156 clk_name = malloc(st.st_size); in check_clocksource()
157 TEST_ASSERT(clk_name, "failed to allocate buffer to read file\n"); in check_clocksource()
159 if (!fgets(clk_name, st.st_size, fp)) { in check_clocksource()
165 TEST_ASSERT(!strncmp(clk_name, "tsc\n", st.st_size), in check_clocksource()
166 "clocksource not supported: %s", clk_name); in check_clocksource()

123456