/linux-4.1.27/drivers/cpufreq/ |
D | s3c2412-cpufreq.c | 36 static struct clk *hclk; variable 44 unsigned long hclk, fclk, armclk, armdiv_clk; in s3c2412_cpufreq_calcdivs() local 49 hclk_max = cfg->max.hclk; in s3c2412_cpufreq_calcdivs() 61 cfg->freq.hclk, cfg->freq.pclk); in s3c2412_cpufreq_calcdivs() 77 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs() 83 cfg->freq.armclk = dvs ? hclk : armdiv_clk; in s3c2412_cpufreq_calcdivs() 86 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs); in s3c2412_cpufreq_calcdivs() 91 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs() 93 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs() 96 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs() [all …]
|
D | s3c2440-cpufreq.c | 35 static struct clk *hclk; variable 58 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local 63 hclk_max = cfg->max.hclk; in s3c2440_cpufreq_calcdivs() 81 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs() 82 if (hclk <= hclk_max || within_khz(hclk, hclk_max)) in s3c2440_cpufreq_calcdivs() 86 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv); in s3c2440_cpufreq_calcdivs() 91 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs() 93 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs() 105 if (armclk < hclk) in s3c2440_cpufreq_calcdivs() 106 armclk = hclk; in s3c2440_cpufreq_calcdivs() [all …]
|
D | s3c2410-cpufreq.c | 48 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local 53 hclk_max = cfg->max.hclk; in s3c2410_cpufreq_calcdivs() 60 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 61 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs() 63 if (hclk > cfg->max.hclk) { in s3c2410_cpufreq_calcdivs() 68 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 69 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs() 88 .hclk = 100000000, 141 s3c2410_cpufreq_info.max.hclk = 133000000; in s3c2410a_cpufreq_add()
|
D | s3c2416-cpufreq.c | 30 struct clk *hclk; member 134 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_enter_dvs() 135 ret = clk_set_parent(s3c_freq->armclk, s3c_freq->hclk); in s3c2416_cpufreq_enter_dvs() 192 if (clk_get_rate(s3c_freq->armdiv) > clk_get_rate(s3c_freq->hclk)) { in s3c2416_cpufreq_leave_dvs() 194 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs() 196 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs() 199 clk_get_rate(s3c_freq->hclk) / 1000, ret); in s3c2416_cpufreq_leave_dvs() 245 ? clk_get_rate(s3c_freq->hclk) / 1000 in s3c2416_cpufreq_set_target() 390 s3c_freq->hclk = clk_get(NULL, "hclk"); in s3c2416_cpufreq_driver_init() 391 if (IS_ERR(s3c_freq->hclk)) { in s3c2416_cpufreq_driver_init() [all …]
|
D | s3c24xx-cpufreq.c | 65 unsigned long fclk, pclk, hclk, armclk; in s3c_cpufreq_getcur() local 68 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur() 75 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur() 77 cfg->divs.h_divisor = fclk / hclk; in s3c_cpufreq_getcur() 86 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc() 90 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc() 106 cfg->freq.hclk, cfg->divs.h_divisor, in s3c_cpufreq_show() 188 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) { in s3c_cpufreq_settarget() 211 s3c_cpufreq_updateclk(clk_hclk, cpu_new.freq.hclk); in s3c_cpufreq_settarget() 224 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) { in s3c_cpufreq_settarget() [all …]
|
D | highbank-cpufreq.c | 37 unsigned long action, void *hclk) in hb_cpufreq_clk_notify() argument 39 struct clk_notifier_data *clk_data = hclk; in hb_cpufreq_clk_notify()
|
D | s3c24xx-cpufreq-debugfs.c | 34 f->fclk, f->hclk, f->pclk, f->armclk); in show_max() 89 cfg->freq.hclk, print_ns(cfg->freq.hclk_tns)); in info_show() 90 seq_printf(seq, " PCLK %ld Hz\n", cfg->freq.hclk); in info_show()
|
/linux-4.1.27/arch/arm/mach-s3c24xx/ |
D | iotiming-s3c2410.c | 136 int calc_tacp(unsigned int cyc, unsigned long hclk, unsigned long *v) in calc_tacp() argument 220 unsigned long hclk = cfg->freq.hclk_tns; in s3c2410_calc_bank() local 234 ret = calc_0124(bt->tacs, hclk, &res, S3C2410_BANKCON_Tacs_SHIFT); in s3c2410_calc_bank() 235 ret |= calc_0124(bt->tcos, hclk, &res, S3C2410_BANKCON_Tcos_SHIFT); in s3c2410_calc_bank() 236 ret |= calc_0124(bt->tcah, hclk, &res, S3C2410_BANKCON_Tcah_SHIFT); in s3c2410_calc_bank() 237 ret |= calc_0124(bt->tcoh, hclk, &res, S3C2410_BANKCON_Tcoh_SHIFT); in s3c2410_calc_bank() 242 ret |= calc_tacp(bt->tacp, hclk, &res); in s3c2410_calc_bank() 243 ret |= calc_tacc(bt->tacc, bt->nwait_en, hclk, &res); in s3c2410_calc_bank() 299 unsigned long hclk = cfg->freq.hclk_tns; in s3c2410_iotiming_getbank() local 301 bt->tcah = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tcah_SHIFT); in s3c2410_iotiming_getbank() [all …]
|
D | iotiming-s3c2412.c | 98 unsigned int hclk = cfg->freq.hclk_tns; in s3c2412_calc_bank() local 101 bt->smbidcyr = calc_timing(bt->idcy, hclk, &err); in s3c2412_calc_bank() 102 bt->smbwstrd = calc_timing(bt->wstrd, hclk, &err); in s3c2412_calc_bank() 103 bt->smbwstwr = calc_timing(bt->wstwr, hclk, &err); in s3c2412_calc_bank() 104 bt->smbwstoen = calc_timing(bt->wstoen, hclk, &err); in s3c2412_calc_bank() 105 bt->smbwstwen = calc_timing(bt->wstwen, hclk, &err); in s3c2412_calc_bank() 106 bt->smbwstbrd = calc_timing(bt->wstbrd, hclk, &err); in s3c2412_calc_bank() 277 refresh = (cfg->freq.hclk / 100) * (board->refresh / 10); in s3c2412_cpufreq_setrefresh()
|
D | mach-osiris-dvs.c | 49 return f->armclk == f->hclk; in is_dvs() 68 freqs->old.armclk, freqs->old.hclk, in osiris_dvs_notify() 69 freqs->new.armclk, freqs->new.hclk); in osiris_dvs_notify()
|
D | cpufreq-utils.c | 46 refresh = (cfg->freq.hclk / 100) * (board->refresh / 10); in s3c2410_cpufreq_setrefresh()
|
/linux-4.1.27/arch/arm/mach-mv78xx0/ |
D | common.c | 49 int hclk; in get_hclk() local 56 hclk = 166666667; in get_hclk() 59 hclk = 200000000; in get_hclk() 62 hclk = 266666667; in get_hclk() 65 hclk = 333333333; in get_hclk() 68 hclk = 400000000; in get_hclk() 75 return hclk; in get_hclk() 78 static void get_pclk_l2clk(int hclk, int core_index, int *pclk, int *l2clk) in get_pclk_l2clk() argument 96 *pclk = ((u64)hclk * (2 + (cfg & 0xf))) >> 1; in get_pclk_l2clk() 393 int hclk; in mv78xx0_init() local [all …]
|
/linux-4.1.27/arch/avr32/mach-at32ap/ |
D | pdc.c | 16 struct clk *pclk, *hclk; in pdc_probe() local 23 hclk = clk_get(&pdev->dev, "hclk"); in pdc_probe() 24 if (IS_ERR(hclk)) { in pdc_probe() 27 return PTR_ERR(hclk); in pdc_probe() 31 clk_enable(hclk); in pdc_probe()
|
D | at32ap700x.c | 618 DEV_CLK(hclk, dw_dmac0, hsb, 10); 723 DEV_CLK(hclk, pdc, hsb, 4); 1079 DEV_CLK(hclk, macb0, hsb, 8); 1088 DEV_CLK(hclk, macb1, hsb, 9); 1474 DEV_CLK(hclk, atmel_lcdfb0, hsb, 7);
|
/linux-4.1.27/drivers/soc/qcom/ |
D | qcom_gsbi.c | 119 struct clk *hclk; member 191 gsbi->hclk = devm_clk_get(&pdev->dev, "iface"); in gsbi_probe() 192 if (IS_ERR(gsbi->hclk)) in gsbi_probe() 193 return PTR_ERR(gsbi->hclk); in gsbi_probe() 195 clk_prepare_enable(gsbi->hclk); in gsbi_probe() 231 clk_disable_unprepare(gsbi->hclk); in gsbi_remove()
|
/linux-4.1.27/arch/arm/boot/dts/ |
D | ste-nomadik-stn8815.dtsi | 203 hclk: hclk@0 { label 205 compatible = "st,nomadik-hclk-clock"; 214 clocks = <&hclk>; 278 clocks = <&hclk>; 284 clocks = <&hclk>; 290 clocks = <&hclk>; 296 clocks = <&hclk>; 302 clocks = <&hclk>; 356 clocks = <&hclk>; 362 clocks = <&hclk>; [all …]
|
D | at91sam9x5_macb1.dtsi | 50 clock-names = "hclk", "pclk";
|
D | sama5d3_emac.dtsi | 50 clock-names = "hclk", "pclk";
|
D | at91sam9x5_macb0.dtsi | 62 clock-names = "hclk", "pclk";
|
D | zynq-7000.dtsi | 201 clock-names = "pclk", "hclk", "tx_clk"; 212 clock-names = "pclk", "hclk", "tx_clk";
|
D | at91sam9263.dtsi | 854 clock-names = "hclk", "pclk"; 863 clock-names = "pclk", "hclk"; 987 clock-names = "lcdc_clk", "hclk"; 1014 clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck";
|
D | sama5d3_gmac.dtsi | 83 clock-names = "hclk", "pclk";
|
D | at91sam9261.dtsi | 79 clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck"; 90 clock-names = "lcdc_clk", "hclk"; 131 clock-names = "pclk", "hclk";
|
D | at91sam9g45.dtsi | 965 clock-names = "hclk", "pclk"; 1156 clock-names = "pclk", "hclk"; 1267 clock-names = "hclk", "lcdc_clk"; 1295 clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck"; 1304 clock-names = "usb_clk", "ehci_clk", "hclk", "uhpck";
|
D | at91sam9260.dtsi | 851 clock-names = "hclk", "pclk"; 860 clock-names = "pclk", "hclk"; 1012 clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck";
|
D | at91sam9n12.dtsi | 921 clock-names = "pclk", "hclk"; 954 clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck";
|
D | at91rm9200.dtsi | 904 clock-names = "pclk", "hclk"; 944 clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck";
|
D | at91sam9rl.dtsi | 91 clock-names = "hclk", "lcdc_clk"; 301 clock-names = "pclk", "hclk";
|
D | rk3xxx.dtsi | 169 clock-names = "hclk", "macref";
|
D | sama5d4.dtsi | 131 clock-names = "pclk", "hclk"; 259 clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck"; 952 clock-names = "hclk", "pclk";
|
D | at91sam9x5.dtsi | 1070 clock-names = "hclk", "pclk"; 1180 clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck";
|
D | s5pv210.dtsi | 240 clock-names = "hclk", "xxti",
|
D | sama5d3.dtsi | 1329 clock-names = "pclk", "hclk"; 1444 clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck";
|
/linux-4.1.27/drivers/clk/samsung/ |
D | clk-s5pv210-audss.c | 74 struct clk *hclk, *pll_ref, *pll_in, *cdclk, *sclk_audio; in s5pv210_audss_clk_probe() local 92 hclk = devm_clk_get(&pdev->dev, "hclk"); in s5pv210_audss_clk_probe() 93 if (IS_ERR(hclk)) { in s5pv210_audss_clk_probe() 95 return PTR_ERR(hclk); in s5pv210_audss_clk_probe() 146 hclk_p = __clk_get_name(hclk); in s5pv210_audss_clk_probe()
|
/linux-4.1.27/drivers/spi/ |
D | spi-sun4i.c | 79 struct clk *hclk; member 318 ret = clk_prepare_enable(sspi->hclk); in sun4i_spi_runtime_resume() 336 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_resume() 347 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_suspend() 398 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun4i_spi_probe() 399 if (IS_ERR(sspi->hclk)) { in sun4i_spi_probe() 401 ret = PTR_ERR(sspi->hclk); in sun4i_spi_probe()
|
D | spi-sun6i.c | 84 struct clk *hclk; member 308 ret = clk_prepare_enable(sspi->hclk); in sun6i_spi_runtime_resume() 334 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_resume() 346 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_suspend() 397 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun6i_spi_probe() 398 if (IS_ERR(sspi->hclk)) { in sun6i_spi_probe() 400 ret = PTR_ERR(sspi->hclk); in sun6i_spi_probe()
|
/linux-4.1.27/Documentation/devicetree/bindings/clock/ |
D | clk-s5pv210-audss.txt | 14 - hclk: AHB bus clock of the Audio Subsystem. 23 - clock-names: Aliases for the above clocks. They should be "hclk", 36 clock-names = "hclk", "xxti",
|
D | mvebu-core-clock.txt | 11 3 = hclk (DRAM control clock) 30 3 = hclk (SDRAM Controller Internal Clock)
|
D | st,nomadik.txt | 39 - compatible: must be "st,nomadik-hclk-clock"
|
/linux-4.1.27/sound/soc/rockchip/ |
D | rockchip_i2s.c | 29 struct clk *hclk; member 430 i2s->hclk = devm_clk_get(&pdev->dev, "i2s_hclk"); in rockchip_i2s_probe() 431 if (IS_ERR(i2s->hclk)) { in rockchip_i2s_probe() 433 return PTR_ERR(i2s->hclk); in rockchip_i2s_probe() 435 ret = clk_prepare_enable(i2s->hclk); in rockchip_i2s_probe() 514 clk_disable_unprepare(i2s->hclk); in rockchip_i2s_remove()
|
/linux-4.1.27/Documentation/devicetree/bindings/net/ |
D | macb.txt | 16 Required elements: 'pclk', 'hclk' 28 clock-names = "pclk", "hclk", "tx_clk";
|
D | emac_rockchip.txt | 18 - clock-names: Shall be "hclk" for the host clock needed to calculate and set 34 clock-names = "hclk", "macref";
|
/linux-4.1.27/drivers/usb/host/ |
D | ohci-at91.c | 42 struct clk *hclk; member 68 clk_prepare_enable(ohci_at91->hclk); in at91_start_clock() 81 clk_disable_unprepare(ohci_at91->hclk); in at91_stop_clock() 184 ohci_at91->hclk = devm_clk_get(dev, "hclk"); in usb_hcd_at91_probe() 185 if (IS_ERR(ohci_at91->hclk)) { in usb_hcd_at91_probe() 187 retval = PTR_ERR(ohci_at91->hclk); in usb_hcd_at91_probe()
|
/linux-4.1.27/drivers/net/can/m_can/ |
D | m_can.c | 284 struct clk *hclk; member 549 err = clk_prepare_enable(priv->hclk); in m_can_get_berr_counter() 555 clk_disable_unprepare(priv->hclk); in m_can_get_berr_counter() 562 clk_disable_unprepare(priv->hclk); in m_can_get_berr_counter() 977 err = clk_prepare_enable(priv->hclk); in m_can_open() 1014 clk_disable_unprepare(priv->hclk); in m_can_open() 1025 clk_disable_unprepare(priv->hclk); in m_can_stop() 1191 struct clk *hclk, *cclk; in m_can_plat_probe() local 1194 hclk = devm_clk_get(&pdev->dev, "hclk"); in m_can_plat_probe() 1196 if (IS_ERR(hclk) || IS_ERR(cclk)) { in m_can_plat_probe() [all …]
|
/linux-4.1.27/arch/arm64/boot/dts/xilinx/ |
D | zynqmp.dtsi | 181 clock-names = "pclk", "hclk", "tx_clk"; 193 clock-names = "pclk", "hclk", "tx_clk"; 205 clock-names = "pclk", "hclk", "tx_clk"; 217 clock-names = "pclk", "hclk", "tx_clk";
|
/linux-4.1.27/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop.c | 110 struct clk *hclk; member 430 ret = clk_enable(vop->hclk); in vop_enable() 482 clk_disable(vop->hclk); in vop_enable() 525 clk_disable(vop->hclk); in vop_disable() 1287 vop->hclk = devm_clk_get(vop->dev, "hclk_vop"); in vop_initial() 1288 if (IS_ERR(vop->hclk)) { in vop_initial() 1290 return PTR_ERR(vop->hclk); in vop_initial() 1303 ret = clk_prepare(vop->hclk); in vop_initial() 1324 ret = clk_enable(vop->hclk); in vop_initial() 1368 clk_disable(vop->hclk); in vop_initial() [all …]
|
/linux-4.1.27/drivers/mmc/host/ |
D | sh_mmcif.c | 231 struct clk *hclk; member 977 int ret = clk_prepare_enable(host->hclk); in sh_mmcif_clk_update() 980 host->clk = clk_get_rate(host->hclk); in sh_mmcif_clk_update() 1031 clk_disable_unprepare(host->hclk); in sh_mmcif_set_ios() 1436 host->hclk = devm_clk_get(&pdev->dev, NULL); in sh_mmcif_probe() 1437 if (IS_ERR(host->hclk)) { in sh_mmcif_probe() 1438 ret = PTR_ERR(host->hclk); in sh_mmcif_probe() 1488 clk_get_rate(host->hclk) / 1000000UL); in sh_mmcif_probe() 1490 clk_disable_unprepare(host->hclk); in sh_mmcif_probe() 1494 clk_disable_unprepare(host->hclk); in sh_mmcif_probe() [all …]
|
D | tmio_mmc.c | 71 if (!pdata || !pdata->hclk) in tmio_mmc_probe()
|
D | tmio_mmc_pio.c | 1133 mmc->f_max = pdata->hclk; in tmio_mmc_host_probe()
|
/linux-4.1.27/arch/arm/plat-samsung/include/plat/ |
D | cpu-freq.h | 39 unsigned long hclk; member
|
/linux-4.1.27/Documentation/devicetree/bindings/net/can/ |
D | m_can.txt | 15 - clock-names : Should contain "hclk" and "cclk" 57 clock-names = "hclk", "cclk";
|
/linux-4.1.27/drivers/net/ethernet/cadence/ |
D | macb.c | 2206 struct clk **hclk, struct clk **tx_clk) in macb_clk_init() argument 2217 *hclk = devm_clk_get(&pdev->dev, "hclk"); in macb_clk_init() 2218 if (IS_ERR(*hclk)) { in macb_clk_init() 2219 err = PTR_ERR(*hclk); in macb_clk_init() 2234 err = clk_prepare_enable(*hclk); in macb_clk_init() 2249 clk_disable_unprepare(*hclk); in macb_clk_init() 2627 struct clk **hclk, struct clk **tx_clk) in at91ether_clk_init() argument 2631 *hclk = NULL; in at91ether_clk_init() 2737 struct clk *pclk, *hclk, *tx_clk; in macb_probe() local 2759 err = clk_init(pdev, &pclk, &hclk, &tx_clk); in macb_probe() [all …]
|
D | macb.h | 759 struct clk **hclk, struct clk **tx_clk); 797 struct clk *hclk; member
|
/linux-4.1.27/include/linux/mfd/ |
D | tmio.h | 116 unsigned int hclk; member
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
D | atmel_usba_udc.c | 1752 ret = clk_prepare_enable(udc->hclk); in start_clock() 1767 clk_disable_unprepare(udc->hclk); in stop_clock() 2076 struct clk *pclk, *hclk; in usba_udc_probe() local 2099 hclk = devm_clk_get(&pdev->dev, "hclk"); in usba_udc_probe() 2100 if (IS_ERR(hclk)) in usba_udc_probe() 2101 return PTR_ERR(hclk); in usba_udc_probe() 2107 udc->hclk = hclk; in usba_udc_probe()
|
D | atmel_usba_udc.h | 341 struct clk *hclk; member
|
/linux-4.1.27/drivers/mfd/ |
D | tc6387xb.c | 122 .hclk = 24000000,
|
D | t7l66xb.c | 145 .hclk = 24000000,
|
D | tc6393xb.c | 391 .hclk = 24000000,
|
D | asic3.c | 724 .hclk = 24576000,
|
/linux-4.1.27/Documentation/devicetree/bindings/usb/ |
D | atmel-usb.txt | 46 "hclk" for the AHB clock
|
/linux-4.1.27/arch/arc/boot/dts/ |
D | abilis_tb10x.dtsi | 117 clock-names = "hclk";
|