Home
last modified time | relevance | path

Searched refs:freq_tbl (Results 1 – 25 of 56) sorted by relevance

123

/drivers/cpufreq/
Dspear-cpufreq.c30 struct cpufreq_frequency_table *freq_tbl; member
110 newfreq = spear_cpufreq.freq_tbl[index].frequency * 1000; in spear_cpufreq_target()
156 cpufreq_generic_init(policy, spear_cpufreq.freq_tbl, in spear_cpufreq_init()
175 struct cpufreq_frequency_table *freq_tbl; in spear_cpufreq_probe() local
199 freq_tbl = kcalloc(cnt + 1, sizeof(*freq_tbl), GFP_KERNEL); in spear_cpufreq_probe()
200 if (!freq_tbl) { in spear_cpufreq_probe()
206 freq_tbl[i].frequency = be32_to_cpup(val++); in spear_cpufreq_probe()
208 freq_tbl[i].frequency = CPUFREQ_TABLE_END; in spear_cpufreq_probe()
210 spear_cpufreq.freq_tbl = freq_tbl; in spear_cpufreq_probe()
229 kfree(freq_tbl); in spear_cpufreq_probe()
Dloongson1-cpufreq.c82 struct cpufreq_frequency_table *freq_tbl; in ls1x_cpufreq_init() local
89 freq_tbl = kcalloc(steps, sizeof(*freq_tbl), GFP_KERNEL); in ls1x_cpufreq_init()
90 if (!freq_tbl) in ls1x_cpufreq_init()
96 freq_tbl[i].frequency = CPUFREQ_ENTRY_INVALID; in ls1x_cpufreq_init()
98 freq_tbl[i].frequency = freq; in ls1x_cpufreq_init()
101 freq_tbl[i].frequency); in ls1x_cpufreq_init()
103 freq_tbl[i].frequency = CPUFREQ_TABLE_END; in ls1x_cpufreq_init()
106 cpufreq_generic_init(policy, freq_tbl, 0); in ls1x_cpufreq_init()
/drivers/clk/qcom/
Dgcc-apq8084.c218 static const struct freq_tbl ftbl_gcc_ufs_axi_clk[] = {
230 .freq_tbl = ftbl_gcc_ufs_axi_clk,
239 static const struct freq_tbl ftbl_gcc_usb30_master_clk[] = {
249 .freq_tbl = ftbl_gcc_usb30_master_clk,
258 static const struct freq_tbl ftbl_gcc_usb30_sec_master_clk[] = {
268 .freq_tbl = ftbl_gcc_usb30_sec_master_clk,
311 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk[] = {
321 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk,
330 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk[] = {
346 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk,
[all …]
Dgcc-msm8994.c122 static struct freq_tbl ftbl_ufs_axi_clk_src[] = {
137 .freq_tbl = ftbl_ufs_axi_clk_src,
147 static struct freq_tbl ftbl_usb30_master_clk_src[] = {
158 .freq_tbl = ftbl_usb30_master_clk_src,
168 static struct freq_tbl ftbl_blsp_i2c_apps_clk_src[] = {
178 .freq_tbl = ftbl_blsp_i2c_apps_clk_src,
188 static struct freq_tbl ftbl_blspqup_spi_apps_clk_src[] = {
206 .freq_tbl = ftbl_blspqup_spi_apps_clk_src,
220 .freq_tbl = ftbl_blsp_i2c_apps_clk_src,
235 .freq_tbl = ftbl_blspqup_spi_apps_clk_src,
[all …]
Dgcc-msm8974.c174 static const struct freq_tbl ftbl_gcc_usb30_master_clk[] = {
184 .freq_tbl = ftbl_gcc_usb30_master_clk,
193 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk[] = {
204 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk,
213 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk[] = {
229 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk,
242 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk,
256 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk,
269 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk,
283 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk,
[all …]
Dgcc-sdm660.c254 static const struct freq_tbl ftbl_blsp1_qup1_i2c_apps_clk_src[] = {
265 .freq_tbl = ftbl_blsp1_qup1_i2c_apps_clk_src,
274 static const struct freq_tbl ftbl_blsp1_qup1_spi_apps_clk_src[] = {
290 .freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src,
304 .freq_tbl = ftbl_blsp1_qup1_i2c_apps_clk_src,
318 .freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src,
332 .freq_tbl = ftbl_blsp1_qup1_i2c_apps_clk_src,
346 .freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src,
360 .freq_tbl = ftbl_blsp1_qup1_i2c_apps_clk_src,
374 .freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src,
[all …]
Dgcc-msm8916.c391 static const struct freq_tbl ftbl_gcc_camss_ahb_clk[] = {
402 .freq_tbl = ftbl_gcc_camss_ahb_clk,
411 static const struct freq_tbl ftbl_apss_ahb_clk[] = {
423 .freq_tbl = ftbl_apss_ahb_clk,
432 static const struct freq_tbl ftbl_gcc_camss_csi0_1_clk[] = {
442 .freq_tbl = ftbl_gcc_camss_csi0_1_clk,
455 .freq_tbl = ftbl_gcc_camss_csi0_1_clk,
464 static const struct freq_tbl ftbl_gcc_oxili_gfx3d_clk[] = {
483 .freq_tbl = ftbl_gcc_oxili_gfx3d_clk,
492 static const struct freq_tbl ftbl_gcc_camss_vfe0_clk[] = {
[all …]
Dgcc-msm8996.c275 static const struct freq_tbl ftbl_system_noc_clk_src[] = {
289 .freq_tbl = ftbl_system_noc_clk_src,
298 static const struct freq_tbl ftbl_config_noc_clk_src[] = {
309 .freq_tbl = ftbl_config_noc_clk_src,
318 static const struct freq_tbl ftbl_periph_noc_clk_src[] = {
331 .freq_tbl = ftbl_periph_noc_clk_src,
340 static const struct freq_tbl ftbl_usb30_master_clk_src[] = {
352 .freq_tbl = ftbl_usb30_master_clk_src,
361 static const struct freq_tbl ftbl_usb30_mock_utmi_clk_src[] = {
370 .freq_tbl = ftbl_usb30_mock_utmi_clk_src,
[all …]
Dgcc-ipq4019.c77 const struct freq_tbl *freq_tbl; member
174 static const struct freq_tbl ftbl_gcc_audio_pwm_clk[] = {
184 .freq_tbl = ftbl_gcc_audio_pwm_clk,
228 static const struct freq_tbl ftbl_gcc_blsp1_qup1_2_i2c_apps_clk[] = {
237 .freq_tbl = ftbl_gcc_blsp1_qup1_2_i2c_apps_clk,
267 .freq_tbl = ftbl_gcc_blsp1_qup1_2_i2c_apps_clk,
293 static const struct freq_tbl ftbl_gcc_blsp1_qup1_2_spi_apps_clk[] = {
309 .freq_tbl = ftbl_gcc_blsp1_qup1_2_spi_apps_clk,
339 .freq_tbl = ftbl_gcc_blsp1_qup1_2_spi_apps_clk,
366 static const struct freq_tbl ftbl_gcc_blsp1_uart1_2_apps_clk[] = {
[all …]
Dmmcc-msm8974.c276 static struct freq_tbl ftbl_mmss_axi_clk[] = {
292 .freq_tbl = ftbl_mmss_axi_clk,
301 static struct freq_tbl ftbl_ocmemnoc_clk[] = {
316 .freq_tbl = ftbl_ocmemnoc_clk,
325 static struct freq_tbl ftbl_camss_csi0_3_clk[] = {
335 .freq_tbl = ftbl_camss_csi0_3_clk,
348 .freq_tbl = ftbl_camss_csi0_3_clk,
361 .freq_tbl = ftbl_camss_csi0_3_clk,
374 .freq_tbl = ftbl_camss_csi0_3_clk,
383 static struct freq_tbl ftbl_camss_vfe_vfe0_1_clk[] = {
[all …]
Dgcc-qcs404.c410 static const struct freq_tbl ftbl_apss_ahb_clk_src[] = {
423 .freq_tbl = ftbl_apss_ahb_clk_src,
433 static const struct freq_tbl ftbl_blsp1_qup0_i2c_apps_clk_src[] = {
444 .freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src,
453 static const struct freq_tbl ftbl_blsp1_qup0_spi_apps_clk_src[] = {
469 .freq_tbl = ftbl_blsp1_qup0_spi_apps_clk_src,
483 .freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src,
492 static const struct freq_tbl ftbl_blsp1_qup1_spi_apps_clk_src[] = {
508 .freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src,
522 .freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src,
[all …]
Dcamcc-sdm845.c165 static const struct freq_tbl ftbl_cam_cc_bps_clk_src[] = {
189 .freq_tbl = ftbl_cam_cc_bps_clk_src,
199 static const struct freq_tbl ftbl_cam_cc_cci_clk_src[] = {
212 .freq_tbl = ftbl_cam_cc_cci_clk_src,
221 static const struct freq_tbl ftbl_cam_cc_cphy_rx_clk_src[] = {
232 .freq_tbl = ftbl_cam_cc_cphy_rx_clk_src,
241 static const struct freq_tbl ftbl_cam_cc_csi0phytimer_clk_src[] = {
253 .freq_tbl = ftbl_cam_cc_csi0phytimer_clk_src,
268 .freq_tbl = ftbl_cam_cc_csi0phytimer_clk_src,
283 .freq_tbl = ftbl_cam_cc_csi0phytimer_clk_src,
[all …]
Dgcc-ipq8074.c612 static const struct freq_tbl ftbl_pcnoc_bfdcd_clk_src[] = {
621 .freq_tbl = ftbl_pcnoc_bfdcd_clk_src,
664 static const struct freq_tbl ftbl_blsp1_qup_i2c_apps_clk_src[] = {
673 .freq_tbl = ftbl_blsp1_qup_i2c_apps_clk_src,
684 static const struct freq_tbl ftbl_blsp1_qup_spi_apps_clk_src[] = {
698 .freq_tbl = ftbl_blsp1_qup_spi_apps_clk_src,
712 .freq_tbl = ftbl_blsp1_qup_i2c_apps_clk_src,
725 .freq_tbl = ftbl_blsp1_qup_spi_apps_clk_src,
739 .freq_tbl = ftbl_blsp1_qup_i2c_apps_clk_src,
752 .freq_tbl = ftbl_blsp1_qup_spi_apps_clk_src,
[all …]
Dlcc-msm8960.c57 static struct freq_tbl clk_tbl_aif_osr_492[] = {
73 static struct freq_tbl clk_tbl_aif_osr_393[] = {
108 .freq_tbl = clk_tbl_aif_osr_393,
214 .freq_tbl = clk_tbl_aif_osr_393, \
305 static struct freq_tbl clk_tbl_pcm_492[] = {
322 static struct freq_tbl clk_tbl_pcm_393[] = {
358 .freq_tbl = clk_tbl_pcm_393,
426 .freq_tbl = clk_tbl_aif_osr_393,
546 slimbus_src.freq_tbl = clk_tbl_aif_osr_492; in lcc_msm8960_probe()
547 mi2s_osr_src.freq_tbl = clk_tbl_aif_osr_492; in lcc_msm8960_probe()
[all …]
Dlcc-mdm9615.c59 static struct freq_tbl clk_tbl_aif_osr_492[] = {
75 static struct freq_tbl clk_tbl_aif_osr_393[] = {
110 .freq_tbl = clk_tbl_aif_osr_393,
216 .freq_tbl = clk_tbl_aif_osr_393, \
307 static struct freq_tbl clk_tbl_pcm_492[] = {
324 static struct freq_tbl clk_tbl_pcm_393[] = {
360 .freq_tbl = clk_tbl_pcm_393,
428 .freq_tbl = clk_tbl_aif_osr_393,
547 slimbus_src.freq_tbl = clk_tbl_aif_osr_492; in lcc_mdm9615_probe()
548 mi2s_osr_src.freq_tbl = clk_tbl_aif_osr_492; in lcc_mdm9615_probe()
[all …]
Dgcc-ipq6018.c198 static const struct freq_tbl ftbl_pcnoc_bfdcd_clk_src[] = {
207 .freq_tbl = ftbl_pcnoc_bfdcd_clk_src,
278 static const struct freq_tbl ftbl_qdss_tsctr_clk_src[] = {
303 .freq_tbl = ftbl_qdss_tsctr_clk_src,
326 static const struct freq_tbl ftbl_qdss_at_clk_src[] = {
334 .freq_tbl = ftbl_qdss_at_clk_src,
358 static const struct freq_tbl ftbl_nss_ppe_clk_src[] = {
384 .freq_tbl = ftbl_nss_ppe_clk_src,
412 static const struct freq_tbl ftbl_nss_ce_clk_src[] = {
430 .freq_tbl = ftbl_nss_ce_clk_src,
[all …]
Dclk-rcg.h12 struct freq_tbl { struct
83 const struct freq_tbl *freq_tbl; member
121 const struct freq_tbl *freq_tbl; member
149 const struct freq_tbl *freq_tbl; member
Dgcc-msm8939.c647 static const struct freq_tbl ftbl_gcc_camss_ahb_clk[] = {
658 .freq_tbl = ftbl_gcc_camss_ahb_clk,
667 static const struct freq_tbl ftbl_apss_ahb_clk[] = {
679 .freq_tbl = ftbl_apss_ahb_clk,
688 static const struct freq_tbl ftbl_gcc_camss_csi0_1_clk[] = {
698 .freq_tbl = ftbl_gcc_camss_csi0_1_clk,
711 .freq_tbl = ftbl_gcc_camss_csi0_1_clk,
720 static const struct freq_tbl ftbl_gcc_oxili_gfx3d_clk[] = {
740 .freq_tbl = ftbl_gcc_oxili_gfx3d_clk,
749 static const struct freq_tbl ftbl_gcc_camss_vfe0_clk[] = {
[all …]
Dmmcc-apq8084.c326 static struct freq_tbl ftbl_mmss_axi_clk[] = {
342 .freq_tbl = ftbl_mmss_axi_clk,
351 static struct freq_tbl ftbl_ocmemnoc_clk[] = {
366 .freq_tbl = ftbl_ocmemnoc_clk,
375 static struct freq_tbl ftbl_camss_csi0_3_clk[] = {
385 .freq_tbl = ftbl_camss_csi0_3_clk,
398 .freq_tbl = ftbl_camss_csi0_3_clk,
411 .freq_tbl = ftbl_camss_csi0_3_clk,
424 .freq_tbl = ftbl_camss_csi0_3_clk,
433 static struct freq_tbl ftbl_camss_vfe_vfe0_1_clk[] = {
[all …]
Dclk-rcg2.c186 static int _freq_tbl_determine_rate(struct clk_hw *hw, const struct freq_tbl *f, in _freq_tbl_determine_rate()
248 return _freq_tbl_determine_rate(hw, rcg->freq_tbl, req, CEIL); in clk_rcg2_determine_rate()
256 return _freq_tbl_determine_rate(hw, rcg->freq_tbl, req, FLOOR); in clk_rcg2_determine_floor_rate()
259 static int __clk_rcg2_configure(struct clk_rcg2 *rcg, const struct freq_tbl *f) in __clk_rcg2_configure()
305 static int clk_rcg2_configure(struct clk_rcg2 *rcg, const struct freq_tbl *f) in clk_rcg2_configure()
320 const struct freq_tbl *f; in __clk_rcg2_set_rate()
324 f = qcom_find_freq_floor(rcg->freq_tbl, rate); in __clk_rcg2_set_rate()
327 f = qcom_find_freq(rcg->freq_tbl, rate); in __clk_rcg2_set_rate()
416 struct freq_tbl f = *rcg->freq_tbl; in clk_edp_pixel_set_rate()
462 const struct freq_tbl *f = rcg->freq_tbl; in clk_edp_pixel_determine_rate()
[all …]
Dgcc-msm8998.c441 static const struct freq_tbl ftbl_blsp1_qup1_i2c_apps_clk_src[] = {
452 .freq_tbl = ftbl_blsp1_qup1_i2c_apps_clk_src,
461 static const struct freq_tbl ftbl_blsp1_qup1_spi_apps_clk_src[] = {
477 .freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src,
491 .freq_tbl = ftbl_blsp1_qup1_i2c_apps_clk_src,
505 .freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src,
519 .freq_tbl = ftbl_blsp1_qup1_i2c_apps_clk_src,
533 .freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src,
547 .freq_tbl = ftbl_blsp1_qup1_i2c_apps_clk_src,
561 .freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src,
[all …]
Dgcc-sdm845.c206 static const struct freq_tbl ftbl_gcc_cpuss_ahb_clk_src[] = {
216 .freq_tbl = ftbl_gcc_cpuss_ahb_clk_src,
225 static const struct freq_tbl ftbl_gcc_cpuss_rbcpr_clk_src[] = {
235 .freq_tbl = ftbl_gcc_cpuss_rbcpr_clk_src,
244 static const struct freq_tbl ftbl_gcc_gp1_clk_src[] = {
258 .freq_tbl = ftbl_gcc_gp1_clk_src,
272 .freq_tbl = ftbl_gcc_gp1_clk_src,
286 .freq_tbl = ftbl_gcc_gp1_clk_src,
295 static const struct freq_tbl ftbl_gcc_pcie_0_aux_clk_src[] = {
306 .freq_tbl = ftbl_gcc_pcie_0_aux_clk_src,
[all …]
Dmmcc-msm8996.c474 static const struct freq_tbl ftbl_ahb_clk_src[] = {
485 .freq_tbl = ftbl_ahb_clk_src,
494 static const struct freq_tbl ftbl_axi_clk_src[] = {
509 .freq_tbl = ftbl_axi_clk_src,
522 .freq_tbl = ftbl_axi_clk_src,
544 static const struct freq_tbl ftbl_rbbmtimer_clk_src[] = {
553 .freq_tbl = ftbl_rbbmtimer_clk_src,
574 static const struct freq_tbl ftbl_rbcpr_clk_src[] = {
584 .freq_tbl = ftbl_rbcpr_clk_src,
593 static const struct freq_tbl ftbl_video_core_clk_src[] = {
[all …]
Dgcc-mdm9615.c166 static struct freq_tbl clk_tbl_gsbi_uart[] = {
203 .freq_tbl = clk_tbl_gsbi_uart,
254 .freq_tbl = clk_tbl_gsbi_uart,
305 .freq_tbl = clk_tbl_gsbi_uart,
356 .freq_tbl = clk_tbl_gsbi_uart,
407 .freq_tbl = clk_tbl_gsbi_uart,
439 static struct freq_tbl clk_tbl_gsbi_qup[] = {
470 .freq_tbl = clk_tbl_gsbi_qup,
519 .freq_tbl = clk_tbl_gsbi_qup,
568 .freq_tbl = clk_tbl_gsbi_qup,
[all …]
Dmmcc-msm8998.c540 static const struct freq_tbl ftbl_cci_clk_src[] = {
551 .freq_tbl = ftbl_cci_clk_src,
560 static const struct freq_tbl ftbl_cpp_clk_src[] = {
575 .freq_tbl = ftbl_cpp_clk_src,
584 static const struct freq_tbl ftbl_csi_clk_src[] = {
598 .freq_tbl = ftbl_csi_clk_src,
611 .freq_tbl = ftbl_csi_clk_src,
624 .freq_tbl = ftbl_csi_clk_src,
637 .freq_tbl = ftbl_csi_clk_src,
646 static const struct freq_tbl ftbl_csiphy_clk_src[] = {
[all …]

123