Home
last modified time | relevance | path

Searched refs:scale_raw (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/power/supply/
Dingenic-battery.c65 const int *scale_raw; in ingenic_battery_set_scale() local
75 ret = iio_read_avail_channel_attribute(bat->channel, &scale_raw, in ingenic_battery_set_scale()
88 u64 scale_mV = (max_raw * scale_raw[i]) >> scale_raw[i + 1]; in ingenic_battery_set_scale()
108 scale_raw[best_idx], in ingenic_battery_set_scale()
109 scale_raw[best_idx + 1], in ingenic_battery_set_scale()
/linux-6.12.1/drivers/iio/imu/bmi323/
Dbmi323_core.c1635 int ret, value, scale_raw; in bmi323_get_scale() local
1644 scale_raw = FIELD_GET(BMI323_ACC_GYRO_CONF_SCL_MSK, value); in bmi323_get_scale()
1645 *val2 = bmi323_hw[sensor].scale_table[scale_raw][1]; in bmi323_get_scale()
1653 int scale_raw; in bmi323_set_scale() local
1655 scale_raw = bmi323_hw[sensor].scale_table_len; in bmi323_set_scale()
1657 while (scale_raw--) in bmi323_set_scale()
1658 if (val == bmi323_hw[sensor].scale_table[scale_raw][0] && in bmi323_set_scale()
1659 val2 == bmi323_hw[sensor].scale_table[scale_raw][1]) in bmi323_set_scale()
1661 if (scale_raw < 0) in bmi323_set_scale()
1668 scale_raw)); in bmi323_set_scale()