Home
last modified time | relevance | path

Searched refs:rate_hz (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.15/drivers/hwmon/
Dltc2947-core.c998 unsigned long rate_hz; in ltc2947_setup() local
1003 rate_hz = clk_get_rate(extclk); in ltc2947_setup()
1004 if (rate_hz < LTC2947_CLK_MIN || rate_hz > LTC2947_CLK_MAX) { in ltc2947_setup()
1006 rate_hz); in ltc2947_setup()
1019 if (rate_hz >= LTC2947_CLK_MIN && rate_hz <= 1000000) in ltc2947_setup()
1021 else if (rate_hz > 1000000 && rate_hz <= 2000000) in ltc2947_setup()
1023 else if (rate_hz > 2000000 && rate_hz <= 4000000) in ltc2947_setup()
1025 else if (rate_hz > 4000000 && rate_hz <= 8000000) in ltc2947_setup()
1027 else if (rate_hz > 8000000 && rate_hz <= 16000000) in ltc2947_setup()
1029 else if (rate_hz > 16000000 && rate_hz <= LTC2947_CLK_MAX) in ltc2947_setup()
[all …]
/Linux-v5.15/drivers/mmc/host/
Dsdhci-of-aspeed.c162 static int aspeed_sdhci_phase_to_tap(struct device *dev, unsigned long rate_hz, in aspeed_sdhci_phase_to_tap() argument
184 clk_period_ps = div_u64(PICOSECONDS_PER_SECOND, (u64)rate_hz); in aspeed_sdhci_phase_to_tap()
191 tap, phase_deg, rate_hz, ASPEED_SDHCI_NR_TAPS); in aspeed_sdhci_phase_to_tap()
/Linux-v5.15/drivers/misc/
Dbh1770glc.c1010 unsigned long rate_hz; in bh1770_set_lux_rate() local
1013 ret = kstrtoul(buf, 0, &rate_hz); in bh1770_set_lux_rate()
1018 if (rate_hz >= lux_rates_hz[i]) in bh1770_set_lux_rate()