Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/iio/light/
A Dtsl4531.c51 int int_time; member
91 *val = 1 << data->int_time; in tsl4531_read_raw()
94 if (data->int_time == 0) in tsl4531_read_raw()
96 else if (data->int_time == 1) in tsl4531_read_raw()
98 else if (data->int_time == 2) in tsl4531_read_raw()
114 int int_time, ret; in tsl4531_write_raw() local
121 int_time = 0; in tsl4531_write_raw()
123 int_time = 1; in tsl4531_write_raw()
125 int_time = 2; in tsl4531_write_raw()
130 TSL4531_CONFIG, int_time); in tsl4531_write_raw()
[all …]
A Disl29018.c86 unsigned int int_time; member
98 unsigned int int_time, new_int_time; in isl29018_set_integration_time() local
117 int_time = chip->int_time; in isl29018_set_integration_time()
125 chip->int_time = new_int_time; in isl29018_set_integration_time()
139 new_scale = isl29018_scales[chip->int_time][i]; in isl29018_set_scale()
144 if (i >= ARRAY_SIZE(isl29018_scales[chip->int_time])) in isl29018_set_scale()
276 isl29018_scales[chip->int_time][i].scale, in in_illuminance_scale_available_show()
277 isl29018_scales[chip->int_time][i].uscale); in in_illuminance_scale_available_show()
611 isl29018_int_utimes[chip->type][chip->int_time]); in isl29018_chip_init()
744 chip->int_time = ISL29018_INT_TIME_16; in isl29018_probe()
[all …]
A Dcm36651.c395 int int_time, ret; in cm36651_write_int_time() local
400 int_time = CM36651_CS_IT1; in cm36651_write_int_time()
402 int_time = CM36651_CS_IT2; in cm36651_write_int_time()
404 int_time = CM36651_CS_IT3; in cm36651_write_int_time()
406 int_time = CM36651_CS_IT4; in cm36651_write_int_time()
420 int_time = CM36651_PS_IT1; in cm36651_write_int_time()
422 int_time = CM36651_PS_IT2; in cm36651_write_int_time()
424 int_time = CM36651_PS_IT3; in cm36651_write_int_time()
426 int_time = CM36651_PS_IT4; in cm36651_write_int_time()
431 CM36651_PS_CONF1, int_time); in cm36651_write_int_time()
[all …]
A Dlv0104cs.c43 u8 int_time; member
168 regval |= lv0104cs_int_times[lv0104cs->int_time].regval; in lv0104cs_get_lux()
174 switch (lv0104cs->int_time) { in lv0104cs_get_lux()
259 *val = lv0104cs_int_times[lv0104cs->int_time].val; in lv0104cs_read_raw()
260 *val2 = lv0104cs_int_times[lv0104cs->int_time].val2; in lv0104cs_read_raw()
363 lv0104cs->int_time = i; in lv0104cs_set_int_time()
496 lv0104cs->int_time = LV0104CS_INTEG_200MS; in lv0104cs_probe()
A Dtsl2591.c786 int int_time; in tsl2591_write_raw() local
794 int_time = tsl2591_als_time_to_fval(val); in tsl2591_write_raw()
795 if (int_time < 0) { in tsl2591_write_raw()
796 ret = int_time; in tsl2591_write_raw()
799 ret = tsl2591_compatible_int_time(chip, int_time); in tsl2591_write_raw()
803 chip->als_settings.als_int_time = int_time; in tsl2591_write_raw()
860 int als_persist, int_time, period; in tsl2591_read_event_value() local
887 int_time = TSL2591_FVAL_TO_MSEC(chip->als_settings.als_int_time); in tsl2591_read_event_value()
888 period = als_persist * (int_time * MSEC_PER_SEC); in tsl2591_read_event_value()
913 int period, int_time, als_persist; in tsl2591_write_event_value() local
[all …]
A Dopt3001.c83 u32 int_time; member
283 timeout = (opt->int_time == OPT3001_INT_TIME_SHORT) ? in opt3001_get_lux()
350 *val2 = opt->int_time; in opt3001_get_int_time()
372 opt->int_time = OPT3001_INT_TIME_SHORT; in opt3001_set_int_time()
376 opt->int_time = OPT3001_INT_TIME_LONG; in opt3001_set_int_time()
641 opt->int_time = OPT3001_INT_TIME_LONG; in opt3001_configure()
643 opt->int_time = OPT3001_INT_TIME_SHORT; in opt3001_configure()
A Dltrf216a.c82 u32 int_time; member
178 data->int_time = itime; in ltrf216a_set_int_time()
187 *val2 = data->int_time; in ltrf216a_get_int_time()
474 data->int_time = 100000; in ltrf216a_probe()
A Dmax44009.c124 int ret, int_time, config; in max44009_write_int_time() local
128 int_time = find_closest_descending( in max44009_write_int_time()
138 config &= int_time; in max44009_write_int_time()

Completed in 24 milliseconds