Home
last modified time | relevance | path

Searched refs:val_fract (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/drivers/iio/adc/
Drtq6056.c591 int val, val_fract, ret; in shunt_resistor_store() local
597 ret = iio_str_to_fixpoint(buf, 100000, &val, &val_fract); in shunt_resistor_store()
601 ret = rtq6056_set_shunt_resistor(priv, val * 1000000 + val_fract); in shunt_resistor_store()
Dina2xx-adc.c603 int val, val_fract, ret; in ina2xx_shunt_resistor_store() local
605 ret = iio_str_to_fixpoint(buf, 100000, &val, &val_fract); in ina2xx_shunt_resistor_store()
609 ret = set_shunt_resistor(chip, val * 1000000 + val_fract); in ina2xx_shunt_resistor_store()
Dpac1921.c786 int val, val_fract; in pac1921_write_shunt_resistor() local
792 ret = iio_str_to_fixpoint(buf, 100000, &val, &val_fract); in pac1921_write_shunt_resistor()
796 rshunt_uohm = (u32)val * MICRO + (u32)val_fract; in pac1921_write_shunt_resistor()
/linux-6.12.1/drivers/iio/accel/
Dbma400_core.c295 int ret, val_int, val_fract, raw; in in_accel_gesture_tap_maxtomin_time_store() local
297 ret = iio_str_to_fixpoint(buf, 100000, &val_int, &val_fract); in in_accel_gesture_tap_maxtomin_time_store()
301 raw = usec_to_tapreg_raw(val_fract, tap_max2min_time); in in_accel_gesture_tap_maxtomin_time_store()
/linux-6.12.1/drivers/iio/imu/bmi323/
Dbmi323_core.c677 int ret, val_int, val_fract, raw; in in_accel_gesture_tap_wait_dur_store() local
679 ret = iio_str_to_fixpoint(buf, 100000, &val_int, &val_fract); in in_accel_gesture_tap_wait_dur_store()
683 raw = BMI323_INT_MICRO_TO_RAW(val_int, val_fract, in in_accel_gesture_tap_wait_dur_store()