Lines Matching refs:rate_hz
991 unsigned long rate_hz; in ltc2947_setup() local
996 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()
1020 div = rate_hz / ((1 << pre) * 32768); in ltc2947_setup()
1032 st->lsb_energy = DIV_ROUND_CLOSEST_ULL(aux, rate_hz); in ltc2947_setup()