• Home
  • Raw
  • Download

Lines Matching refs:val1

95 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2)  in split_micro_fraction()  argument
97 *val1 = no/pow_10(exp); in split_micro_fraction()
110 int *val1, int *val2) in convert_from_vtf_format() argument
120 *val1 = sign * value * pow_10(exp); in convert_from_vtf_format()
123 split_micro_fraction(value, -exp, val1, val2); in convert_from_vtf_format()
124 if (*val1) in convert_from_vtf_format()
125 *val1 = sign * (*val1); in convert_from_vtf_format()
131 static u32 convert_to_vtf_format(int size, int exp, int val1, int val2) in convert_to_vtf_format() argument
136 if (val1 < 0 || val2 < 0) in convert_to_vtf_format()
140 value = abs(val1) * pow_10(-exp); in convert_to_vtf_format()
143 value = abs(val1) / pow_10(exp); in convert_to_vtf_format()
171 int *val1, int *val2) in hid_sensor_read_samp_freq_value() argument
180 *val1 = *val2 = 0; in hid_sensor_read_samp_freq_value()
184 simple_div(1000, value, val1, val2); in hid_sensor_read_samp_freq_value()
186 simple_div(1, value, val1, val2); in hid_sensor_read_samp_freq_value()
188 *val1 = *val2 = 0; in hid_sensor_read_samp_freq_value()
198 int val1, int val2) in hid_sensor_write_samp_freq_value() argument
203 if (val1 < 0 || val2 < 0) in hid_sensor_write_samp_freq_value()
206 value = val1 * pow_10(6) + val2; in hid_sensor_write_samp_freq_value()
233 int *val1, int *val2) in hid_sensor_read_raw_hyst_value() argument
243 *val1 = *val2 = 0; in hid_sensor_read_raw_hyst_value()
248 val1, val2); in hid_sensor_read_raw_hyst_value()
256 int val1, int val2) in hid_sensor_write_raw_hyst_value() argument
263 val1, val2); in hid_sensor_write_raw_hyst_value()
294 static void adjust_exponent_nano(int *val0, int *val1, int scale0, in adjust_exponent_nano() argument
306 *val1 = 0; in adjust_exponent_nano()
315 *val1 = scale1 * pow_10(exp); in adjust_exponent_nano()
319 *val0 = *val1 = 0; in adjust_exponent_nano()
330 *val1 = rem * pow_10(9 - exp) + res; in adjust_exponent_nano()
333 *val1 = scale1; in adjust_exponent_nano()
339 int *val0, int *val1) in hid_sensor_format_scale() argument
345 *val1 = 0; in hid_sensor_format_scale()
352 adjust_exponent_nano(val0, val1, in hid_sensor_format_scale()