Home
last modified time | relevance | path

Searched refs:num_clks (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/linux-6.6.21/drivers/clk/
Dclk-bulk.c15 static int __must_check of_clk_bulk_get(struct device_node *np, int num_clks, in of_clk_bulk_get() argument
21 for (i = 0; i < num_clks; i++) { in of_clk_bulk_get()
26 for (i = 0; i < num_clks; i++) { in of_clk_bulk_get()
50 int num_clks; in of_clk_bulk_get_all() local
53 num_clks = of_clk_get_parent_count(np); in of_clk_bulk_get_all()
54 if (!num_clks) in of_clk_bulk_get_all()
57 clk_bulk = kmalloc_array(num_clks, sizeof(*clk_bulk), GFP_KERNEL); in of_clk_bulk_get_all()
61 ret = of_clk_bulk_get(np, num_clks, clk_bulk); in of_clk_bulk_get_all()
69 return num_clks; in of_clk_bulk_get_all()
72 void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) in clk_bulk_put() argument
[all …]
Dclk-devres.c104 int num_clks; member
111 clk_bulk_put(devres->num_clks, devres->clks); in devm_clk_bulk_release()
114 static int __devm_clk_bulk_get(struct device *dev, int num_clks, in __devm_clk_bulk_get() argument
126 ret = clk_bulk_get_optional(dev, num_clks, clks); in __devm_clk_bulk_get()
128 ret = clk_bulk_get(dev, num_clks, clks); in __devm_clk_bulk_get()
131 devres->num_clks = num_clks; in __devm_clk_bulk_get()
140 int __must_check devm_clk_bulk_get(struct device *dev, int num_clks, in devm_clk_bulk_get() argument
143 return __devm_clk_bulk_get(dev, num_clks, clks, false); in devm_clk_bulk_get()
147 int __must_check devm_clk_bulk_get_optional(struct device *dev, int num_clks, in devm_clk_bulk_get_optional() argument
150 return __devm_clk_bulk_get(dev, num_clks, clks, true); in devm_clk_bulk_get_optional()
[all …]
Dclk-max77686.c51 size_t num_clks; member
153 if (idx >= drv_data->num_clks) { in of_clk_max77686_get()
169 int i, ret, num_clks; in max77686_clk_probe() local
185 num_clks = MAX77686_CLKS_NUM; in max77686_clk_probe()
190 num_clks = MAX77802_CLKS_NUM; in max77686_clk_probe()
195 num_clks = MAX77620_CLKS_NUM; in max77686_clk_probe()
204 drv_data->num_clks = num_clks; in max77686_clk_probe()
205 drv_data->max_clk_data = devm_kcalloc(dev, num_clks, in max77686_clk_probe()
211 for (i = 0; i < num_clks; i++) { in max77686_clk_probe()
/linux-6.6.21/include/linux/
Dclk.h291 int __must_check clk_bulk_prepare(int num_clks,
318 clk_bulk_prepare(int num_clks, const struct clk_bulk_data *clks) in clk_bulk_prepare() argument
341 void clk_bulk_unprepare(int num_clks, const struct clk_bulk_data *clks);
347 static inline void clk_bulk_unprepare(int num_clks, in clk_bulk_unprepare() argument
392 int __must_check clk_bulk_get(struct device *dev, int num_clks,
425 int __must_check clk_bulk_get_optional(struct device *dev, int num_clks,
439 int __must_check devm_clk_bulk_get(struct device *dev, int num_clks,
462 int __must_check devm_clk_bulk_get_optional(struct device *dev, int num_clks,
648 int __must_check clk_bulk_enable(int num_clks,
683 void clk_bulk_disable(int num_clks, const struct clk_bulk_data *clks);
[all …]
/linux-6.6.21/drivers/pmdomain/imx/
Dimx93-blk-ctrl.c55 int num_clks; member
73 int num_clks; member
91 int num_clks; member
132 ret = clk_bulk_prepare_enable(bc->num_clks, bc->clks); in imx93_blk_ctrl_power_on()
138 ret = clk_bulk_prepare_enable(data->num_clks, domain->clks); in imx93_blk_ctrl_power_on()
140 clk_bulk_disable_unprepare(bc->num_clks, bc->clks); in imx93_blk_ctrl_power_on()
163 clk_bulk_disable_unprepare(data->num_clks, domain->clks); in imx93_blk_ctrl_power_on()
165 clk_bulk_disable_unprepare(bc->num_clks, bc->clks); in imx93_blk_ctrl_power_on()
183 clk_bulk_disable_unprepare(data->num_clks, domain->clks); in imx93_blk_ctrl_power_off()
185 clk_bulk_disable_unprepare(bc->num_clks, bc->clks); in imx93_blk_ctrl_power_off()
[all …]
Dimx8m-blk-ctrl.c44 int num_clks; member
106 ret = clk_bulk_prepare_enable(data->num_clks, domain->clks); in imx8m_blk_ctrl_power_on()
133 clk_bulk_disable_unprepare(data->num_clks, domain->clks); in imx8m_blk_ctrl_power_on()
138 clk_bulk_disable_unprepare(data->num_clks, domain->clks); in imx8m_blk_ctrl_power_on()
232 for (j = 0; j < data->num_clks; j++) in imx8m_blk_ctrl_probe()
253 ret = devm_clk_bulk_get(dev, data->num_clks, domain->clks); in imx8m_blk_ctrl_probe()
453 .num_clks = 1,
461 .num_clks = 1,
469 .num_clks = 1,
487 .num_clks = 1,
[all …]
Dimx93-pd.c29 int num_clks; member
42 ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks); in imx93_pd_on()
81 clk_bulk_disable_unprepare(domain->num_clks, domain->clks); in imx93_pd_off()
93 clk_bulk_disable_unprepare(domain->num_clks, domain->clks); in imx93_pd_remove()
116 domain->num_clks = devm_clk_bulk_get_all(dev, &domain->clks); in imx93_pd_probe()
117 if (domain->num_clks < 0) in imx93_pd_probe()
118 return dev_err_probe(dev, domain->num_clks, "Failed to get domain's clocks\n"); in imx93_pd_probe()
128 ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks); in imx93_pd_probe()
153 clk_bulk_disable_unprepare(domain->num_clks, domain->clks); in imx93_pd_probe()
Dimx8mp-blk-ctrl.c52 int num_clks; member
218 int num_clks = bc->domains[IMX8MP_HSIOBLK_PD_USB].data->num_clks; in imx8mp_hsio_power_notifier() local
227 ret = clk_bulk_prepare_enable(num_clks, usb_clk); in imx8mp_hsio_power_notifier()
235 clk_bulk_disable_unprepare(num_clks, usb_clk); in imx8mp_hsio_power_notifier()
239 ret = clk_bulk_prepare_enable(num_clks, usb_clk); in imx8mp_hsio_power_notifier()
246 clk_bulk_disable_unprepare(num_clks, usb_clk); in imx8mp_hsio_power_notifier()
259 .num_clks = 1,
275 .num_clks = 1,
455 .num_clks = 1,
461 .num_clks = 2,
[all …]
/linux-6.6.21/drivers/usb/dwc3/
Ddwc3-exynos.c24 int num_clks; member
33 int num_clks; member
54 exynos->num_clks = driver_data->num_clks; in dwc3_exynos_probe()
60 for (i = 0; i < exynos->num_clks; i++) { in dwc3_exynos_probe()
69 for (i = 0; i < exynos->num_clks; i++) { in dwc3_exynos_probe()
122 for (i = exynos->num_clks - 1; i >= 0; i--) in dwc3_exynos_probe()
138 for (i = exynos->num_clks - 1; i >= 0; i--) in dwc3_exynos_remove()
150 .num_clks = 1,
156 .num_clks = 4,
162 .num_clks = 3,
[all …]
/linux-6.6.21/drivers/clk/mediatek/
Dclk-mt8192-imp_iic_wrap.c59 .num_clks = ARRAY_SIZE(imp_iic_wrap_c_clks),
64 .num_clks = ARRAY_SIZE(imp_iic_wrap_e_clks),
69 .num_clks = ARRAY_SIZE(imp_iic_wrap_n_clks),
74 .num_clks = ARRAY_SIZE(imp_iic_wrap_s_clks),
79 .num_clks = ARRAY_SIZE(imp_iic_wrap_w_clks),
84 .num_clks = ARRAY_SIZE(imp_iic_wrap_ws_clks),
Dclk-mt8188-img.c63 .num_clks = ARRAY_SIZE(imgsys_main_clks),
68 .num_clks = ARRAY_SIZE(imgsys_wpe1_clks),
73 .num_clks = ARRAY_SIZE(imgsys_wpe2_clks),
78 .num_clks = ARRAY_SIZE(imgsys_wpe3_clks),
83 .num_clks = ARRAY_SIZE(imgsys1_dip_top_clks),
88 .num_clks = ARRAY_SIZE(imgsys1_dip_nr_clks),
Dclk-mt8195-cam.c83 .num_clks = ARRAY_SIZE(cam_clks),
88 .num_clks = ARRAY_SIZE(cam_mraw_clks),
93 .num_clks = ARRAY_SIZE(cam_rawa_clks),
98 .num_clks = ARRAY_SIZE(cam_rawb_clks),
103 .num_clks = ARRAY_SIZE(cam_yuva_clks),
108 .num_clks = ARRAY_SIZE(cam_yuvb_clks),
Dclk-mt8188-cam.c77 .num_clks = ARRAY_SIZE(cam_main_clks),
82 .num_clks = ARRAY_SIZE(cam_rawa_clks),
87 .num_clks = ARRAY_SIZE(cam_rawb_clks),
92 .num_clks = ARRAY_SIZE(cam_yuva_clks),
97 .num_clks = ARRAY_SIZE(cam_yuvb_clks),
/linux-6.6.21/drivers/clk/renesas/
Dclk-r8a7778.c76 int num_clks; in r8a7778_cpg_clocks_init() local
90 num_clks = of_property_count_strings(np, "clock-output-names"); in r8a7778_cpg_clocks_init()
91 if (num_clks < 0) { in r8a7778_cpg_clocks_init()
97 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a7778_cpg_clocks_init()
106 data->clk_num = num_clks; in r8a7778_cpg_clocks_init()
108 for (i = 0; i < num_clks; ++i) { in r8a7778_cpg_clocks_init()
Dclk-rz.c88 int num_clks; in rz_cpg_clocks_init() local
90 num_clks = of_property_count_strings(np, "clock-output-names"); in rz_cpg_clocks_init()
91 if (WARN(num_clks <= 0, "can't count CPG clocks\n")) in rz_cpg_clocks_init()
95 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in rz_cpg_clocks_init()
99 data->clk_num = num_clks; in rz_cpg_clocks_init()
103 for (i = 0; i < num_clks; ++i) { in rz_cpg_clocks_init()
Dclk-r8a7779.c119 int num_clks; in r8a7779_cpg_clocks_init() local
125 num_clks = of_property_count_strings(np, "clock-output-names"); in r8a7779_cpg_clocks_init()
126 if (num_clks < 0) { in r8a7779_cpg_clocks_init()
141 data->clk_num = num_clks; in r8a7779_cpg_clocks_init()
146 for (i = 0; i < num_clks; ++i) { in r8a7779_cpg_clocks_init()
Dclk-r8a73a4.c194 int num_clks; in r8a73a4_cpg_clocks_init() local
196 num_clks = of_property_count_strings(np, "clock-output-names"); in r8a73a4_cpg_clocks_init()
197 if (num_clks < 0) { in r8a73a4_cpg_clocks_init()
203 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a73a4_cpg_clocks_init()
214 cpg->data.clk_num = num_clks; in r8a73a4_cpg_clocks_init()
220 for (i = 0; i < num_clks; ++i) { in r8a73a4_cpg_clocks_init()
Dclk-r8a7740.c150 int num_clks; in r8a7740_cpg_clocks_init() local
155 num_clks = of_property_count_strings(np, "clock-output-names"); in r8a7740_cpg_clocks_init()
156 if (num_clks < 0) { in r8a7740_cpg_clocks_init()
162 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a7740_cpg_clocks_init()
173 cpg->data.clk_num = num_clks; in r8a7740_cpg_clocks_init()
179 for (i = 0; i < num_clks; ++i) { in r8a7740_cpg_clocks_init()
Dclk-sh73a0.c167 int num_clks; in sh73a0_cpg_clocks_init() local
169 num_clks = of_property_count_strings(np, "clock-output-names"); in sh73a0_cpg_clocks_init()
170 if (num_clks < 0) { in sh73a0_cpg_clocks_init()
176 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in sh73a0_cpg_clocks_init()
187 cpg->data.clk_num = num_clks; in sh73a0_cpg_clocks_init()
198 for (i = 0; i < num_clks; ++i) { in sh73a0_cpg_clocks_init()
/linux-6.6.21/sound/soc/qcom/
Dlpass-sc7180.c130 drvdata->clks = devm_kcalloc(dev, variant->num_clks, in sc7180_lpass_init()
135 drvdata->num_clks = variant->num_clks; in sc7180_lpass_init()
137 for (i = 0; i < drvdata->num_clks; i++) in sc7180_lpass_init()
140 ret = devm_clk_bulk_get(dev, drvdata->num_clks, drvdata->clks); in sc7180_lpass_init()
146 ret = clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks); in sc7180_lpass_init()
159 clk_bulk_disable_unprepare(drvdata->num_clks, drvdata->clks); in sc7180_lpass_exit()
167 return clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks); in sc7180_lpass_dev_resume()
174 clk_bulk_disable_unprepare(drvdata->num_clks, drvdata->clks); in sc7180_lpass_dev_suspend()
288 .num_clks = 3,
Dlpass-apq8016.c165 drvdata->clks = devm_kcalloc(dev, variant->num_clks, in apq8016_lpass_init()
169 drvdata->num_clks = variant->num_clks; in apq8016_lpass_init()
171 for (i = 0; i < drvdata->num_clks; i++) in apq8016_lpass_init()
174 ret = devm_clk_bulk_get(dev, drvdata->num_clks, drvdata->clks); in apq8016_lpass_init()
180 ret = clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks); in apq8016_lpass_init()
211 clk_bulk_disable_unprepare(drvdata->num_clks, drvdata->clks); in apq8016_lpass_init()
219 clk_bulk_disable_unprepare(drvdata->num_clks, drvdata->clks); in apq8016_lpass_exit()
269 .num_clks = 2,
/linux-6.6.21/drivers/bus/
Dsimple-pm-bus.c22 int num_clks; member
61 bus->num_clks = devm_clk_bulk_get_all(&pdev->dev, &bus->clks); in simple_pm_bus_probe()
62 if (bus->num_clks < 0) in simple_pm_bus_probe()
63 return dev_err_probe(&pdev->dev, bus->num_clks, "failed to get clocks\n"); in simple_pm_bus_probe()
94 clk_bulk_disable_unprepare(bus->num_clks, bus->clks); in simple_pm_bus_runtime_suspend()
104 ret = clk_bulk_prepare_enable(bus->num_clks, bus->clks); in simple_pm_bus_runtime_resume()
/linux-6.6.21/drivers/usb/cdns3/
Dcdns3-starfive.c40 int num_clks; member
83 ret = clk_bulk_prepare_enable(data->num_clks, data->clks); in cdns_clk_rst_init()
97 clk_bulk_disable_unprepare(data->num_clks, data->clks); in cdns_clk_rst_init()
104 clk_bulk_disable_unprepare(data->num_clks, data->clks); in cdns_clk_rst_deinit()
130 data->num_clks = devm_clk_bulk_get_all(data->dev, &data->clks); in cdns_starfive_probe()
131 if (data->num_clks < 0) in cdns_starfive_probe()
188 return clk_bulk_prepare_enable(data->num_clks, data->clks); in cdns_starfive_runtime_resume()
195 clk_bulk_disable_unprepare(data->num_clks, data->clks); in cdns_starfive_runtime_suspend()
/linux-6.6.21/drivers/clk/keystone/
Dsyscon-clk.c113 int num_clks, num_parents, i; in ti_syscon_gate_clk_probe() local
126 num_clks = 0; in ti_syscon_gate_clk_probe()
128 num_clks++; in ti_syscon_gate_clk_probe()
137 hw_data = devm_kzalloc(dev, struct_size(hw_data, hws, num_clks), in ti_syscon_gate_clk_probe()
142 hw_data->num = num_clks; in ti_syscon_gate_clk_probe()
145 for (i = 0; i < num_clks; i++) { in ti_syscon_gate_clk_probe()
154 if (num_clks == 1) in ti_syscon_gate_clk_probe()
Dsci-clk.c423 int num_clks = 0; in ti_sci_scan_clocks_from_fw() local
458 if (num_clks == max_clks) { in ti_sci_scan_clocks_from_fw()
477 clks[num_clks] = sci_clk; in ti_sci_scan_clocks_from_fw()
480 num_clks++; in ti_sci_scan_clocks_from_fw()
483 provider->clocks = devm_kmalloc_array(dev, num_clks, sizeof(sci_clk), in ti_sci_scan_clocks_from_fw()
488 memcpy(provider->clocks, clks, num_clks * sizeof(sci_clk)); in ti_sci_scan_clocks_from_fw()
490 provider->num_clocks = num_clks; in ti_sci_scan_clocks_from_fw()
517 int num_clks = 0; in ti_sci_scan_clocks_from_dt() local
563 num_clks++; in ti_sci_scan_clocks_from_dt()
599 num_clks++; in ti_sci_scan_clocks_from_dt()
[all …]

12345678910>>...16