Lines Matching refs:uhz
235 static void convert_ns_to_freq(u64 interval_ns, u64 *hz, u64 *uhz) in convert_ns_to_freq() argument
242 *uhz = rem * 1000000UL; in convert_ns_to_freq()
243 do_div(*uhz, interval_ns); in convert_ns_to_freq()
248 u64 sensor_update_interval, sensor_interval_mult, hz, uhz; in scmi_iio_get_odr_val() local
276 convert_ns_to_freq(sensor_update_interval, &hz, &uhz); in scmi_iio_get_odr_val()
278 *val2 = uhz; in scmi_iio_get_odr_val()
515 hz, uhz; in scmi_iio_set_sampling_freq_avail() local
532 convert_ns_to_freq(low_interval_ns, &hz, &uhz); in scmi_iio_set_sampling_freq_avail()
534 sensor->freq_avail[1] = uhz; in scmi_iio_set_sampling_freq_avail()
539 convert_ns_to_freq(step_size_ns, &hz, &uhz); in scmi_iio_set_sampling_freq_avail()
541 sensor->freq_avail[3] = uhz; in scmi_iio_set_sampling_freq_avail()
547 convert_ns_to_freq(high_interval_ns, &hz, &uhz); in scmi_iio_set_sampling_freq_avail()
549 sensor->freq_avail[5] = uhz; in scmi_iio_set_sampling_freq_avail()
555 convert_ns_to_freq(cur_interval_ns, &hz, &uhz); in scmi_iio_set_sampling_freq_avail()
557 sensor->freq_avail[i * 2 + 1] = uhz; in scmi_iio_set_sampling_freq_avail()