• Home
  • Raw
  • Download

Lines Matching refs:val2

93 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2)  in split_micro_fraction()  argument
98 *val2 = no % divisor * int_pow(10, 6 - exp); in split_micro_fraction()
110 int *val1, int *val2) in convert_from_vtf_format() argument
121 *val2 = 0; in convert_from_vtf_format()
123 split_micro_fraction(value, -exp, val1, val2); in convert_from_vtf_format()
127 *val2 = sign * (*val2); 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
137 if (val1 < 0 || val2 < 0) in convert_to_vtf_format()
143 value += abs(val2) / divisor; in convert_to_vtf_format()
175 int *val1, int *val2) in hid_sensor_read_samp_freq_value() argument
184 *val1 = *val2 = 0; in hid_sensor_read_samp_freq_value()
188 simple_div(1000, value, val1, val2); in hid_sensor_read_samp_freq_value()
190 simple_div(1, value, val1, val2); in hid_sensor_read_samp_freq_value()
192 *val1 = *val2 = 0; in hid_sensor_read_samp_freq_value()
202 int val1, int val2) in hid_sensor_write_samp_freq_value() argument
207 if (val1 < 0 || val2 < 0) in hid_sensor_write_samp_freq_value()
210 value = val1 * HZ_PER_MHZ + val2; in hid_sensor_write_samp_freq_value()
237 int *val1, int *val2) in hid_sensor_read_raw_hyst_value() argument
247 *val1 = *val2 = 0; in hid_sensor_read_raw_hyst_value()
252 val1, val2); in hid_sensor_read_raw_hyst_value()
260 int *val2) in hid_sensor_read_raw_hyst_rel_value() argument
270 *val1 = *val2 = 0; in hid_sensor_read_raw_hyst_rel_value()
275 st->sensitivity_rel.unit_expo, val1, val2); in hid_sensor_read_raw_hyst_rel_value()
283 int val1, int val2) in hid_sensor_write_raw_hyst_value() argument
288 if (val1 < 0 || val2 < 0) in hid_sensor_write_raw_hyst_value()
293 val1, val2); in hid_sensor_write_raw_hyst_value()
314 int val1, int val2) in hid_sensor_write_raw_hyst_rel_value() argument
319 if (val1 < 0 || val2 < 0) in hid_sensor_write_raw_hyst_rel_value()
324 val1, val2); in hid_sensor_write_raw_hyst_rel_value()