Lines Matching refs:val2

188 					   int len, int val, int val2)  in ltr501_match_samp_freq()  argument
192 freq = val * 1000000 + val2; in ltr501_match_samp_freq()
203 int *val, int *val2) in ltr501_als_read_samp_freq() argument
215 *val2 = ltr501_als_samp_table[i].freq_val % 1000000; in ltr501_als_read_samp_freq()
221 int *val, int *val2) in ltr501_ps_read_samp_freq() argument
233 *val2 = ltr501_ps_samp_table[i].freq_val % 1000000; in ltr501_ps_read_samp_freq()
239 int val, int val2) in ltr501_als_write_samp_freq() argument
245 val, val2); in ltr501_als_write_samp_freq()
258 int val, int val2) in ltr501_ps_write_samp_freq() argument
264 val, val2); in ltr501_ps_write_samp_freq()
384 int *val, int *val2) in ltr501_read_it_time() argument
396 *val2 = int_time_mapping[index]; in ltr501_read_it_time()
433 int *val2) in ltr501_read_intr_prst() argument
447 *val2 = samp_period * prst; in ltr501_read_intr_prst()
459 *val2 = samp_period * prst; in ltr501_read_intr_prst()
470 int val, int val2) in ltr501_write_intr_prst() argument
475 if (val < 0 || val2 < 0) in ltr501_write_intr_prst()
479 period = ((val * 1000000) + val2); in ltr501_write_intr_prst()
652 int *val, int *val2, long mask) in ltr501_read_raw() argument
717 *val2 = data->chip_info->als_gain[i].uscale; in ltr501_read_raw()
723 *val2 = data->chip_info->ps_gain[i].uscale; in ltr501_read_raw()
731 return ltr501_read_it_time(data, val, val2); in ltr501_read_raw()
738 return ltr501_als_read_samp_freq(data, val, val2); in ltr501_read_raw()
740 return ltr501_ps_read_samp_freq(data, val, val2); in ltr501_read_raw()
749 int val, int val2) in ltr501_get_gain_index() argument
754 if (val == gain[i].scale && val2 == gain[i].uscale) in ltr501_get_gain_index()
762 int val, int val2, long mask) in ltr501_write_raw() argument
778 val, val2); in ltr501_write_raw()
793 val, val2); in ltr501_write_raw()
818 ret = ltr501_set_it_time(data, val2); in ltr501_write_raw()
835 ret = ltr501_als_write_samp_freq(data, val, val2); in ltr501_write_raw()
853 ret = ltr501_ps_write_samp_freq(data, val, val2); in ltr501_write_raw()
885 int *val, int *val2) in ltr501_read_thresh() argument
945 int val, int val2) in ltr501_write_thresh() argument
1008 int *val, int *val2) in ltr501_read_event() argument
1015 info, val, val2); in ltr501_read_event()
1018 chan->type, val2); in ltr501_read_event()
1019 *val = *val2 / 1000000; in ltr501_read_event()
1020 *val2 = *val2 % 1000000; in ltr501_read_event()
1034 int val, int val2) in ltr501_write_event() argument
1038 if (val2 != 0) in ltr501_write_event()
1041 info, val, val2); in ltr501_write_event()
1044 val, val2); in ltr501_write_event()