Home
last modified time | relevance | path

Searched refs:clock_rate (Results 1 – 25 of 51) sorted by relevance

123

/linux/drivers/clk/mxs/
A Dclk-ssp.c24 u32 clock_divide, clock_rate; in mxs_ssp_set_clk_rate() local
30 clock_rate = DIV_ROUND_UP(ssp_clk, rate * clock_divide); in mxs_ssp_set_clk_rate()
31 clock_rate = (clock_rate > 0) ? clock_rate - 1 : 0; in mxs_ssp_set_clk_rate()
32 if (clock_rate <= 255) in mxs_ssp_set_clk_rate()
42 ssp_sck = ssp_clk / clock_divide / (1 + clock_rate); in mxs_ssp_set_clk_rate()
47 val |= BF_SSP(clock_rate, TIMING_CLOCK_RATE); in mxs_ssp_set_clk_rate()
54 __func__, clock_divide, clock_rate, ssp_clk, ssp_sck, rate); in mxs_ssp_set_clk_rate()
/linux/drivers/media/platform/qcom/camss/
A Dcamss.c38 .clock_rate = { { 0 },
50 .clock_rate = { { 0 },
65 .clock_rate = { { 0 },
82 .clock_rate = { { 0 },
112 .clock_rate = { { 0 },
133 .clock_rate = { { 0 },
145 .clock_rate = { { 0 },
157 .clock_rate = { { 0 },
172 .clock_rate = { { 0 },
189 .clock_rate = { { 0 },
[all …]
/linux/drivers/clocksource/
A Dsamsung_pwm_timer.c263 unsigned long clock_rate; in samsung_clockevent_init() local
271 clock_rate = pclk / (pwm.tscaler_div * pwm.tdiv); in samsung_clockevent_init()
272 pwm.clock_count_per_tick = clock_rate / HZ; in samsung_clockevent_init()
276 clock_rate, 1, pwm.tcnt_max); in samsung_clockevent_init()
334 unsigned long clock_rate; in samsung_clocksource_init() local
341 clock_rate = pclk / (pwm.tscaler_div * pwm.tdiv); in samsung_clocksource_init()
352 pwm.variant.bits, clock_rate); in samsung_clocksource_init()
355 return clocksource_register_hz(&samsung_clocksource, clock_rate); in samsung_clocksource_init()
/linux/arch/sparc/kernel/
A Dtime_32.c133 ce->mult = div_sc(sparc_config.clock_rate, NSEC_PER_SEC, in setup_timer_ce()
182 return clocksource_register_hz(&timer_cs, sparc_config.clock_rate); in setup_timer_cs()
229 ce->mult = div_sc(sparc_config.clock_rate, NSEC_PER_SEC, in register_percpu_ce()
231 ce->max_delta_ns = clockevent_delta2ns(sparc_config.clock_rate, ce); in register_percpu_ce()
232 ce->max_delta_ticks = (unsigned long)sparc_config.clock_rate; in register_percpu_ce()
A Dirq.h66 int clock_rate; member
/linux/arch/mips/cavium-octeon/
A Docteon-usb.c291 u32 clock_rate; in dwc3_octeon_clocks_start() local
302 "refclk-frequency", &clock_rate); in dwc3_octeon_clocks_start()
342 (clock_rate != 100000000)) in dwc3_octeon_clocks_start()
344 clock_rate); in dwc3_octeon_clocks_start()
397 switch (clock_rate) { in dwc3_octeon_clocks_start()
400 clock_rate); in dwc3_octeon_clocks_start()
A Docteon-platform.c64 u32 clock_rate = 12000000; in octeon2_usb_clocks_start() local
86 "refclk-frequency", &clock_rate); in octeon2_usb_clocks_start()
140 switch (clock_rate) { in octeon2_usb_clocks_start()
143 clock_rate); in octeon2_usb_clocks_start()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
A Dptp.c101 comp = ((u64)1000000000ull << 32) / ptp->clock_rate; in ptp_adjfine()
140 ptp->clock_rate = sclk * 1000000; in ptp_start()
146 ptp->clock_rate = ext_clk_freq; in ptp_start()
167 clock_comp = ((u64)1000000000ull << 32) / ptp->clock_rate; in ptp_start()
A Dptp.h18 u32 clock_rate; member
/linux/include/uapi/linux/hdlc/
A Dioctl.h41 unsigned int clock_rate; /* bits per second */ member
47 unsigned int clock_rate; /* bits per second */ member
/linux/drivers/mfd/
A Dhtc-pasic3.c162 if (pdata && pdata->clock_rate) { in pasic3_probe()
163 ds1wm_pdata.clock_rate = pdata->clock_rate; in pasic3_probe()
A Ddb8500-prcmu.c1433 static unsigned long clock_rate(u8 clock) in clock_rate() function
1522 return pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK), in dsiclk_rate()
1535 return clock_rate(PRCMU_TVCLK) / max((u32)1, div); in dsiescclk_rate()
1541 return clock_rate(clock); in prcmu_clock_rate()
1556 return pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK), in prcmu_clock_rate()
1674 src_rate = clock_rate(PRCMU_HDMICLK); in round_plldsi_rate()
1710 src_rate = pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK), in round_dsiclk_rate()
1724 src_rate = clock_rate(PRCMU_TVCLK); in round_dsiescclk_rate()
1834 src_rate = clock_rate(PRCMU_HDMICLK); in set_plldsi_rate()
1879 clock_rate(PRCMU_HDMICLK), PLL_RAW), rate); in set_dsiclk_rate()
[all …]
/linux/arch/arm/mach-omap1/
A Dtimer32k.c86 #define JIFFIES_TO_HW_TICKS(nr_jiffies, clock_rate) \ argument
87 (((nr_jiffies) * (clock_rate)) / HZ)
/linux/drivers/net/ethernet/cavium/common/
A Dcavium_ptp.c122 comp = ((u64)1000000000ull << 32) / clock->clock_rate; in cavium_ptp_adjfine()
259 clock->clock_rate = ptp_cavium_clock_get(); in cavium_ptp_probe()
279 clock_comp = ((u64)1000000000ull << 32) / clock->clock_rate; in cavium_ptp_probe()
A Dcavium_ptp.h21 u32 clock_rate; member
/linux/drivers/w1/masters/
A Dds1wm.c317 divisor = ds1wm_find_divisor(plat->clock_rate); in ds1wm_up()
319 divisor, plat->clock_rate); in ds1wm_up()
322 plat->clock_rate); in ds1wm_up()
603 plat->clock_rate, in ds1wm_probe()
/linux/include/linux/mfd/
A Dds1wm.h10 int clock_rate; member
A Dhtc-pasic3.h51 unsigned int clock_rate; member
/linux/drivers/net/wan/lmc/
A Dlmc_media.c601 if (ctl->clock_rate != sc->ictl.clock_rate) in lmc_ssi_set_status()
648 ictl->clock_rate = 1500000; in lmc_ssi_set_speed()
649 av->f = ictl->clock_rate; in lmc_ssi_set_speed()
665 ictl->clock_rate = av->f; /* really, this is the rate we are */ in lmc_ssi_set_speed()
841 LMC_PRINTF_ARGS, sc->ictl.clock_rate, n, m, v, x, r); in write_av9110()
/linux/sound/soc/tegra/
A Dtegra210_i2s.c48 unsigned int clock_rate) in tegra210_i2s_set_clock_rate() argument
60 err = clk_set_rate(i2s->clk_i2s, clock_rate); in tegra210_i2s_set_clock_rate()
63 clock_rate, err); in tegra210_i2s_set_clock_rate()
73 err = clk_set_rate(i2s->clk_sync_input, clock_rate); in tegra210_i2s_set_clock_rate()
77 clock_rate, err); in tegra210_i2s_set_clock_rate()
/linux/drivers/iio/adc/
A Dmeson_saradc.c253 unsigned long clock_rate; member
897 ret = clk_set_rate(priv->adc_clk, priv->param->clock_rate); in meson_sar_adc_init()
1071 .clock_rate = 1150000,
1082 .clock_rate = 1150000,
1093 .clock_rate = 1200000,
1101 .clock_rate = 1200000,
1109 .clock_rate = 1200000,
/linux/drivers/net/wan/
A Dixp4xx_hss.c262 unsigned int clock_type, clock_rate, loopback; member
1275 new_line.clock_rate = port->clock_rate; in hss_hdlc_ioctl()
1301 new_line.clock_rate, in hss_hdlc_ioctl()
1302 &port->clock_rate, &port->clock_reg); in hss_hdlc_ioctl()
1304 port->clock_rate = 0; in hss_hdlc_ioctl()
1369 port->clock_rate = 0; in hss_init_one()
A Dhd64572.c363 if (port->settings.clock_rate > 0) { in sca_set_port()
370 tmc = CLOCK_BASE / brv / port->settings.clock_rate; in sca_set_port()
381 port->settings.clock_rate = CLOCK_BASE / brv / tmc; in sca_set_port()
385 port->settings.clock_rate = CLOCK_BASE / (256 * 512); in sca_set_port()
/linux/drivers/video/fbdev/
A Dgbefb.c444 int clock_rate; member
476 pixclock = (1000000 / gbe_pll->clock_rate) * in compute_gbe_timing()
486 gbe_pll->fvco_min / gbe_pll->clock_rate && in compute_gbe_timing()
488 gbe_pll->fvco_max / gbe_pll->clock_rate) { in compute_gbe_timing()
499 pixclock = (1000000 / gbe_pll->clock_rate) * in compute_gbe_timing()
509 timing->cfreq = gbe_pll->clock_rate * 1000 * timing->pll_m / in compute_gbe_timing()
/linux/drivers/firmware/
A Dpcdp.h49 u32 clock_rate; member

Completed in 67 milliseconds

123