Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c84 static int pow_10(unsigned power) in pow_10() function
112 *micro_frac = (rem / divisor) * pow_10(6-exp); in simple_div()
118 *val1 = no/pow_10(exp); in split_micro_fraction()
119 *val2 = no%pow_10(exp) * pow_10(6-exp); in split_micro_fraction()
141 *val1 = sign * value * pow_10(exp); in convert_from_vtf_format()
161 value = abs(val1) * pow_10(-exp); in convert_to_vtf_format()
162 value += abs(val2) / pow_10(6+exp); in convert_to_vtf_format()
164 value = abs(val1) / pow_10(exp); in convert_to_vtf_format()
227 value = val1 * pow_10(6) + val2; in hid_sensor_write_samp_freq_value()
230 value = pow_10(9)/value; in hid_sensor_write_samp_freq_value()
[all …]