clk_rate 33 arch/m68k/include/asm/mcfclk.h #define DEFINE_CLK(clk_bank, clk_name, clk_slot, clk_rate) \ clk_rate 37 arch/m68k/include/asm/mcfclk.h .rate = clk_rate, \ clk_rate 44 arch/m68k/include/asm/mcfclk.h #define DEFINE_CLK(clk_ref, clk_name, clk_rate) \ clk_rate 47 arch/m68k/include/asm/mcfclk.h .rate = clk_rate, \ clk_rate 50 drivers/clk/mxs/clk-ssp.c ssp->clk_rate = ssp_sck; clk_rate 76 drivers/clocksource/exynos_mct.c static unsigned long clk_rate; clk_rate 238 drivers/clocksource/exynos_mct.c exynos4_delay_timer.freq = clk_rate; clk_rate 242 drivers/clocksource/exynos_mct.c if (clocksource_register_hz(&mct_frc, clk_rate)) clk_rate 245 drivers/clocksource/exynos_mct.c sched_clock_register(exynos4_read_sched_clock, 32, clk_rate); clk_rate 342 drivers/clocksource/exynos_mct.c clockevents_config_and_register(&mct_comp_device, clk_rate, clk_rate 478 drivers/clocksource/exynos_mct.c clockevents_config_and_register(evt, clk_rate / (TICK_BASE_CNT + 1), clk_rate 509 drivers/clocksource/exynos_mct.c clk_rate = clk_get_rate(tick_clk); clk_rate 130 drivers/clocksource/timer-oxnas-rps.c ulong clk_rate = clk_get_rate(rps->clk); clk_rate 135 drivers/clocksource/timer-oxnas-rps.c rps->timer_period = DIV_ROUND_UP(clk_rate, HZ); clk_rate 136 drivers/clocksource/timer-oxnas-rps.c timer_rate = clk_rate; clk_rate 140 drivers/clocksource/timer-oxnas-rps.c timer_rate = clk_rate / 16; clk_rate 145 drivers/clocksource/timer-oxnas-rps.c timer_rate = clk_rate / 256; clk_rate 167 drivers/clocksource/timer-oxnas-rps.c clk_rate, clk_rate 185 drivers/clocksource/timer-oxnas-rps.c ulong clk_rate = clk_get_rate(rps->clk); clk_rate 189 drivers/clocksource/timer-oxnas-rps.c clk_rate = clk_rate / 16; clk_rate 197 drivers/clocksource/timer-oxnas-rps.c TIMER_BITS, clk_rate); clk_rate 200 drivers/clocksource/timer-oxnas-rps.c clk_rate, 250, TIMER_BITS, clk_rate 207 drivers/clocksource/timer-oxnas-rps.c pr_info("Registered clocksource rate %luHz\n", clk_rate); clk_rate 159 drivers/clocksource/timer-vf-pit.c unsigned long clk_rate; clk_rate 188 drivers/clocksource/timer-vf-pit.c clk_rate = clk_get_rate(pit_clk); clk_rate 189 drivers/clocksource/timer-vf-pit.c cycle_per_jiffy = clk_rate / (HZ); clk_rate 194 drivers/clocksource/timer-vf-pit.c ret = pit_clocksource_init(clk_rate); clk_rate 198 drivers/clocksource/timer-vf-pit.c return pit_clockevent_init(clk_rate, irq); clk_rate 98 drivers/gpio/gpio-mvebu.c unsigned long clk_rate; clk_rate 663 drivers/gpio/gpio-mvebu.c do_div(val, mvpwm->clk_rate); clk_rate 674 drivers/gpio/gpio-mvebu.c do_div(val, mvpwm->clk_rate); clk_rate 705 drivers/gpio/gpio-mvebu.c val = (unsigned long long) mvpwm->clk_rate * state->duty_cycle; clk_rate 714 drivers/gpio/gpio-mvebu.c val = (unsigned long long) mvpwm->clk_rate * clk_rate 819 drivers/gpio/gpio-mvebu.c mvpwm->clk_rate = clk_get_rate(mvchip->clk); clk_rate 820 drivers/gpio/gpio-mvebu.c if (!mvpwm->clk_rate) { clk_rate 64 drivers/gpu/drm/arc/arcpgu_crtc.c long rate, clk_rate = mode->clock * 1000; clk_rate 65 drivers/gpu/drm/arc/arcpgu_crtc.c long diff = clk_rate / 200; /* +-0.5% allowed by HDMI spec */ clk_rate 67 drivers/gpu/drm/arc/arcpgu_crtc.c rate = clk_round_rate(arcpgu->clk, clk_rate); clk_rate 68 drivers/gpu/drm/arc/arcpgu_crtc.c if ((max(rate, clk_rate) - min(rate, clk_rate) < diff) && (rate > 0)) clk_rate 403 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c unsigned long clk_rate; clk_rate 415 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c clk_rate = adjusted_mode->crtc_clock * 1000; clk_rate 418 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c clk_rate) / 1000; clk_rate 195 drivers/gpu/drm/arm/hdlcd_crtc.c long rate, clk_rate = mode->clock * 1000; clk_rate 197 drivers/gpu/drm/arm/hdlcd_crtc.c rate = clk_round_rate(hdlcd->clk, clk_rate); clk_rate 199 drivers/gpu/drm/arm/hdlcd_crtc.c if (abs(rate - clk_rate) * 1000 > clk_rate) { clk_rate 260 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c u64 clk_rate = kms->perf.perf_tune.min_core_clk; clk_rate 267 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c clk_rate = max(dpu_cstate->new_perf.core_clk_rate, clk_rate 268 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c clk_rate); clk_rate 269 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c clk_rate = clk_round_rate(kms->perf.core_clk->clk, clk_rate 270 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c clk_rate); clk_rate 275 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c clk_rate = kms->perf.fix_core_clk_rate; clk_rate 277 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c DPU_DEBUG("clk:%llu\n", clk_rate); clk_rate 279 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c return clk_rate; clk_rate 287 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c u64 clk_rate = 0; clk_rate 367 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c clk_rate = _dpu_core_perf_get_core_clk_rate(kms); clk_rate 369 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c trace_dpu_core_perf_update_clk(kms->dev, stop_req, clk_rate); clk_rate 371 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c ret = _dpu_core_perf_set_core_clk_rate(kms, clk_rate); clk_rate 374 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c kms->perf.core_clk->clk_name, clk_rate); clk_rate 378 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c kms->perf.core_clk_rate = clk_rate; clk_rate 379 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c DPU_DEBUG("update clk rate = %lld HZ\n", clk_rate); clk_rate 931 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h TP_PROTO(struct drm_device *dev, bool stop_req, u64 clk_rate), clk_rate 932 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h TP_ARGS(dev, stop_req, clk_rate), clk_rate 936 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h __field( u64, clk_rate ) clk_rate 941 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h __entry->clk_rate = clk_rate; clk_rate 944 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h __entry->stop_req ? "true" : "false", __entry->clk_rate) clk_rate 163 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h unsigned int clk_rate); clk_rate 135 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c unsigned int clk_rate) clk_rate 156 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c if (clk_rate <= 27000000) { clk_rate 163 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c } else if (clk_rate <= 74250000) { clk_rate 170 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c } else if (clk_rate <= 148500000) { clk_rate 197 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c unsigned int clk_rate) clk_rate 257 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c if (clk_rate <= 27000000) { clk_rate 267 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c } else if (clk_rate <= 74250000) { clk_rate 277 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c } else if (clk_rate <= 148500000) { clk_rate 209 drivers/gpu/drm/tilcdc/tilcdc_crtc.c unsigned long clk_rate, real_rate, req_rate; clk_rate 219 drivers/gpu/drm/tilcdc/tilcdc_crtc.c clk_rate = clk_get_rate(priv->clk); clk_rate 220 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (ret < 0 || tilcdc_pclk_diff(req_rate, clk_rate) > 5) { clk_rate 228 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (!clk_rate) { clk_rate 235 drivers/gpu/drm/tilcdc/tilcdc_crtc.c clkdiv = DIV_ROUND_CLOSEST(clk_rate, req_rate); clk_rate 246 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (tilcdc_pclk_diff(clk_rate, real_rate) > 5) { clk_rate 249 drivers/gpu/drm/tilcdc/tilcdc_crtc.c clk_rate, real_rate); clk_rate 253 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->lcd_fck_rate = clk_rate; clk_rate 261 drivers/i2c/busses/i2c-digicolor.c unsigned long clk_rate = clk_get_rate(i2c->clk); clk_rate 269 drivers/i2c/busses/i2c-digicolor.c clocktime = DIV_ROUND_UP(clk_rate, 64 * i2c->frequency); clk_rate 210 drivers/i2c/busses/i2c-imx-lpi2c.c unsigned int clk_rate, clk_cycle; clk_rate 216 drivers/i2c/busses/i2c-imx-lpi2c.c clk_rate = clk_get_rate(lpi2c_imx->clk); clk_rate 223 drivers/i2c/busses/i2c-imx-lpi2c.c clk_cycle = clk_rate / ((1 << prescale) * lpi2c_imx->bitrate) clk_rate 132 drivers/i2c/busses/i2c-meson.c unsigned long clk_rate = clk_get_rate(i2c->clk); clk_rate 135 drivers/i2c/busses/i2c-meson.c div = DIV_ROUND_UP(clk_rate, freq * i2c->data->div_factor); clk_rate 150 drivers/i2c/busses/i2c-meson.c clk_rate, freq, div); clk_rate 100 drivers/i2c/busses/i2c-owl.c unsigned long clk_rate; clk_rate 161 drivers/i2c/busses/i2c-owl.c val = DIV_ROUND_UP(i2c_dev->clk_rate, i2c_dev->bus_freq * 16); clk_rate 441 drivers/i2c/busses/i2c-owl.c i2c_dev->clk_rate = clk_get_rate(i2c_dev->clk); clk_rate 442 drivers/i2c/busses/i2c-owl.c if (!i2c_dev->clk_rate) { clk_rate 561 drivers/i2c/busses/i2c-rk3x.c static int rk3x_i2c_v0_calc_timings(unsigned long clk_rate, clk_rate 622 drivers/i2c/busses/i2c-rk3x.c clk_rate_khz = DIV_ROUND_UP(clk_rate, 1000); clk_rate 741 drivers/i2c/busses/i2c-rk3x.c static int rk3x_i2c_v1_calc_timings(unsigned long clk_rate, clk_rate 777 drivers/i2c/busses/i2c-rk3x.c clk_rate_khz = DIV_ROUND_UP(clk_rate, 1000); clk_rate 871 drivers/i2c/busses/i2c-rk3x.c static void rk3x_i2c_adapt_div(struct rk3x_i2c *i2c, unsigned long clk_rate) clk_rate 880 drivers/i2c/busses/i2c-rk3x.c ret = i2c->soc_data->calc_timings(clk_rate, t, &calc); clk_rate 896 drivers/i2c/busses/i2c-rk3x.c t_low_ns = div_u64(((u64)calc.div_low + 1) * 8 * 1000000000, clk_rate); clk_rate 898 drivers/i2c/busses/i2c-rk3x.c clk_rate); clk_rate 901 drivers/i2c/busses/i2c-rk3x.c clk_rate / 1000, clk_rate 1201 drivers/i2c/busses/i2c-rk3x.c unsigned long clk_rate; clk_rate 1319 drivers/i2c/busses/i2c-rk3x.c clk_rate = clk_get_rate(i2c->clk); clk_rate 1320 drivers/i2c/busses/i2c-rk3x.c rk3x_i2c_adapt_div(i2c, clk_rate); clk_rate 812 drivers/i2c/busses/i2c-st.c u32 clk_rate; clk_rate 838 drivers/i2c/busses/i2c-st.c ret = of_property_read_u32(np, "clock-frequency", &clk_rate); clk_rate 839 drivers/i2c/busses/i2c-st.c if ((!ret) && (clk_rate == 400000)) clk_rate 761 drivers/i2c/busses/i2c-stm32f4.c u32 irq_event, irq_error, clk_rate; clk_rate 809 drivers/i2c/busses/i2c-stm32f4.c ret = of_property_read_u32(np, "clock-frequency", &clk_rate); clk_rate 810 drivers/i2c/busses/i2c-stm32f4.c if (!ret && clk_rate >= 400000) clk_rate 1830 drivers/i2c/busses/i2c-stm32f7.c u32 clk_rate, rise_time, fall_time; clk_rate 1876 drivers/i2c/busses/i2c-stm32f7.c &clk_rate); clk_rate 1877 drivers/i2c/busses/i2c-stm32f7.c if (!ret && clk_rate >= 1000000) { clk_rate 1882 drivers/i2c/busses/i2c-stm32f7.c } else if (!ret && clk_rate >= 400000) { clk_rate 1884 drivers/i2c/busses/i2c-stm32f7.c } else if (!ret && clk_rate >= 100000) { clk_rate 522 drivers/i2c/busses/i2c-uniphier-f.c unsigned long clk_rate; clk_rate 557 drivers/i2c/busses/i2c-uniphier-f.c clk_rate = clk_get_rate(priv->clk); clk_rate 558 drivers/i2c/busses/i2c-uniphier-f.c if (!clk_rate) { clk_rate 564 drivers/i2c/busses/i2c-uniphier-f.c priv->clk_cycle = clk_rate / bus_speed; clk_rate 318 drivers/i2c/busses/i2c-uniphier.c unsigned long clk_rate; clk_rate 353 drivers/i2c/busses/i2c-uniphier.c clk_rate = clk_get_rate(priv->clk); clk_rate 354 drivers/i2c/busses/i2c-uniphier.c if (!clk_rate) { clk_rate 360 drivers/i2c/busses/i2c-uniphier.c priv->clk_cycle = clk_rate / bus_speed; clk_rate 377 drivers/i2c/busses/i2c-wmt.c u32 clk_rate; clk_rate 401 drivers/i2c/busses/i2c-wmt.c err = of_property_read_u32(np, "clock-frequency", &clk_rate); clk_rate 402 drivers/i2c/busses/i2c-wmt.c if ((!err) && (clk_rate == 400000)) clk_rate 367 drivers/i2c/busses/i2c-xlr.c unsigned long clk_rate; clk_rate 415 drivers/i2c/busses/i2c-xlr.c clk_rate = clk_get_rate(clk); clk_rate 416 drivers/i2c/busses/i2c-xlr.c clk_div = DIV_ROUND_UP(clk_rate, 2 * busfreq); clk_rate 40 drivers/iio/adc/rockchip_saradc.c unsigned long clk_rate; clk_rate 140 drivers/iio/adc/rockchip_saradc.c .clk_rate = 1000000, clk_rate 152 drivers/iio/adc/rockchip_saradc.c .clk_rate = 50000, clk_rate 168 drivers/iio/adc/rockchip_saradc.c .clk_rate = 1000000, clk_rate 283 drivers/iio/adc/rockchip_saradc.c ret = clk_set_rate(info->clk, info->data->clk_rate); clk_rate 933 drivers/iio/adc/xilinx-xadc-core.c unsigned long clk_rate = xadc_get_dclk_rate(xadc); clk_rate 936 drivers/iio/adc/xilinx-xadc-core.c if (!clk_rate) clk_rate 956 drivers/iio/adc/xilinx-xadc-core.c div = clk_rate / val; clk_rate 957 drivers/iio/adc/xilinx-xadc-core.c if (clk_rate / div / 26 > XADC_MAX_SAMPLERATE) clk_rate 136 drivers/input/keyboard/ep93xx_keypad.c clk_set_rate(keypad->clk, pdata->clk_rate); clk_rate 450 drivers/media/i2c/sr030pc30.c expos = expos * info->pdata->clk_rate / (8 * 1000); clk_rate 571 drivers/media/i2c/sr030pc30.c expmin = EXPOS_MIN_MS * info->pdata->clk_rate / (8 * 1000); clk_rate 572 drivers/media/i2c/sr030pc30.c expmax = EXPOS_MAX_MS * info->pdata->clk_rate / (8 * 1000); clk_rate 573 drivers/media/platform/rcar_fdp1.c unsigned int clk_rate; clk_rate 2228 drivers/media/platform/rcar_fdp1.c cycles, cycles/(fdp1->clk_rate/1000)); clk_rate 2321 drivers/media/platform/rcar_fdp1.c fdp1->clk_rate = clk_get_rate(clk); clk_rate 115 drivers/memory/atmel-ebi.c unsigned int clk_rate = clk_get_rate(ebid->ebi->clk); clk_rate 116 drivers/memory/atmel-ebi.c unsigned int clk_period_ns = NSEC_PER_SEC / clk_rate; clk_rate 123 drivers/memory/ti-aemif.c unsigned long clk_rate; clk_rate 179 drivers/memory/ti-aemif.c unsigned long clk_rate = aemif->clk_rate; clk_rate 185 drivers/memory/ti-aemif.c ta = aemif_calc_rate(pdev, data->ta, clk_rate, TA_MAX); clk_rate 186 drivers/memory/ti-aemif.c rhold = aemif_calc_rate(pdev, data->rhold, clk_rate, RHOLD_MAX); clk_rate 187 drivers/memory/ti-aemif.c rstrobe = aemif_calc_rate(pdev, data->rstrobe, clk_rate, RSTROBE_MAX); clk_rate 188 drivers/memory/ti-aemif.c rsetup = aemif_calc_rate(pdev, data->rsetup, clk_rate, RSETUP_MAX); clk_rate 189 drivers/memory/ti-aemif.c whold = aemif_calc_rate(pdev, data->whold, clk_rate, WHOLD_MAX); clk_rate 190 drivers/memory/ti-aemif.c wstrobe = aemif_calc_rate(pdev, data->wstrobe, clk_rate, WSTROBE_MAX); clk_rate 191 drivers/memory/ti-aemif.c wsetup = aemif_calc_rate(pdev, data->wsetup, clk_rate, WSETUP_MAX); clk_rate 217 drivers/memory/ti-aemif.c static inline int aemif_cycles_to_nsec(int val, unsigned long clk_rate) clk_rate 219 drivers/memory/ti-aemif.c return ((val + 1) * NSEC_PER_MSEC) / clk_rate; clk_rate 235 drivers/memory/ti-aemif.c unsigned long clk_rate = aemif->clk_rate; clk_rate 241 drivers/memory/ti-aemif.c data->ta = aemif_cycles_to_nsec(TA_VAL(val), clk_rate); clk_rate 242 drivers/memory/ti-aemif.c data->rhold = aemif_cycles_to_nsec(RHOLD_VAL(val), clk_rate); clk_rate 243 drivers/memory/ti-aemif.c data->rstrobe = aemif_cycles_to_nsec(RSTROBE_VAL(val), clk_rate); clk_rate 244 drivers/memory/ti-aemif.c data->rsetup = aemif_cycles_to_nsec(RSETUP_VAL(val), clk_rate); clk_rate 245 drivers/memory/ti-aemif.c data->whold = aemif_cycles_to_nsec(WHOLD_VAL(val), clk_rate); clk_rate 246 drivers/memory/ti-aemif.c data->wstrobe = aemif_cycles_to_nsec(WSTROBE_VAL(val), clk_rate); clk_rate 247 drivers/memory/ti-aemif.c data->wsetup = aemif_cycles_to_nsec(WSETUP_VAL(val), clk_rate); clk_rate 358 drivers/memory/ti-aemif.c aemif->clk_rate = clk_get_rate(aemif->clk) / MSEC_PER_SEC; clk_rate 22 drivers/mfd/intel-lpss-acpi.c .clk_rate = 120000000, clk_rate 31 drivers/mfd/intel-lpss-acpi.c .clk_rate = 120000000, clk_rate 43 drivers/mfd/intel-lpss-acpi.c .clk_rate = 120000000, clk_rate 49 drivers/mfd/intel-lpss-acpi.c .clk_rate = 100000000, clk_rate 60 drivers/mfd/intel-lpss-acpi.c .clk_rate = 133000000, clk_rate 72 drivers/mfd/intel-lpss-acpi.c .clk_rate = 133000000, clk_rate 65 drivers/mfd/intel-lpss-pci.c .clk_rate = 120000000, clk_rate 74 drivers/mfd/intel-lpss-pci.c .clk_rate = 120000000, clk_rate 86 drivers/mfd/intel-lpss-pci.c .clk_rate = 120000000, clk_rate 92 drivers/mfd/intel-lpss-pci.c .clk_rate = 100000000, clk_rate 96 drivers/mfd/intel-lpss-pci.c .clk_rate = 100000000, clk_rate 109 drivers/mfd/intel-lpss-pci.c .clk_rate = 133000000, clk_rate 121 drivers/mfd/intel-lpss-pci.c .clk_rate = 133000000, clk_rate 133 drivers/mfd/intel-lpss-pci.c .clk_rate = 133000000, clk_rate 138 drivers/mfd/intel-lpss-pci.c .clk_rate = 216000000, clk_rate 327 drivers/mfd/intel-lpss.c if (!lpss->info->clk_rate) clk_rate 332 drivers/mfd/intel-lpss.c lpss->info->clk_rate); clk_rate 23 drivers/mfd/intel-lpss.h unsigned long clk_rate; clk_rate 259 drivers/mmc/host/meson-mx-sdio.c unsigned long clk_rate = ios->clock; clk_rate 285 drivers/mmc/host/meson-mx-sdio.c clk_rate, host->error); clk_rate 424 drivers/mmc/host/mxs-mmc.c timeout = mxs_ns_to_ssp_ticks(ssp->clk_rate, data->timeout_ns); clk_rate 201 drivers/mmc/host/omap_hsmmc.c unsigned long clk_rate; clk_rate 1314 drivers/mmc/host/omap_hsmmc.c cycle_ns = 1000000000 / (host->clk_rate / clkd); clk_rate 1439 drivers/mmc/host/omap_hsmmc.c host->clk_rate = clk_get_rate(host->fclk); clk_rate 16 drivers/mmc/host/renesas_sdhi.h unsigned long clk_rate; /* clock rate for SDR104 */ clk_rate 806 drivers/mmc/host/renesas_sdhi_core.c if (taps[i].clk_rate == 0 || clk_rate 807 drivers/mmc/host/renesas_sdhi_core.c taps[i].clk_rate == host->mmc->f_max) { clk_rate 83 drivers/mmc/host/renesas_sdhi_internal_dmac.c .clk_rate = 0, clk_rate 48 drivers/mmc/host/renesas_sdhi_sys_dmac.c .clk_rate = 156000000, clk_rate 52 drivers/mmc/host/renesas_sdhi_sys_dmac.c .clk_rate = 0, clk_rate 1187 drivers/mmc/host/s3cmci.c host->real_rate = host->clk_rate / (host->clk_div*(mci_psc+1)); clk_rate 1341 drivers/mmc/host/s3cmci.c if ((val == CPUFREQ_PRECHANGE && newclk > host->clk_rate) || clk_rate 1342 drivers/mmc/host/s3cmci.c (val == CPUFREQ_POSTCHANGE && newclk < host->clk_rate)) { clk_rate 1345 drivers/mmc/host/s3cmci.c host->clk_rate = newclk; clk_rate 1390 drivers/mmc/host/s3cmci.c seq_printf(seq, "Clock rate = %ld\n", host->clk_rate); clk_rate 1659 drivers/mmc/host/s3cmci.c host->clk_rate = clk_get_rate(host->clk); clk_rate 1668 drivers/mmc/host/s3cmci.c mmc->f_min = host->clk_rate / (host->clk_div * 256); clk_rate 1669 drivers/mmc/host/s3cmci.c mmc->f_max = host->clk_rate / host->clk_div; clk_rate 28 drivers/mmc/host/s3cmci.h unsigned long clk_rate; clk_rate 239 drivers/mmc/host/sdhci-msm.c unsigned long clk_rate; clk_rate 337 drivers/mmc/host/sdhci-msm.c msm_host->clk_rate = clock; clk_rate 770 drivers/mmc/host/sdhci-msm.c if (!msm_host->clk_rate && !msm_host->use_cdclp533) { clk_rate 1565 drivers/mmc/host/sdhci-msm.c msm_host->clk_rate = clock; clk_rate 2037 drivers/mmc/host/sdhci-msm.c if (msm_host->restore_dll_config && msm_host->clk_rate) clk_rate 70 drivers/mmc/host/uniphier-sd.c unsigned long clk_rate; clk_rate 371 drivers/mmc/host/uniphier-sd.c priv->clk_rate = clk_get_rate(priv->clk); clk_rate 375 drivers/mmc/host/uniphier-sd.c mmc->f_max = priv->clk_rate; clk_rate 382 drivers/mmc/host/uniphier-sd.c mmc->f_min = priv->clk_rate / 1024; clk_rate 384 drivers/mmc/host/uniphier-sd.c mmc->f_min = priv->clk_rate / 512; clk_rate 445 drivers/mmc/host/uniphier-sd.c divisor = priv->clk_rate / clock; clk_rate 172 drivers/mtd/devices/spear_smi.c unsigned long clk_rate; clk_rate 333 drivers/mtd/devices/spear_smi.c prescale = DIV_ROUND_UP(rate, dev->clk_rate); clk_rate 806 drivers/mtd/devices/spear_smi.c pdata->clk_rate = val; clk_rate 991 drivers/mtd/devices/spear_smi.c dev->clk_rate = pdata->clk_rate; clk_rate 993 drivers/mtd/devices/spear_smi.c if (dev->clk_rate > SMI_MAX_CLOCK_FREQ) clk_rate 994 drivers/mtd/devices/spear_smi.c dev->clk_rate = SMI_MAX_CLOCK_FREQ; clk_rate 791 drivers/mtd/nand/raw/denali.c mult_x = DIV_ROUND_CLOSEST_ULL(denali->clk_x_rate, denali->clk_rate); clk_rate 1212 drivers/mtd/nand/raw/denali.c if (!denali->clk_rate || !denali->clk_x_rate) clk_rate 365 drivers/mtd/nand/raw/denali.h unsigned long clk_rate; clk_rate 209 drivers/mtd/nand/raw/denali_dt.c denali->clk_rate = clk_get_rate(dt->clk); clk_rate 68 drivers/mtd/nand/raw/denali_pci.c denali->clk_rate = 50000000; /* 50 MHz */ clk_rate 655 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c hw->clk_rate = 22000000; clk_rate 659 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c hw->clk_rate = 80000000; clk_rate 663 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c hw->clk_rate = 100000000; clk_rate 668 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c period_ps = div_u64((u64)NSEC_PER_SEC * 1000, hw->clk_rate); clk_rate 716 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c clk_set_rate(r->clock[0], hw->clk_rate); clk_rate 729 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c dll_wait_time_us = USEC_PER_SEC / hw->clk_rate * 64; clk_rate 2731 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c if (this->hw.clk_rate) clk_rate 100 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h unsigned long int clk_rate; clk_rate 110 drivers/mtd/nand/raw/meson_nand.c unsigned long clk_rate; clk_rate 157 drivers/mtd/nand/raw/meson_nand.c unsigned long clk_rate; clk_rate 237 drivers/mtd/nand/raw/meson_nand.c if (nfc->clk_rate != meson_chip->clk_rate) { clk_rate 238 drivers/mtd/nand/raw/meson_nand.c ret = clk_set_rate(nfc->device_clk, meson_chip->clk_rate); clk_rate 243 drivers/mtd/nand/raw/meson_nand.c nfc->clk_rate = meson_chip->clk_rate; clk_rate 1133 drivers/mtd/nand/raw/meson_nand.c meson_chip->clk_rate = 1000000000 / meson_chip->level1_divider; clk_rate 164 drivers/mtd/nand/raw/s3c2410.c unsigned long clk_rate; clk_rate 299 drivers/mtd/nand/raw/s3c2410.c info->clk_rate = clkrate; clk_rate 726 drivers/mtd/nand/raw/s3c2410.c if ((val == CPUFREQ_POSTCHANGE && newclk < info->clk_rate) || clk_rate 727 drivers/mtd/nand/raw/s3c2410.c (val == CPUFREQ_PRECHANGE && newclk > info->clk_rate)) { clk_rate 194 drivers/mtd/nand/raw/sunxi_nand.c unsigned long clk_rate; clk_rate 245 drivers/mtd/nand/raw/sunxi_nand.c unsigned long clk_rate; clk_rate 426 drivers/mtd/nand/raw/sunxi_nand.c if (nfc->clk_rate != sunxi_nand->clk_rate) { clk_rate 427 drivers/mtd/nand/raw/sunxi_nand.c clk_set_rate(nfc->mod_clk, sunxi_nand->clk_rate); clk_rate 428 drivers/mtd/nand/raw/sunxi_nand.c nfc->clk_rate = sunxi_nand->clk_rate; clk_rate 1527 drivers/mtd/nand/raw/sunxi_nand.c sunxi_nand->clk_rate = NSEC_PER_SEC / min_clk_period; clk_rate 1528 drivers/mtd/nand/raw/sunxi_nand.c real_clk_rate = clk_round_rate(nfc->mod_clk, sunxi_nand->clk_rate); clk_rate 1531 drivers/mtd/nand/raw/sunxi_nand.c sunxi_nand->clk_rate); clk_rate 49 drivers/mtd/spi-nor/cadence-quadspi.c u32 clk_rate; clk_rate 866 drivers/mtd/spi-nor/cadence-quadspi.c const unsigned int sclk = f_pdata->clk_rate; clk_rate 1134 drivers/mtd/spi-nor/cadence-quadspi.c if (of_property_read_u32(np, "spi-max-frequency", &f_pdata->clk_rate)) { clk_rate 2721 drivers/net/ethernet/freescale/fman/fman.c u32 clk_rate; clk_rate 2775 drivers/net/ethernet/freescale/fman/fman.c clk_rate = clk_get_rate(clk); clk_rate 2776 drivers/net/ethernet/freescale/fman/fman.c if (!clk_rate) { clk_rate 2782 drivers/net/ethernet/freescale/fman/fman.c fman->dts_params.clk_freq = DIV_ROUND_UP(clk_rate, 1000000); clk_rate 1594 drivers/net/ethernet/marvell/mvneta.c unsigned long clk_rate; clk_rate 1596 drivers/net/ethernet/marvell/mvneta.c clk_rate = clk_get_rate(pp->clk); clk_rate 1597 drivers/net/ethernet/marvell/mvneta.c val = (clk_rate / 1000000) * value; clk_rate 170 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c u32 clk_rate = clk_get_rate(priv->sxgbe_clk); clk_rate 175 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c if (clk_rate < SXGBE_CSR_F_150M) clk_rate 177 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c else if (clk_rate <= SXGBE_CSR_F_250M) clk_rate 179 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c else if (clk_rate <= SXGBE_CSR_F_300M) clk_rate 181 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c else if (clk_rate <= SXGBE_CSR_F_350M) clk_rate 183 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c else if (clk_rate <= SXGBE_CSR_F_400M) clk_rate 185 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c else if (clk_rate <= SXGBE_CSR_F_500M) clk_rate 232 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c u32 clk_rate; clk_rate 234 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c clk_rate = clk_get_rate(priv->plat->stmmac_clk); clk_rate 244 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (clk_rate < CSR_F_35M) clk_rate 246 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if ((clk_rate >= CSR_F_35M) && (clk_rate < CSR_F_60M)) clk_rate 248 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if ((clk_rate >= CSR_F_60M) && (clk_rate < CSR_F_100M)) clk_rate 250 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if ((clk_rate >= CSR_F_100M) && (clk_rate < CSR_F_150M)) clk_rate 252 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if ((clk_rate >= CSR_F_150M) && (clk_rate < CSR_F_250M)) clk_rate 254 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if ((clk_rate >= CSR_F_250M) && (clk_rate < CSR_F_300M)) clk_rate 259 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (clk_rate > 160000000) clk_rate 261 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if (clk_rate > 80000000) clk_rate 263 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if (clk_rate > 40000000) clk_rate 270 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (clk_rate > 400000000) clk_rate 272 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if (clk_rate > 350000000) clk_rate 274 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if (clk_rate > 300000000) clk_rate 276 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if (clk_rate > 250000000) clk_rate 278 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if (clk_rate > 150000000) clk_rate 172 drivers/nvmem/imx-ocotp.c unsigned long clk_rate = 0; clk_rate 204 drivers/nvmem/imx-ocotp.c clk_rate = clk_get_rate(priv->clk); clk_rate 206 drivers/nvmem/imx-ocotp.c relax = DIV_ROUND_UP(clk_rate * TIMING_RELAX_NS, 1000000000) - 1; clk_rate 207 drivers/nvmem/imx-ocotp.c strobe_read = DIV_ROUND_UP(clk_rate * TIMING_STROBE_READ_NS, clk_rate 210 drivers/nvmem/imx-ocotp.c strobe_prog = DIV_ROUND_CLOSEST(clk_rate * TIMING_STROBE_PROG_US, clk_rate 224 drivers/nvmem/imx-ocotp.c unsigned long clk_rate = 0; clk_rate 231 drivers/nvmem/imx-ocotp.c clk_rate = clk_get_rate(priv->clk); clk_rate 232 drivers/nvmem/imx-ocotp.c fsource = DIV_ROUND_UP_ULL((u64)clk_rate * DEF_FSOURCE, clk_rate 234 drivers/nvmem/imx-ocotp.c strobe_prog = DIV_ROUND_CLOSEST_ULL((u64)clk_rate * DEF_STROBE_PROG, clk_rate 167 drivers/nvmem/lpc18xx_eeprom.c unsigned long clk_rate; clk_rate 217 drivers/nvmem/lpc18xx_eeprom.c clk_rate = clk_get_rate(eeprom->clk); clk_rate 218 drivers/nvmem/lpc18xx_eeprom.c clk_rate = DIV_ROUND_UP(clk_rate, LPC18XX_EEPROM_CLOCK_HZ) - 1; clk_rate 219 drivers/nvmem/lpc18xx_eeprom.c lpc18xx_eeprom_writel(eeprom, LPC18XX_EEPROM_CLKDIV, clk_rate); clk_rate 116 drivers/nvmem/vf610-ocotp.c u32 clk_rate; clk_rate 120 drivers/nvmem/vf610-ocotp.c clk_rate = clk_get_rate(ocotp_dev->clk); clk_rate 123 drivers/nvmem/vf610-ocotp.c relax = clk_rate / (1000000000 / DEF_RELAX) - 1; clk_rate 124 drivers/nvmem/vf610-ocotp.c strobe_prog = clk_rate / (1000000000 / 10000) + 2 * (DEF_RELAX + 1) - 1; clk_rate 125 drivers/nvmem/vf610-ocotp.c strobe_read = clk_rate / (1000000000 / 40) + 2 * (DEF_RELAX + 1) - 1; clk_rate 86 drivers/phy/st/phy-stm32-usbphyc.c static void stm32_usbphyc_get_pll_params(u32 clk_rate, clk_rate 104 drivers/phy/st/phy-stm32-usbphyc.c do_div(ndiv, (clk_rate * 2)); clk_rate 108 drivers/phy/st/phy-stm32-usbphyc.c do_div(frac, (clk_rate * 2)); clk_rate 116 drivers/phy/st/phy-stm32-usbphyc.c u32 clk_rate = clk_get_rate(usbphyc->clk); clk_rate 120 drivers/phy/st/phy-stm32-usbphyc.c if ((clk_rate < PLL_INFF_MIN_RATE_HZ) || clk_rate 121 drivers/phy/st/phy-stm32-usbphyc.c (clk_rate > PLL_INFF_MAX_RATE_HZ)) { clk_rate 123 drivers/phy/st/phy-stm32-usbphyc.c clk_rate); clk_rate 127 drivers/phy/st/phy-stm32-usbphyc.c stm32_usbphyc_get_pll_params(clk_rate, &pll_params); clk_rate 139 drivers/phy/st/phy-stm32-usbphyc.c clk_rate, FIELD_GET(PLLNDIV, usbphyc_pll), clk_rate 240 drivers/pwm/pwm-img.c unsigned long clk_rate; clk_rate 287 drivers/pwm/pwm-img.c clk_rate = clk_get_rate(pwm->pwm_clk); clk_rate 288 drivers/pwm/pwm-img.c if (!clk_rate) { clk_rate 296 drivers/pwm/pwm-img.c do_div(val, clk_rate); clk_rate 300 drivers/pwm/pwm-img.c do_div(val, clk_rate); clk_rate 96 drivers/pwm/pwm-lpc18xx-sct.c unsigned long clk_rate; clk_rate 150 drivers/pwm/pwm-lpc18xx-sct.c val = (u64)period_ns * lpc18xx_pwm->clk_rate; clk_rate 169 drivers/pwm/pwm-lpc18xx-sct.c val = (u64)duty_ns * lpc18xx_pwm->clk_rate; clk_rate 356 drivers/pwm/pwm-lpc18xx-sct.c lpc18xx_pwm->clk_rate = clk_get_rate(lpc18xx_pwm->pwm_clk); clk_rate 357 drivers/pwm/pwm-lpc18xx-sct.c if (!lpc18xx_pwm->clk_rate) { clk_rate 367 drivers/pwm/pwm-lpc18xx-sct.c do_div(val, lpc18xx_pwm->clk_rate); clk_rate 371 drivers/pwm/pwm-lpc18xx-sct.c lpc18xx_pwm->clk_rate); clk_rate 19 drivers/pwm/pwm-lpss-pci.c .clk_rate = 25000000, clk_rate 26 drivers/pwm/pwm-lpss-pci.c .clk_rate = 19200000, clk_rate 33 drivers/pwm/pwm-lpss-pci.c .clk_rate = 19200000, clk_rate 41 drivers/pwm/pwm-lpss-pci.c .clk_rate = 19200000, clk_rate 20 drivers/pwm/pwm-lpss-platform.c .clk_rate = 25000000, clk_rate 27 drivers/pwm/pwm-lpss-platform.c .clk_rate = 19200000, clk_rate 35 drivers/pwm/pwm-lpss-platform.c .clk_rate = 19200000, clk_rate 86 drivers/pwm/pwm-lpss.c unsigned long c = lpwm->info->clk_rate, base_unit_range; clk_rate 176 drivers/pwm/pwm-lpss.c freq = base_unit * lpwm->info->clk_rate; clk_rate 220 drivers/pwm/pwm-lpss.c c = lpwm->info->clk_rate; clk_rate 26 drivers/pwm/pwm-lpss.h unsigned long clk_rate; clk_rate 48 drivers/pwm/pwm-omap-dmtimer.c static u32 pwm_omap_dmtimer_get_clock_cycles(unsigned long clk_rate, int ns) clk_rate 50 drivers/pwm/pwm-omap-dmtimer.c return DIV_ROUND_CLOSEST_ULL((u64)clk_rate * ns, NSEC_PER_SEC); clk_rate 100 drivers/pwm/pwm-omap-dmtimer.c unsigned long clk_rate; clk_rate 120 drivers/pwm/pwm-omap-dmtimer.c clk_rate = clk_get_rate(fclk); clk_rate 121 drivers/pwm/pwm-omap-dmtimer.c if (!clk_rate) { clk_rate 126 drivers/pwm/pwm-omap-dmtimer.c dev_dbg(chip->dev, "clk rate: %luHz\n", clk_rate); clk_rate 144 drivers/pwm/pwm-omap-dmtimer.c period_cycles = pwm_omap_dmtimer_get_clock_cycles(clk_rate, period_ns); clk_rate 145 drivers/pwm/pwm-omap-dmtimer.c duty_cycles = pwm_omap_dmtimer_get_clock_cycles(clk_rate, duty_ns); clk_rate 150 drivers/pwm/pwm-omap-dmtimer.c period_ns, clk_rate); clk_rate 157 drivers/pwm/pwm-omap-dmtimer.c duty_ns, clk_rate); clk_rate 163 drivers/pwm/pwm-omap-dmtimer.c duty_ns, period_ns, clk_rate); clk_rate 170 drivers/pwm/pwm-omap-dmtimer.c clk_rate), clk_rate 172 drivers/pwm/pwm-omap-dmtimer.c clk_rate)); clk_rate 72 drivers/pwm/pwm-rcar.c unsigned long clk_rate = clk_get_rate(rp->clk); clk_rate 75 drivers/pwm/pwm-rcar.c if (clk_rate == 0) clk_rate 79 drivers/pwm/pwm-rcar.c tmp = (u64)period_ns * clk_rate + div - 1; clk_rate 107 drivers/pwm/pwm-rcar.c unsigned long clk_rate = clk_get_rate(rp->clk); clk_rate 111 drivers/pwm/pwm-rcar.c do_div(one_cycle, clk_rate); clk_rate 252 drivers/pwm/pwm-renesas-tpu.c u32 clk_rate; clk_rate 261 drivers/pwm/pwm-renesas-tpu.c clk_rate = clk_get_rate(tpu->clk); clk_rate 264 drivers/pwm/pwm-renesas-tpu.c period = clk_rate / prescalers[prescaler] clk_rate 276 drivers/pwm/pwm-renesas-tpu.c duty = clk_rate / prescalers[prescaler] clk_rate 286 drivers/pwm/pwm-renesas-tpu.c clk_rate, prescalers[prescaler], period, duty); clk_rate 66 drivers/pwm/pwm-rockchip.c unsigned long clk_rate; clk_rate 75 drivers/pwm/pwm-rockchip.c clk_rate = clk_get_rate(pc->clk); clk_rate 79 drivers/pwm/pwm-rockchip.c state->period = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate); clk_rate 83 drivers/pwm/pwm-rockchip.c state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate); clk_rate 106 drivers/pwm/pwm-rockchip.c u64 clk_rate, div; clk_rate 109 drivers/pwm/pwm-rockchip.c clk_rate = clk_get_rate(pc->clk); clk_rate 116 drivers/pwm/pwm-rockchip.c div = clk_rate * state->period; clk_rate 120 drivers/pwm/pwm-rockchip.c div = clk_rate * state->duty_cycle; clk_rate 81 drivers/pwm/pwm-spear.c u64 val, div, clk_rate; clk_rate 95 drivers/pwm/pwm-spear.c clk_rate = clk_get_rate(pc->clk); clk_rate 99 drivers/pwm/pwm-spear.c val = clk_rate * period_ns; clk_rate 101 drivers/pwm/pwm-spear.c val = clk_rate * duty_ns; clk_rate 31 drivers/pwm/pwm-sprd.c u32 clk_rate; clk_rate 106 drivers/pwm/pwm-sprd.c state->period = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); clk_rate 111 drivers/pwm/pwm-sprd.c state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); clk_rate 137 drivers/pwm/pwm-sprd.c tmp = (u64)chn->clk_rate * period_ns; clk_rate 239 drivers/pwm/pwm-sprd.c chn->clk_rate = clk_get_rate(clk_pwm); clk_rate 126 drivers/pwm/pwm-sti.c unsigned long clk_rate; clk_rate 130 drivers/pwm/pwm-sti.c clk_rate = clk_get_rate(pc->pwm_clk); clk_rate 131 drivers/pwm/pwm-sti.c if (!clk_rate) { clk_rate 139 drivers/pwm/pwm-sti.c value = NSEC_PER_SEC / clk_rate; clk_rate 110 drivers/pwm/pwm-sun4i.c u64 clk_rate, tmp; clk_rate 114 drivers/pwm/pwm-sun4i.c clk_rate = clk_get_rate(sun4i_pwm->clk); clk_rate 141 drivers/pwm/pwm-sun4i.c state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate); clk_rate 144 drivers/pwm/pwm-sun4i.c state->period = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate); clk_rate 151 drivers/pwm/pwm-sun4i.c u64 clk_rate, div = 0; clk_rate 154 drivers/pwm/pwm-sun4i.c clk_rate = clk_get_rate(sun4i_pwm->clk); clk_rate 165 drivers/pwm/pwm-sun4i.c div = clk_rate * state->period + NSEC_PER_SEC / 2; clk_rate 177 drivers/pwm/pwm-sun4i.c div = clk_rate; clk_rate 43 drivers/pwm/pwm-tegra.c unsigned long clk_rate; clk_rate 89 drivers/pwm/pwm-tegra.c rate = pc->clk_rate >> PWM_DUTY_WIDTH; clk_rate 206 drivers/pwm/pwm-tegra.c pwm->clk_rate = clk_get_rate(pwm->clk); clk_rate 36 drivers/pwm/pwm-tiecap.c unsigned int clk_rate; clk_rate 61 drivers/pwm/pwm-tiecap.c c = pc->clk_rate; clk_rate 70 drivers/pwm/pwm-tiecap.c c = pc->clk_rate; clk_rate 220 drivers/pwm/pwm-tiecap.c pc->clk_rate = clk_get_rate(clk); clk_rate 221 drivers/pwm/pwm-tiecap.c if (!pc->clk_rate) { clk_rate 109 drivers/pwm/pwm-tiehrpwm.c unsigned long clk_rate; clk_rate 230 drivers/pwm/pwm-tiehrpwm.c c = pc->clk_rate; clk_rate 239 drivers/pwm/pwm-tiehrpwm.c c = pc->clk_rate; clk_rate 445 drivers/pwm/pwm-tiehrpwm.c pc->clk_rate = clk_get_rate(clk); clk_rate 446 drivers/pwm/pwm-tiehrpwm.c if (!pc->clk_rate) { clk_rate 411 drivers/regulator/ti-abb-regulator.c u32 clk_rate, sr2_wt_cnt_val, cycle_rate; clk_rate 472 drivers/regulator/ti-abb-regulator.c clk_rate = DIV_ROUND_CLOSEST(clk_get_rate(abb->clk), 1000000); clk_rate 475 drivers/regulator/ti-abb-regulator.c cycle_rate = DIV_ROUND_CLOSEST(clock_cycles * 10, clk_rate); clk_rate 48 drivers/remoteproc/st_remoteproc.c u32 clk_rate; clk_rate 312 drivers/remoteproc/st_remoteproc.c err = of_property_read_u32(np, "clock-frequency", &ddata->clk_rate); clk_rate 379 drivers/remoteproc/st_remoteproc.c clk_set_rate(ddata->clk, ddata->clk_rate); clk_rate 105 drivers/spi/spi-stm32-qspi.c u32 clk_rate; clk_rate 454 drivers/spi/spi-stm32-qspi.c presc = DIV_ROUND_UP(qspi->clk_rate, spi->max_speed_hz) - 1; clk_rate 590 drivers/spi/spi-stm32-qspi.c qspi->clk_rate = clk_get_rate(qspi->clk); clk_rate 591 drivers/spi/spi-stm32-qspi.c if (!qspi->clk_rate) { clk_rate 296 drivers/spi/spi-stm32.c u32 clk_rate; clk_rate 445 drivers/spi/spi-stm32.c div = DIV_ROUND_UP(spi->clk_rate, speed_hz); clk_rate 463 drivers/spi/spi-stm32.c spi->cur_speed = spi->clk_rate / (1 << mbrdiv); clk_rate 1869 drivers/spi/spi-stm32.c spi->clk_rate = clk_get_rate(spi->clk); clk_rate 1870 drivers/spi/spi-stm32.c if (!spi->clk_rate) { clk_rate 1899 drivers/spi/spi-stm32.c master->max_speed_hz = spi->clk_rate / spi->cfg->baud_rate_div_min; clk_rate 1900 drivers/spi/spi-stm32.c master->min_speed_hz = spi->clk_rate / spi->cfg->baud_rate_div_max; clk_rate 147 drivers/spi/spi-ti-qspi.c u32 clk_ctrl_reg, clk_rate, clk_mask; clk_rate 159 drivers/spi/spi-ti-qspi.c clk_rate = clk_get_rate(qspi->fclk); clk_rate 161 drivers/spi/spi-ti-qspi.c clk_div = DIV_ROUND_UP(clk_rate, qspi->spi_max_frequency) - 1; clk_rate 480 drivers/spi/spi-uniphier.c unsigned long clk_rate; clk_rate 526 drivers/spi/spi-uniphier.c clk_rate = clk_get_rate(priv->clk); clk_rate 528 drivers/spi/spi-uniphier.c master->max_speed_hz = DIV_ROUND_UP(clk_rate, SSI_MIN_CLK_DIVIDER); clk_rate 529 drivers/spi/spi-uniphier.c master->min_speed_hz = DIV_ROUND_UP(clk_rate, SSI_MAX_CLK_DIVIDER); clk_rate 452 drivers/spi/spi-zynqmp-gqspi.c ulong clk_rate; clk_rate 462 drivers/spi/spi-zynqmp-gqspi.c clk_rate = clk_get_rate(xqspi->refclk); clk_rate 465 drivers/spi/spi-zynqmp-gqspi.c (clk_rate / clk_rate 337 drivers/thermal/ti-soc-thermal/ti-bandgap.c time = time * 1000 / bgp->clk_rate; clk_rate 469 drivers/thermal/ti-soc-thermal/ti-bandgap.c interval = interval * bgp->clk_rate / 1000; clk_rate 880 drivers/thermal/ti-soc-thermal/ti-bandgap.c int clk_rate, ret, i; clk_rate 932 drivers/thermal/ti-soc-thermal/ti-bandgap.c clk_rate = clk_round_rate(bgp->div_clk, clk_rate 934 drivers/thermal/ti-soc-thermal/ti-bandgap.c if (clk_rate < bgp->conf->sensors[0].ts_data->min_freq || clk_rate 935 drivers/thermal/ti-soc-thermal/ti-bandgap.c clk_rate <= 0) { clk_rate 937 drivers/thermal/ti-soc-thermal/ti-bandgap.c dev_err(&pdev->dev, "wrong clock rate (%d)\n", clk_rate); clk_rate 941 drivers/thermal/ti-soc-thermal/ti-bandgap.c ret = clk_set_rate(bgp->div_clk, clk_rate); clk_rate 945 drivers/thermal/ti-soc-thermal/ti-bandgap.c bgp->clk_rate = clk_rate; clk_rate 994 drivers/thermal/ti-soc-thermal/ti-bandgap.c bgp->clk_rate / 4); clk_rate 203 drivers/thermal/ti-soc-thermal/ti-bandgap.h u32 clk_rate; clk_rate 962 drivers/tty/serial/qcom_geni_serial.c unsigned long clk_rate; clk_rate 976 drivers/tty/serial/qcom_geni_serial.c clk_rate = get_clk_div_rate(baud, sampling_rate, &clk_div); clk_rate 977 drivers/tty/serial/qcom_geni_serial.c if (!clk_rate) clk_rate 980 drivers/tty/serial/qcom_geni_serial.c uport->uartclk = clk_rate; clk_rate 981 drivers/tty/serial/qcom_geni_serial.c clk_set_rate(port->se.clk, clk_rate); clk_rate 213 drivers/usb/phy/phy-generic.c u32 clk_rate = 0; clk_rate 219 drivers/usb/phy/phy-generic.c if (of_property_read_u32(node, "clock-frequency", &clk_rate)) clk_rate 220 drivers/usb/phy/phy-generic.c clk_rate = 0; clk_rate 235 drivers/usb/phy/phy-generic.c clk_rate = pdata->clk_rate; clk_rate 270 drivers/usb/phy/phy-generic.c if (!IS_ERR(nop->clk) && clk_rate) { clk_rate 271 drivers/usb/phy/phy-generic.c err = clk_set_rate(nop->clk, clk_rate); clk_rate 100 drivers/video/fbdev/s3c2410fb.c unsigned long clk = fbi->clk_rate; clk_rate 783 drivers/video/fbdev/s3c2410fb.c delta_f = info->clk_rate - clk_get_rate(info->clk); clk_rate 787 drivers/video/fbdev/s3c2410fb.c info->clk_rate = clk_get_rate(info->clk); clk_rate 940 drivers/video/fbdev/s3c2410fb.c info->clk_rate = clk_get_rate(info->clk); clk_rate 32 drivers/video/fbdev/s3c2410fb.h unsigned long clk_rate; clk_rate 81 drivers/watchdog/armada_37xx_wdt.c unsigned long clk_rate; clk_rate 162 drivers/watchdog/armada_37xx_wdt.c do_div(res, dev->clk_rate); clk_rate 179 drivers/watchdog/armada_37xx_wdt.c dev->timeout = (u64)dev->clk_rate * timeout; clk_rate 291 drivers/watchdog/armada_37xx_wdt.c dev->clk_rate = clk_get_rate(dev->clk); clk_rate 292 drivers/watchdog/armada_37xx_wdt.c if (!dev->clk_rate) clk_rate 116 drivers/watchdog/imgpdc_wdt.c unsigned long clk_rate = clk_get_rate(wdt->wdt_clk); clk_rate 120 drivers/watchdog/imgpdc_wdt.c val |= order_base_2(wdt->wdt_dev.timeout * clk_rate) - 1; clk_rate 188 drivers/watchdog/imgpdc_wdt.c unsigned long clk_rate; clk_rate 232 drivers/watchdog/imgpdc_wdt.c clk_rate = clk_get_rate(pdc_wdt->wdt_clk); clk_rate 233 drivers/watchdog/imgpdc_wdt.c if (clk_rate == 0) { clk_rate 238 drivers/watchdog/imgpdc_wdt.c if (order_base_2(clk_rate) > PDC_WDT_CONFIG_DELAY_MASK + 1) { clk_rate 243 drivers/watchdog/imgpdc_wdt.c if (order_base_2(clk_rate) == 0) clk_rate 252 drivers/watchdog/imgpdc_wdt.c do_div(div, clk_rate); clk_rate 64 drivers/watchdog/lantiq_wdt.c unsigned long clk_rate; clk_rate 103 drivers/watchdog/lantiq_wdt.c timeout = wdt->timeout * priv->clk_rate; clk_rate 131 drivers/watchdog/lantiq_wdt.c timeout = wdt->timeout * priv->clk_rate; clk_rate 147 drivers/watchdog/lantiq_wdt.c return do_div(timeout, priv->clk_rate); clk_rate 219 drivers/watchdog/lantiq_wdt.c priv->clk_rate = clk_get_rate(clk) / LTQ_WDT_DIVIDER; clk_rate 220 drivers/watchdog/lantiq_wdt.c if (!priv->clk_rate) { clk_rate 230 drivers/watchdog/lantiq_wdt.c wdt->max_timeout = LTQ_WDT_CR_MAX_TIMEOUT / priv->clk_rate; clk_rate 23 drivers/watchdog/loongson1_wdt.c unsigned long clk_rate; clk_rate 45 drivers/watchdog/loongson1_wdt.c counts = drvdata->clk_rate * min(timeout, max_hw_heartbeat); clk_rate 92 drivers/watchdog/loongson1_wdt.c unsigned long clk_rate; clk_rate 117 drivers/watchdog/loongson1_wdt.c clk_rate = clk_get_rate(drvdata->clk); clk_rate 118 drivers/watchdog/loongson1_wdt.c if (!clk_rate) clk_rate 120 drivers/watchdog/loongson1_wdt.c drvdata->clk_rate = clk_rate; clk_rate 127 drivers/watchdog/loongson1_wdt.c ls1x_wdt->max_hw_heartbeat_ms = U32_MAX / clk_rate * 1000; clk_rate 55 drivers/watchdog/lpc18xx_wdt.c unsigned long clk_rate; clk_rate 107 drivers/watchdog/lpc18xx_wdt.c val = DIV_ROUND_UP(lpc18xx_wdt->wdt_dev.timeout * lpc18xx_wdt->clk_rate, clk_rate 129 drivers/watchdog/lpc18xx_wdt.c return (val * LPC18XX_WDT_CLK_DIV) / lpc18xx_wdt->clk_rate; clk_rate 252 drivers/watchdog/lpc18xx_wdt.c lpc18xx_wdt->clk_rate = clk_get_rate(lpc18xx_wdt->wdt_clk); clk_rate 253 drivers/watchdog/lpc18xx_wdt.c if (lpc18xx_wdt->clk_rate == 0) { clk_rate 262 drivers/watchdog/lpc18xx_wdt.c LPC18XX_WDT_CLK_DIV, lpc18xx_wdt->clk_rate); clk_rate 265 drivers/watchdog/lpc18xx_wdt.c LPC18XX_WDT_CLK_DIV) / lpc18xx_wdt->clk_rate; clk_rate 76 drivers/watchdog/orion_wdt.c unsigned long clk_rate; clk_rate 95 drivers/watchdog/orion_wdt.c dev->clk_rate = clk_get_rate(dev->clk); clk_rate 118 drivers/watchdog/orion_wdt.c dev->clk_rate = clk_get_rate(dev->clk) / WDT_A370_RATIO; clk_rate 138 drivers/watchdog/orion_wdt.c dev->clk_rate = clk_get_rate(dev->clk); clk_rate 157 drivers/watchdog/orion_wdt.c dev->clk_rate = clk_get_rate(dev->clk) / WDT_A370_RATIO; clk_rate 181 drivers/watchdog/orion_wdt.c dev->clk_rate = clk_get_rate(dev->clk); clk_rate 189 drivers/watchdog/orion_wdt.c writel(dev->clk_rate * wdt_dev->timeout, clk_rate 192 drivers/watchdog/orion_wdt.c writel(dev->clk_rate * (wdt_dev->timeout - wdt_dev->pretimeout), clk_rate 204 drivers/watchdog/orion_wdt.c writel(dev->clk_rate * wdt_dev->timeout, clk_rate 207 drivers/watchdog/orion_wdt.c writel(dev->clk_rate * (wdt_dev->timeout - wdt_dev->pretimeout), clk_rate 234 drivers/watchdog/orion_wdt.c writel(dev->clk_rate * wdt_dev->timeout, clk_rate 256 drivers/watchdog/orion_wdt.c writel(dev->clk_rate * wdt_dev->timeout, clk_rate 366 drivers/watchdog/orion_wdt.c return readl(dev->reg + dev->data->wdt_counter_offset) / dev->clk_rate; clk_rate 583 drivers/watchdog/orion_wdt.c wdt_max_duration = WDT_MAX_CYCLE_COUNT / dev->clk_rate; clk_rate 36 drivers/watchdog/renesas_wdt.c DIV_ROUND_UP((d) * (p)->clk_rate, clk_divs[(p)->cks]) clk_rate 39 drivers/watchdog/renesas_wdt.c #define DIV_BY_CLKS_PER_SEC(p, d) ((d) * clk_divs[(p)->cks] / (p)->clk_rate) clk_rate 51 drivers/watchdog/renesas_wdt.c unsigned long clk_rate; clk_rate 78 drivers/watchdog/renesas_wdt.c delay = DIV_ROUND_UP(cycles * 1000000, priv->clk_rate); clk_rate 215 drivers/watchdog/renesas_wdt.c priv->clk_rate = clk_get_rate(clk); clk_rate 220 drivers/watchdog/renesas_wdt.c if (!priv->clk_rate) { clk_rate 226 drivers/watchdog/renesas_wdt.c clks_per_sec = priv->clk_rate / clk_divs[i]; clk_rate 43 drivers/watchdog/tangox_wdt.c unsigned long clk_rate; clk_rate 60 drivers/watchdog/tangox_wdt.c ticks = 1 + wdt->timeout * dev->clk_rate; clk_rate 85 drivers/watchdog/tangox_wdt.c return (count - 1) / dev->clk_rate; clk_rate 142 drivers/watchdog/tangox_wdt.c dev->clk_rate = clk_get_rate(dev->clk); clk_rate 143 drivers/watchdog/tangox_wdt.c if (!dev->clk_rate) clk_rate 151 drivers/watchdog/tangox_wdt.c dev->wdt.max_hw_heartbeat_ms = (U32_MAX - 1) / dev->clk_rate; clk_rate 59 include/linux/mtd/spear_smi.h unsigned long clk_rate; clk_rate 26 include/linux/platform_data/keypad-ep93xx.h unsigned int clk_rate; clk_rate 124 include/linux/spi/mxs-spi.h unsigned int clk_rate; clk_rate 10 include/linux/usb/usb_phy_generic.h unsigned long clk_rate; clk_rate 19 include/media/i2c/noon010pc30.h unsigned long clk_rate; clk_rate 13 include/media/i2c/sr030pc30.h unsigned long clk_rate; /* master clock frequency in Hz */ clk_rate 88 include/trace/events/clk.h DECLARE_EVENT_CLASS(clk_rate, clk_rate 107 include/trace/events/clk.h DEFINE_EVENT(clk_rate, clk_set_rate, clk_rate 114 include/trace/events/clk.h DEFINE_EVENT(clk_rate, clk_set_rate_complete, clk_rate 398 sound/soc/atmel/mchp-i2s-mcc.c unsigned long clk_rate; clk_rate 421 sound/soc/atmel/mchp-i2s-mcc.c for (clk_rate = lcm_rate; clk_rate 422 sound/soc/atmel/mchp-i2s-mcc.c (clk_rate == sysclk || clk_rate / (sysclk * 2) <= GENMASK(5, 0)) && clk_rate 423 sound/soc/atmel/mchp-i2s-mcc.c (clk_rate == bclk || clk_rate / (bclk * 2) <= GENMASK(5, 0)); clk_rate 424 sound/soc/atmel/mchp-i2s-mcc.c clk_rate += lcm_rate) { clk_rate 425 sound/soc/atmel/mchp-i2s-mcc.c ret = mchp_i2s_mcc_clk_get_rate_diff(dev->gclk, clk_rate, clk_rate 430 sound/soc/atmel/mchp-i2s-mcc.c clk_rate, ret); clk_rate 434 sound/soc/atmel/mchp-i2s-mcc.c clk_rate); clk_rate 439 sound/soc/atmel/mchp-i2s-mcc.c ret = mchp_i2s_mcc_clk_get_rate_diff(dev->pclk, clk_rate, clk_rate 444 sound/soc/atmel/mchp-i2s-mcc.c clk_rate, ret); clk_rate 448 sound/soc/atmel/mchp-i2s-mcc.c clk_rate); clk_rate 125 sound/soc/bcm/bcm2835-i2s.c int clk_rate; clk_rate 416 sound/soc/bcm/bcm2835-i2s.c (!dev->clk_prepared || dev->clk_rate != bclk_rate)) { clk_rate 420 sound/soc/bcm/bcm2835-i2s.c if (dev->clk_rate != bclk_rate) { clk_rate 424 sound/soc/bcm/bcm2835-i2s.c dev->clk_rate = bclk_rate; clk_rate 241 sound/soc/fsl/fsl_esai.c unsigned long clk_rate; clk_rate 284 sound/soc/fsl/fsl_esai.c clk_rate = clk_get_rate(clksrc); clk_rate 286 sound/soc/fsl/fsl_esai.c ratio = clk_rate / freq; clk_rate 287 sound/soc/fsl/fsl_esai.c if (ratio * freq > clk_rate) clk_rate 288 sound/soc/fsl/fsl_esai.c ret = ratio * freq - clk_rate; clk_rate 289 sound/soc/fsl/fsl_esai.c else if (ratio * freq < clk_rate) clk_rate 290 sound/soc/fsl/fsl_esai.c ret = clk_rate - ratio * freq; clk_rate 295 sound/soc/fsl/fsl_esai.c if (ret != 0 && clk_rate / ret < 1000) { clk_rate 333 sound/soc/fsl/fsl_sai.c unsigned long clk_rate; clk_rate 343 sound/soc/fsl/fsl_sai.c clk_rate = clk_get_rate(sai->mclk_clk[id]); clk_rate 344 sound/soc/fsl/fsl_sai.c if (!clk_rate) clk_rate 347 sound/soc/fsl/fsl_sai.c ratio = clk_rate / freq; clk_rate 349 sound/soc/fsl/fsl_sai.c ret = clk_rate - ratio * freq; clk_rate 355 sound/soc/fsl/fsl_sai.c if (ret != 0 && clk_rate / ret < 1000) clk_rate 360 sound/soc/fsl/fsl_sai.c ratio, freq, clk_rate); clk_rate 51 sound/soc/fsl/imx-audmix.c unsigned long clk_rate = clk_get_rate(priv->cpu_mclk); clk_rate 54 sound/soc/fsl/imx-audmix.c if (clk_rate % 24576000 == 0) { clk_rate 61 sound/soc/fsl/imx-audmix.c dev_warn(dev, "mclk may be not supported %lu\n", clk_rate); clk_rate 44 sound/soc/hisilicon/hi6210-i2s.c int clk_rate; clk_rate 218 sound/soc/img/img-i2s-out.c long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; clk_rate 257 sound/soc/img/img-i2s-out.c clk_rate = clk_get_rate(i2s->clk_ref); clk_rate 259 sound/soc/img/img-i2s-out.c diff_a = abs((clk_rate / 256) - rate); clk_rate 260 sound/soc/img/img-i2s-out.c diff_b = abs((clk_rate / 384) - rate); clk_rate 150 sound/soc/img/img-spdif-in.c unsigned int *phld, unsigned long clk_rate) clk_rate 162 sound/soc/img/img-spdif-in.c ori = clk_rate / (rate * 64); clk_rate 182 sound/soc/img/img-spdif-in.c unsigned long flags, clk_rate; clk_rate 186 sound/soc/img/img-spdif-in.c ret = img_spdif_in_check_max_rate(spdif, rate, &clk_rate); clk_rate 190 sound/soc/img/img-spdif-in.c ret = img_spdif_in_do_clkgen_calc(rate, &nom, &hld, clk_rate); clk_rate 219 sound/soc/img/img-spdif-in.c unsigned long flags, clk_rate; clk_rate 227 sound/soc/img/img-spdif-in.c ret = img_spdif_in_check_max_rate(spdif, max_rate, &clk_rate); clk_rate 234 sound/soc/img/img-spdif-in.c ret = img_spdif_in_do_clkgen_calc(rate, &nom, &hld, clk_rate); clk_rate 237 sound/soc/img/img-spdif-out.c long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; clk_rate 275 sound/soc/img/img-spdif-out.c clk_rate = clk_get_rate(spdif->clk_ref); clk_rate 277 sound/soc/img/img-spdif-out.c diff_a = abs((clk_rate / 256) - rate); clk_rate 278 sound/soc/img/img-spdif-out.c diff_b = abs((clk_rate / 384) - rate); clk_rate 151 sound/soc/rockchip/rockchip_pdm.c unsigned int clk_rate, clk_div, samplerate; clk_rate 161 sound/soc/rockchip/rockchip_pdm.c clk_rate = get_pdm_clk(pdm, samplerate, &clk_src, &clk_out); clk_rate 162 sound/soc/rockchip/rockchip_pdm.c if (!clk_rate) clk_rate 82 sound/soc/samsung/spdif.c unsigned long clk_rate; clk_rate 130 sound/soc/samsung/spdif.c spdif->clk_rate = freq; clk_rate 214 sound/soc/samsung/spdif.c ratio = spdif->clk_rate / params_rate(params); clk_rate 220 sound/soc/samsung/spdif.c spdif->clk_rate, params_rate(params)); clk_rate 33 sound/soc/sh/rcar/adg.c int clk_rate[CLKMAX]; clk_rate 118 sound/soc/sh/rcar/adg.c adg->clk_rate[CLKA], /* 0000: CLKA */ clk_rate 119 sound/soc/sh/rcar/adg.c adg->clk_rate[CLKB], /* 0001: CLKB */ clk_rate 120 sound/soc/sh/rcar/adg.c adg->clk_rate[CLKC], /* 0010: CLKC */ clk_rate 306 sound/soc/sh/rcar/adg.c if (rate == adg->clk_rate[i]) clk_rate 381 sound/soc/sh/rcar/adg.c adg->clk_rate[i] = clk_get_rate(adg->clk[i]); clk_rate 295 sound/soc/sunxi/sun4i-i2s.c unsigned int oversample_rate, clk_rate, bclk_parent_rate; clk_rate 305 sound/soc/sunxi/sun4i-i2s.c clk_rate = 22579200; clk_rate 318 sound/soc/sunxi/sun4i-i2s.c clk_rate = 24576000; clk_rate 326 sound/soc/sunxi/sun4i-i2s.c ret = clk_set_rate(i2s->mod_clk, clk_rate); clk_rate 345 sound/soc/sunxi/sun4i-i2s.c mclk_div = sun4i_i2s_get_mclk_div(i2s, clk_rate, i2s->mclk_freq); clk_rate 277 sound/soc/sunxi/sun8i-codec.c unsigned long clk_rate = clk_get_rate(scodec->clk_module); clk_rate 278 sound/soc/sunxi/sun8i-codec.c unsigned int div = clk_rate / rate / word_size / 2;