Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/light/
H 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 …]
H 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 …]
H A Dopt4001.c86 u8 int_time; member
215 reg |= FIELD_PREP(OPT4001_CTRL_CONV_TIME_MASK, chip->int_time); in opt4001_set_conf()
274 *val2 = opt4001_int_time_reg[chip->int_time][0]; in opt4001_read_raw()
286 int int_time; in opt4001_write_raw() local
290 int_time = opt4001_als_time_to_index(val2); in opt4001_write_raw()
291 if (int_time < 0) in opt4001_write_raw()
292 return int_time; in opt4001_write_raw()
293 chip->int_time = int_time; in opt4001_write_raw()
325 chip->int_time = OPT4001_DEFAULT_CONVERSION_TIME; in opt4001_load_defaults()
H 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 …]
H 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()
H 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 …]
H A Dopt3001.c83 u32 int_time; member
287 timeout = (opt->int_time == OPT3001_INT_TIME_SHORT) ? in opt3001_get_lux()
354 *val2 = opt->int_time; in opt3001_get_int_time()
376 opt->int_time = OPT3001_INT_TIME_SHORT; in opt3001_set_int_time()
380 opt->int_time = OPT3001_INT_TIME_LONG; in opt3001_set_int_time()
645 opt->int_time = OPT3001_INT_TIME_LONG; in opt3001_configure()
647 opt->int_time = OPT3001_INT_TIME_SHORT; in opt3001_configure()
H 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()
H 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()
H A Drohm-bu27008.c979 int ret, int_time; in bu27008_read_one() local
991 int_time = BU27008_MEAS_TIME_MAX_MS; in bu27008_read_one()
993 int_time = ret / USEC_PER_MSEC; in bu27008_read_one()
995 msleep(int_time); in bu27008_read_one()