/Linux-v5.4/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 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()
|
D | loongson1-cpufreq.c | 82 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()
|
/Linux-v5.4/drivers/clk/qcom/ |
D | gcc-msm8994.c | 120 static struct freq_tbl ftbl_ufs_axi_clk_src[] = { 135 .freq_tbl = ftbl_ufs_axi_clk_src, 145 static struct freq_tbl ftbl_usb30_master_clk_src[] = { 156 .freq_tbl = ftbl_usb30_master_clk_src, 166 static struct freq_tbl ftbl_blsp_i2c_apps_clk_src[] = { 176 .freq_tbl = ftbl_blsp_i2c_apps_clk_src, 186 static struct freq_tbl ftbl_blspqup_spi_apps_clk_src[] = { 204 .freq_tbl = ftbl_blspqup_spi_apps_clk_src, 218 .freq_tbl = ftbl_blsp_i2c_apps_clk_src, 233 .freq_tbl = ftbl_blspqup_spi_apps_clk_src, [all …]
|
D | gcc-apq8084.c | 218 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 …]
|
D | gcc-msm8974.c | 174 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 …]
|
D | gcc-sdm660.c | 254 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 …]
|
D | gcc-msm8916.c | 391 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 …]
|
D | gcc-msm8996.c | 275 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 …]
|
D | clk-rcg.h | 12 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
|
D | gcc-ipq4019.c | 77 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 …]
|
D | mmcc-msm8974.c | 276 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 …]
|
D | gcc-qcs404.c | 426 static const struct freq_tbl ftbl_apss_ahb_clk_src[] = { 439 .freq_tbl = ftbl_apss_ahb_clk_src, 449 static const struct freq_tbl ftbl_blsp1_qup0_i2c_apps_clk_src[] = { 460 .freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src, 469 static const struct freq_tbl ftbl_blsp1_qup0_spi_apps_clk_src[] = { 485 .freq_tbl = ftbl_blsp1_qup0_spi_apps_clk_src, 499 .freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src, 508 static const struct freq_tbl ftbl_blsp1_qup1_spi_apps_clk_src[] = { 524 .freq_tbl = ftbl_blsp1_qup1_spi_apps_clk_src, 538 .freq_tbl = ftbl_blsp1_qup0_i2c_apps_clk_src, [all …]
|
D | lcc-mdm9615.c | 59 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 …]
|
D | lcc-msm8960.c | 57 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 …]
|
D | camcc-sdm845.c | 165 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 …]
|
D | common.h | 12 struct freq_tbl; 44 extern const struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, 46 extern const struct freq_tbl *qcom_find_freq_floor(const struct freq_tbl *f,
|
D | clk-rcg2.c | 191 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() 296 static int clk_rcg2_configure(struct clk_rcg2 *rcg, const struct freq_tbl *f) in clk_rcg2_configure() 311 const struct freq_tbl *f; in __clk_rcg2_set_rate() 315 f = qcom_find_freq_floor(rcg->freq_tbl, rate); in __clk_rcg2_set_rate() 318 f = qcom_find_freq(rcg->freq_tbl, rate); in __clk_rcg2_set_rate() 407 struct freq_tbl f = *rcg->freq_tbl; in clk_edp_pixel_set_rate() 453 const struct freq_tbl *f = rcg->freq_tbl; in clk_edp_pixel_determine_rate() [all …]
|
D | gcc-ipq8074.c | 623 static const struct freq_tbl ftbl_pcnoc_bfdcd_clk_src[] = { 632 .freq_tbl = ftbl_pcnoc_bfdcd_clk_src, 674 static const struct freq_tbl ftbl_blsp1_qup_i2c_apps_clk_src[] = { 683 .freq_tbl = ftbl_blsp1_qup_i2c_apps_clk_src, 694 static const struct freq_tbl ftbl_blsp1_qup_spi_apps_clk_src[] = { 708 .freq_tbl = ftbl_blsp1_qup_spi_apps_clk_src, 722 .freq_tbl = ftbl_blsp1_qup_i2c_apps_clk_src, 735 .freq_tbl = ftbl_blsp1_qup_spi_apps_clk_src, 749 .freq_tbl = ftbl_blsp1_qup_i2c_apps_clk_src, 762 .freq_tbl = ftbl_blsp1_qup_spi_apps_clk_src, [all …]
|
D | mmcc-apq8084.c | 326 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 …]
|
D | gcc-msm8998.c | 441 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 …]
|
D | gcc-sdm845.c | 206 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 …]
|
D | gcc-sm8150.c | 238 static const struct freq_tbl ftbl_gcc_cpuss_ahb_clk_src[] = { 250 .freq_tbl = ftbl_gcc_cpuss_ahb_clk_src, 260 static const struct freq_tbl ftbl_gcc_emac_ptp_clk_src[] = { 273 .freq_tbl = ftbl_gcc_emac_ptp_clk_src, 283 static const struct freq_tbl ftbl_gcc_emac_rgmii_clk_src[] = { 299 .freq_tbl = ftbl_gcc_emac_rgmii_clk_src, 309 static const struct freq_tbl ftbl_gcc_gp1_clk_src[] = { 323 .freq_tbl = ftbl_gcc_gp1_clk_src, 338 .freq_tbl = ftbl_gcc_gp1_clk_src, 353 .freq_tbl = ftbl_gcc_gp1_clk_src, [all …]
|
D | gcc-mdm9615.c | 166 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 …]
|
D | mmcc-msm8996.c | 474 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 …]
|
D | gcc-ipq806x.c | 238 .freq_tbl = pll18_freq_tbl, 322 static struct freq_tbl clk_tbl_gsbi_uart[] = { 359 .freq_tbl = clk_tbl_gsbi_uart, 410 .freq_tbl = clk_tbl_gsbi_uart, 461 .freq_tbl = clk_tbl_gsbi_uart, 512 .freq_tbl = clk_tbl_gsbi_uart, 563 .freq_tbl = clk_tbl_gsbi_uart, 614 .freq_tbl = clk_tbl_gsbi_uart, 646 static struct freq_tbl clk_tbl_gsbi_qup[] = { 678 .freq_tbl = clk_tbl_gsbi_qup, [all …]
|