Searched refs:uhz (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/iio/common/scmi_sensors/ |
H A D | scmi_iio.c | 239 static void convert_ns_to_freq(u64 interval_ns, u64 *hz, u64 *uhz) in convert_ns_to_freq() argument 246 *uhz = rem * 1000000UL; in convert_ns_to_freq() 247 do_div(*uhz, interval_ns); in convert_ns_to_freq() 252 u64 sensor_update_interval, sensor_interval_mult, hz, uhz; in scmi_iio_get_odr_val() local 280 convert_ns_to_freq(sensor_update_interval, &hz, &uhz); in scmi_iio_get_odr_val() 282 *val2 = uhz; in scmi_iio_get_odr_val() 519 hz, uhz; in scmi_iio_set_sampling_freq_avail() local 536 convert_ns_to_freq(low_interval_ns, &hz, &uhz); in scmi_iio_set_sampling_freq_avail() 538 sensor->freq_avail[1] = uhz; in scmi_iio_set_sampling_freq_avail() 543 convert_ns_to_freq(step_size_ns, &hz, &uhz); in scmi_iio_set_sampling_freq_avail() [all …]
|
/linux/drivers/iio/accel/ |
H A D | bma400_core.c | 90 int uhz; member 499 &data->sample_freq.uhz); in bma400_get_accel_output_data_rate() 518 &data->sample_freq.uhz); in bma400_get_accel_output_data_rate() 522 data->sample_freq.uhz = 0; in bma400_get_accel_output_data_rate() 530 data->sample_freq.uhz = -1; in bma400_get_accel_output_data_rate() 535 int hz, int uhz) in bma400_set_accel_output_data_rate() argument 543 if (uhz || hz > BMA400_ACC_ODR_MAX_HZ) in bma400_set_accel_output_data_rate() 553 } else if (hz == BMA400_ACC_ODR_MIN_HZ && uhz == 500000) { in bma400_set_accel_output_data_rate() 571 &data->sample_freq.uhz); in bma400_set_accel_output_data_rate() 982 *val2 = data->sample_freq.uhz; in bma400_read_raw()
|