• Home
  • Raw
  • Download

Lines Matching refs:val1

93 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2)  in split_micro_fraction()  argument
97 *val1 = no / divisor; in split_micro_fraction()
110 int *val1, int *val2) in convert_from_vtf_format() argument
120 *val1 = sign * value * int_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
137 if (val1 < 0 || val2 < 0) in convert_to_vtf_format()
142 value = abs(val1) * int_pow(10, -exp); in convert_to_vtf_format()
146 value = abs(val1) / 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()
259 int hid_sensor_read_raw_hyst_rel_value(struct hid_sensor_common *st, int *val1, 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()
355 static void adjust_exponent_nano(int *val0, int *val1, int scale0, in adjust_exponent_nano() argument
368 *val1 = 0; in adjust_exponent_nano()
378 *val1 = scale1 * int_pow(10, exp); in adjust_exponent_nano()
382 *val0 = *val1 = 0; in adjust_exponent_nano()
395 *val1 = rem * int_pow(10, 9 - exp) + res; in adjust_exponent_nano()
398 *val1 = scale1; in adjust_exponent_nano()
404 int *val0, int *val1) in hid_sensor_format_scale() argument
410 *val1 = 0; in hid_sensor_format_scale()
417 adjust_exponent_nano(val0, val1, in hid_sensor_format_scale()
559 int val0, val1; in hid_sensor_parse_common_attributes() local
562 &timestamp, &val0, &val1); in hid_sensor_parse_common_attributes()