/drivers/cpufreq/ |
D | spear-cpufreq.c | 30 struct cpufreq_frequency_table *freq_tbl; member 110 newfreq = spear_cpufreq.freq_tbl[index].frequency * 1000; in spear_cpufreq_target() 156 return cpufreq_generic_init(policy, spear_cpufreq.freq_tbl, in spear_cpufreq_init() 174 struct cpufreq_frequency_table *freq_tbl; in spear_cpufreq_probe() local 198 freq_tbl = kzalloc(sizeof(*freq_tbl) * (cnt + 1), GFP_KERNEL); in spear_cpufreq_probe() 199 if (!freq_tbl) { in spear_cpufreq_probe() 205 freq_tbl[i].frequency = be32_to_cpup(val++); in spear_cpufreq_probe() 207 freq_tbl[i].frequency = CPUFREQ_TABLE_END; in spear_cpufreq_probe() 209 spear_cpufreq.freq_tbl = freq_tbl; in spear_cpufreq_probe() 228 kfree(freq_tbl); in spear_cpufreq_probe()
|
D | loongson1-cpufreq.c | 81 struct cpufreq_frequency_table *freq_tbl; in ls1x_cpufreq_init() local 88 freq_tbl = kcalloc(steps, sizeof(*freq_tbl), GFP_KERNEL); in ls1x_cpufreq_init() 89 if (!freq_tbl) in ls1x_cpufreq_init() 95 freq_tbl[i].frequency = CPUFREQ_ENTRY_INVALID; in ls1x_cpufreq_init() 97 freq_tbl[i].frequency = freq; in ls1x_cpufreq_init() 100 freq_tbl[i].frequency); in ls1x_cpufreq_init() 102 freq_tbl[i].frequency = CPUFREQ_TABLE_END; in ls1x_cpufreq_init() 105 ret = cpufreq_generic_init(policy, freq_tbl, 0); in ls1x_cpufreq_init() 107 kfree(freq_tbl); in ls1x_cpufreq_init()
|
D | exynos5440-cpufreq.c | 117 struct cpufreq_frequency_table *pos, *freq_tbl = dvfs_info->freq_table; in init_div_table() local 122 cpufreq_for_each_entry(pos, freq_tbl) { in init_div_table() 159 (pos - freq_tbl)); in init_div_table() 284 struct cpufreq_frequency_table *freq_tbl = dvfs_info->freq_table; in exynos_sort_descend_freq_table() local 295 tmp_freq = freq_tbl[i].frequency; in exynos_sort_descend_freq_table() 296 freq_tbl[i].frequency = freq_tbl[index].frequency; in exynos_sort_descend_freq_table() 297 freq_tbl[index].frequency = tmp_freq; in exynos_sort_descend_freq_table()
|
/drivers/clk/qcom/ |
D | gcc-apq8084.c | 228 static const struct freq_tbl ftbl_gcc_ufs_axi_clk[] = { 240 .freq_tbl = ftbl_gcc_ufs_axi_clk, 249 static const struct freq_tbl ftbl_gcc_usb30_master_clk[] = { 259 .freq_tbl = ftbl_gcc_usb30_master_clk, 268 static const struct freq_tbl ftbl_gcc_usb30_sec_master_clk[] = { 278 .freq_tbl = ftbl_gcc_usb30_sec_master_clk, 321 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk[] = { 331 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk, 340 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk[] = { 356 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk, [all …]
|
D | gcc-msm8974.c | 184 static const struct freq_tbl ftbl_gcc_usb30_master_clk[] = { 194 .freq_tbl = ftbl_gcc_usb30_master_clk, 203 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk[] = { 214 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk, 223 static const struct freq_tbl ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk[] = { 239 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk, 252 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk, 266 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk, 279 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_i2c_apps_clk, 293 .freq_tbl = ftbl_gcc_blsp1_2_qup1_6_spi_apps_clk, [all …]
|
D | gcc-msm8916.c | 401 static const struct freq_tbl ftbl_gcc_camss_ahb_clk[] = { 412 .freq_tbl = ftbl_gcc_camss_ahb_clk, 421 static const struct freq_tbl ftbl_apss_ahb_clk[] = { 433 .freq_tbl = ftbl_apss_ahb_clk, 442 static const struct freq_tbl ftbl_gcc_camss_csi0_1_clk[] = { 452 .freq_tbl = ftbl_gcc_camss_csi0_1_clk, 465 .freq_tbl = ftbl_gcc_camss_csi0_1_clk, 474 static const struct freq_tbl ftbl_gcc_oxili_gfx3d_clk[] = { 493 .freq_tbl = ftbl_gcc_oxili_gfx3d_clk, 502 static const struct freq_tbl ftbl_gcc_camss_vfe0_clk[] = { [all …]
|
D | mmcc-msm8974.c | 286 static struct freq_tbl ftbl_mmss_axi_clk[] = { 302 .freq_tbl = ftbl_mmss_axi_clk, 311 static struct freq_tbl ftbl_ocmemnoc_clk[] = { 326 .freq_tbl = ftbl_ocmemnoc_clk, 335 static struct freq_tbl ftbl_camss_csi0_3_clk[] = { 345 .freq_tbl = ftbl_camss_csi0_3_clk, 358 .freq_tbl = ftbl_camss_csi0_3_clk, 371 .freq_tbl = ftbl_camss_csi0_3_clk, 384 .freq_tbl = ftbl_camss_csi0_3_clk, 393 static struct freq_tbl ftbl_camss_vfe_vfe0_1_clk[] = { [all …]
|
D | gcc-ipq4019.c | 133 static const struct freq_tbl ftbl_gcc_audio_pwm_clk[] = { 143 .freq_tbl = ftbl_gcc_audio_pwm_clk, 187 static const struct freq_tbl ftbl_gcc_blsp1_qup1_2_i2c_apps_clk[] = { 197 .freq_tbl = ftbl_gcc_blsp1_qup1_2_i2c_apps_clk, 227 .freq_tbl = ftbl_gcc_blsp1_qup1_2_i2c_apps_clk, 253 static const struct freq_tbl ftbl_gcc_blsp1_qup1_2_spi_apps_clk[] = { 269 .freq_tbl = ftbl_gcc_blsp1_qup1_2_spi_apps_clk, 299 .freq_tbl = ftbl_gcc_blsp1_qup1_2_spi_apps_clk, 326 static const struct freq_tbl ftbl_gcc_blsp1_uart1_2_apps_clk[] = { 344 .freq_tbl = ftbl_gcc_blsp1_uart1_2_apps_clk, [all …]
|
D | gcc-msm8996.c | 287 static const struct freq_tbl ftbl_system_noc_clk_src[] = { 301 .freq_tbl = ftbl_system_noc_clk_src, 310 static const struct freq_tbl ftbl_config_noc_clk_src[] = { 321 .freq_tbl = ftbl_config_noc_clk_src, 330 static const struct freq_tbl ftbl_periph_noc_clk_src[] = { 343 .freq_tbl = ftbl_periph_noc_clk_src, 352 static const struct freq_tbl ftbl_usb30_master_clk_src[] = { 364 .freq_tbl = ftbl_usb30_master_clk_src, 373 static const struct freq_tbl ftbl_usb30_mock_utmi_clk_src[] = { 382 .freq_tbl = ftbl_usb30_mock_utmi_clk_src, [all …]
|
D | clk-rcg.h | 20 struct freq_tbl { struct 102 const struct freq_tbl *freq_tbl; member 141 const struct freq_tbl *freq_tbl; member 168 const struct freq_tbl *freq_tbl; member
|
D | lcc-msm8960.c | 65 static struct freq_tbl clk_tbl_aif_osr_492[] = { 81 static struct freq_tbl clk_tbl_aif_osr_393[] = { 116 .freq_tbl = clk_tbl_aif_osr_393, 222 .freq_tbl = clk_tbl_aif_osr_393, \ 313 static struct freq_tbl clk_tbl_pcm_492[] = { 330 static struct freq_tbl clk_tbl_pcm_393[] = { 366 .freq_tbl = clk_tbl_pcm_393, 434 .freq_tbl = clk_tbl_aif_osr_393, 554 slimbus_src.freq_tbl = clk_tbl_aif_osr_492; in lcc_msm8960_probe() 555 mi2s_osr_src.freq_tbl = clk_tbl_aif_osr_492; in lcc_msm8960_probe() [all …]
|
D | lcc-mdm9615.c | 67 static struct freq_tbl clk_tbl_aif_osr_492[] = { 83 static struct freq_tbl clk_tbl_aif_osr_393[] = { 118 .freq_tbl = clk_tbl_aif_osr_393, 224 .freq_tbl = clk_tbl_aif_osr_393, \ 315 static struct freq_tbl clk_tbl_pcm_492[] = { 332 static struct freq_tbl clk_tbl_pcm_393[] = { 368 .freq_tbl = clk_tbl_pcm_393, 436 .freq_tbl = clk_tbl_aif_osr_393, 555 slimbus_src.freq_tbl = clk_tbl_aif_osr_492; in lcc_mdm9615_probe() 556 mi2s_osr_src.freq_tbl = clk_tbl_aif_osr_492; in lcc_mdm9615_probe() [all …]
|
D | mmcc-apq8084.c | 336 static struct freq_tbl ftbl_mmss_axi_clk[] = { 352 .freq_tbl = ftbl_mmss_axi_clk, 361 static struct freq_tbl ftbl_ocmemnoc_clk[] = { 376 .freq_tbl = ftbl_ocmemnoc_clk, 385 static struct freq_tbl ftbl_camss_csi0_3_clk[] = { 395 .freq_tbl = ftbl_camss_csi0_3_clk, 408 .freq_tbl = ftbl_camss_csi0_3_clk, 421 .freq_tbl = ftbl_camss_csi0_3_clk, 434 .freq_tbl = ftbl_camss_csi0_3_clk, 443 static struct freq_tbl ftbl_camss_vfe_vfe0_1_clk[] = { [all …]
|
D | mmcc-msm8996.c | 468 static const struct freq_tbl ftbl_ahb_clk_src[] = { 479 .freq_tbl = ftbl_ahb_clk_src, 488 static const struct freq_tbl ftbl_axi_clk_src[] = { 503 .freq_tbl = ftbl_axi_clk_src, 516 .freq_tbl = ftbl_axi_clk_src, 538 static const struct freq_tbl ftbl_rbbmtimer_clk_src[] = { 547 .freq_tbl = ftbl_rbbmtimer_clk_src, 568 static const struct freq_tbl ftbl_rbcpr_clk_src[] = { 578 .freq_tbl = ftbl_rbcpr_clk_src, 587 static const struct freq_tbl ftbl_video_core_clk_src[] = { [all …]
|
D | gcc-mdm9615.c | 174 static struct freq_tbl clk_tbl_gsbi_uart[] = { 211 .freq_tbl = clk_tbl_gsbi_uart, 262 .freq_tbl = clk_tbl_gsbi_uart, 313 .freq_tbl = clk_tbl_gsbi_uart, 364 .freq_tbl = clk_tbl_gsbi_uart, 415 .freq_tbl = clk_tbl_gsbi_uart, 447 static struct freq_tbl clk_tbl_gsbi_qup[] = { 478 .freq_tbl = clk_tbl_gsbi_qup, 527 .freq_tbl = clk_tbl_gsbi_qup, 576 .freq_tbl = clk_tbl_gsbi_qup, [all …]
|
D | gcc-ipq806x.c | 167 .freq_tbl = pll18_freq_tbl, 251 static struct freq_tbl clk_tbl_gsbi_uart[] = { 288 .freq_tbl = clk_tbl_gsbi_uart, 339 .freq_tbl = clk_tbl_gsbi_uart, 390 .freq_tbl = clk_tbl_gsbi_uart, 441 .freq_tbl = clk_tbl_gsbi_uart, 492 .freq_tbl = clk_tbl_gsbi_uart, 543 .freq_tbl = clk_tbl_gsbi_uart, 575 static struct freq_tbl clk_tbl_gsbi_qup[] = { 607 .freq_tbl = clk_tbl_gsbi_qup, [all …]
|
D | gcc-msm8660.c | 90 static struct freq_tbl clk_tbl_gsbi_uart[] = { 127 .freq_tbl = clk_tbl_gsbi_uart, 178 .freq_tbl = clk_tbl_gsbi_uart, 229 .freq_tbl = clk_tbl_gsbi_uart, 280 .freq_tbl = clk_tbl_gsbi_uart, 331 .freq_tbl = clk_tbl_gsbi_uart, 382 .freq_tbl = clk_tbl_gsbi_uart, 433 .freq_tbl = clk_tbl_gsbi_uart, 484 .freq_tbl = clk_tbl_gsbi_uart, 533 .freq_tbl = clk_tbl_gsbi_uart, [all …]
|
D | gcc-msm8960.c | 157 static struct freq_tbl clk_tbl_gsbi_uart[] = { 194 .freq_tbl = clk_tbl_gsbi_uart, 245 .freq_tbl = clk_tbl_gsbi_uart, 296 .freq_tbl = clk_tbl_gsbi_uart, 347 .freq_tbl = clk_tbl_gsbi_uart, 398 .freq_tbl = clk_tbl_gsbi_uart, 449 .freq_tbl = clk_tbl_gsbi_uart, 500 .freq_tbl = clk_tbl_gsbi_uart, 551 .freq_tbl = clk_tbl_gsbi_uart, 600 .freq_tbl = clk_tbl_gsbi_uart, [all …]
|
D | lcc-ipq806x.c | 79 static struct freq_tbl clk_tbl_aif_mi2s[] = { 135 .freq_tbl = clk_tbl_aif_mi2s, 220 static struct freq_tbl clk_tbl_pcm[] = { 249 .freq_tbl = clk_tbl_pcm, 298 static struct freq_tbl clk_tbl_aif_osr[] = { 329 .freq_tbl = clk_tbl_aif_osr, 364 static struct freq_tbl clk_tbl_ahbix[] = { 388 .freq_tbl = clk_tbl_ahbix,
|
D | clk-rcg2.c | 180 const struct freq_tbl *f, struct clk_rate_request *req) in _freq_tbl_determine_rate() 224 return _freq_tbl_determine_rate(hw, rcg->freq_tbl, req); in clk_rcg2_determine_rate() 227 static int clk_rcg2_configure(struct clk_rcg2 *rcg, const struct freq_tbl *f) in clk_rcg2_configure() 271 const struct freq_tbl *f; in __clk_rcg2_set_rate() 273 f = qcom_find_freq(rcg->freq_tbl, rate); in __clk_rcg2_set_rate() 369 clk_rcg2_shared_set_rate(hw, rcg->freq_tbl[0].freq, 0); in clk_rcg2_shared_disable() 413 struct freq_tbl f = *rcg->freq_tbl; in clk_edp_pixel_set_rate() 459 const struct freq_tbl *f = rcg->freq_tbl; in clk_edp_pixel_determine_rate() 513 const struct freq_tbl *f = rcg->freq_tbl; in clk_byte_determine_rate() 537 struct freq_tbl f = *rcg->freq_tbl; in clk_byte_set_rate() [all …]
|
D | mmcc-msm8960.c | 162 static struct freq_tbl clk_tbl_cam[] = { 197 .freq_tbl = clk_tbl_cam, 246 .freq_tbl = clk_tbl_cam, 295 .freq_tbl = clk_tbl_cam, 324 static struct freq_tbl clk_tbl_csi[] = { 350 .freq_tbl = clk_tbl_csi, 414 .freq_tbl = clk_tbl_csi, 478 .freq_tbl = clk_tbl_csi, 704 static struct freq_tbl clk_tbl_csiphytimer[] = { 730 .freq_tbl = clk_tbl_csiphytimer, [all …]
|
D | clk-rcg.c | 206 static int configure_bank(struct clk_dyn_rcg *rcg, const struct freq_tbl *f) in configure_bank() 304 struct freq_tbl f = { 0 }; in clk_dyn_rcg_set_parent() 407 static int _freq_tbl_determine_rate(struct clk_hw *hw, const struct freq_tbl *f, in _freq_tbl_determine_rate() 448 return _freq_tbl_determine_rate(hw, rcg->freq_tbl, req, in clk_rcg_determine_rate() 464 return _freq_tbl_determine_rate(hw, rcg->freq_tbl, req, s->parent_map); in clk_dyn_rcg_determine_rate() 471 const struct freq_tbl *f = rcg->freq_tbl; in clk_rcg_bypass_determine_rate() 482 static int __clk_rcg_set_rate(struct clk_rcg *rcg, const struct freq_tbl *f) in __clk_rcg_set_rate() 528 const struct freq_tbl *f; in clk_rcg_set_rate() 530 f = qcom_find_freq(rcg->freq_tbl, rate); in clk_rcg_set_rate() 542 return __clk_rcg_set_rate(rcg, rcg->freq_tbl); in clk_rcg_bypass_set_rate() [all …]
|
D | common.h | 21 struct freq_tbl; 35 extern const struct freq_tbl *qcom_find_freq(const struct freq_tbl *f,
|
D | clk-pll.c | 144 f = find_freq(pll->freq_tbl, req->rate); in clk_pll_determine_rate() 162 f = find_freq(pll->freq_tbl, rate); in clk_pll_set_rate() 342 f = find_freq(pll->freq_tbl, rate); in clk_pll_sr2_set_rate()
|
D | common.c | 35 struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, unsigned long rate) in qcom_find_freq()
|