Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/clk/mxs/
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-6.1.9/drivers/media/platform/qcom/camss/
Dcamss.c39 .clock_rate = { { 0 },
51 .clock_rate = { { 0 },
66 .clock_rate = { { 0 },
83 .clock_rate = { { 0 },
113 .clock_rate = { { 0 },
134 .clock_rate = { { 0 },
146 .clock_rate = { { 0 },
158 .clock_rate = { { 0 },
173 .clock_rate = { { 0 },
190 .clock_rate = { { 0 },
[all …]
Dcamss.h47 u32 clock_rate[CAMSS_RES_MAX][CAMSS_RES_MAX]; member
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.c258 freq_adj = (ptp->clock_rate * ppb) / 1000000000ULL; in ptp_adjfine()
259 freq = neg_adj ? ptp->clock_rate + freq_adj : ptp->clock_rate - freq_adj; in ptp_adjfine()
262 comp = ((u64)1000000000ull << 32) / ptp->clock_rate; in ptp_adjfine()
297 ptp->clock_rate = sclk * 1000000; in ptp_start()
307 ptp->clock_rate = ext_clk_freq; in ptp_start()
335 ptp->clock_period = NSEC_PER_SEC / ptp->clock_rate; in ptp_start()
341 clock_comp = ptp_calc_adjusted_comp(ptp->clock_rate); in ptp_start()
343 clock_comp = ((u64)1000000000ull << 32) / ptp->clock_rate; in ptp_start()
Dptp.h22 u32 clock_rate; member
/linux-6.1.9/drivers/clocksource/
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-6.1.9/arch/sparc/kernel/
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()
Dirq.h66 int clock_rate; member
/linux-6.1.9/include/uapi/linux/hdlc/
Dioctl.h41 unsigned int clock_rate; /* bits per second */ member
47 unsigned int clock_rate; /* bits per second */ member
/linux-6.1.9/arch/mips/cavium-octeon/
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()
/linux-6.1.9/drivers/mfd/
Dhtc-pasic3.c162 if (pdata && pdata->clock_rate) { in pasic3_probe()
163 ds1wm_pdata.clock_rate = pdata->clock_rate; in pasic3_probe()
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-6.1.9/drivers/char/hw_random/
Dcavium-rng-vf.c34 u64 clock_rate; member
110 cur_err = (cycles * 1000000000) / rng->clock_rate; /* In nanosec */ in check_rng_health()
197 rng->clock_rate = rng_get_coprocessor_clkrate(); in cavium_map_pf_regs()
/linux-6.1.9/arch/arm/mach-omap1/
Dtimer32k.c84 #define JIFFIES_TO_HW_TICKS(nr_jiffies, clock_rate) \ argument
85 (((nr_jiffies) * (clock_rate)) / HZ)
/linux-6.1.9/drivers/net/ethernet/cavium/common/
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()
Dcavium_ptp.h21 u32 clock_rate; member
/linux-6.1.9/include/linux/mfd/
Dds1wm.h10 int clock_rate; member
Dhtc-pasic3.h51 unsigned int clock_rate; member
/linux-6.1.9/drivers/w1/masters/
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-6.1.9/sound/soc/tegra/
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-6.1.9/drivers/iio/adc/
Dmeson_saradc.c253 unsigned long clock_rate; member
877 ret = clk_set_rate(priv->adc_clk, priv->param->clock_rate); in meson_sar_adc_init()
1048 .clock_rate = 1150000,
1059 .clock_rate = 1150000,
1070 .clock_rate = 1200000,
1078 .clock_rate = 1200000,
1086 .clock_rate = 1200000,
/linux-6.1.9/drivers/video/fbdev/
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-6.1.9/drivers/firmware/
Dpcdp.h49 u32 clock_rate; member
/linux-6.1.9/drivers/net/wan/
Dixp4xx_hss.c278 unsigned int clock_type, clock_rate, loopback; member
1325 new_line.clock_rate = port->clock_rate; in hss_hdlc_ioctl()
1350 new_line.clock_rate, in hss_hdlc_ioctl()
1351 &port->clock_rate, &port->clock_reg); in hss_hdlc_ioctl()
1353 port->clock_rate = 0; in hss_hdlc_ioctl()
1503 port->clock_rate = 0; in ixp4xx_hss_probe()
Dhd64572.c364 if (port->settings.clock_rate > 0) { in sca_set_port()
371 tmc = CLOCK_BASE / brv / port->settings.clock_rate; in sca_set_port()
382 port->settings.clock_rate = CLOCK_BASE / brv / tmc; in sca_set_port()
386 port->settings.clock_rate = CLOCK_BASE / (256 * 512); in sca_set_port()

12