Searched refs:rate_hz (Results 1 – 4 of 4) sorted by relevance
991 unsigned long rate_hz; in ltc2947_setup() local996 rate_hz = clk_get_rate(extclk); in ltc2947_setup()997 if (rate_hz < LTC2947_CLK_MIN || rate_hz > LTC2947_CLK_MAX) { in ltc2947_setup()999 rate_hz); in ltc2947_setup()1004 if (rate_hz >= LTC2947_CLK_MIN && rate_hz <= 1000000) in ltc2947_setup()1006 else if (rate_hz > 1000000 && rate_hz <= 2000000) in ltc2947_setup()1008 else if (rate_hz > 2000000 && rate_hz <= 4000000) in ltc2947_setup()1010 else if (rate_hz > 4000000 && rate_hz <= 8000000) in ltc2947_setup()1012 else if (rate_hz > 8000000 && rate_hz <= 16000000) in ltc2947_setup()1014 else if (rate_hz > 16000000 && rate_hz <= LTC2947_CLK_MAX) in ltc2947_setup()[all …]
162 static int aspeed_sdhci_phase_to_tap(struct device *dev, unsigned long rate_hz, in aspeed_sdhci_phase_to_tap() argument184 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()
190 long rate_hz = clk_get_rate(ospi->clk); in f_ospi_config_clk() local191 u32 div = DIV_ROUND_UP(rate_hz, device_hz); in f_ospi_config_clk()195 if (rate_hz < device_hz) { in f_ospi_config_clk()
1010 unsigned long rate_hz; in bh1770_set_lux_rate() local1013 ret = kstrtoul(buf, 0, &rate_hz); in bh1770_set_lux_rate()1018 if (rate_hz >= lux_rates_hz[i]) in bh1770_set_lux_rate()