Searched refs:int_time (Results 1 – 12 of 12) sorted by relevance
/linux-6.12.1/drivers/iio/light/ |
D | tsl4531.c | 51 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 …]
|
D | isl29018.c | 86 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() 118 for (i = 0; i < ARRAY_SIZE(isl29018_scales[int_time]); ++i) { in isl29018_set_integration_time() 119 if (chip->scale.scale == isl29018_scales[int_time][i].scale && in isl29018_set_integration_time() 120 chip->scale.uscale == isl29018_scales[int_time][i].uscale) { in isl29018_set_integration_time() 125 chip->int_time = new_int_time; in isl29018_set_integration_time() 136 for (i = 0; i < ARRAY_SIZE(isl29018_scales[chip->int_time]); ++i) { in isl29018_set_scale() 137 if (scale == isl29018_scales[chip->int_time][i].scale && in isl29018_set_scale() 138 uscale == isl29018_scales[chip->int_time][i].uscale) { in isl29018_set_scale() [all …]
|
D | opt4001.c | 86 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()
|
D | cm36651.c | 395 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() 411 int_time >> 2 * (chan->address)); in cm36651_write_int_time() 416 cm36651->cs_int_time[chan->address] = int_time; 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() [all …]
|
D | lv0104cs.c | 43 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()
|
D | tsl2591.c | 786 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 …]
|
D | bh1745.c | 256 const struct iio_itime_sel_mul *int_time; in bh1745_get_scale() local 270 int_time = iio_gts_find_itime_by_sel(&data->gts, int_time_sel); in bh1745_get_scale() 272 return iio_gts_get_scale(&data->gts, gain, int_time->time_us, val, in bh1745_get_scale() 328 int int_time, int_time_sel; in bh1745_get_int_time() local 335 int_time = iio_gts_find_int_time_by_sel(&data->gts, int_time_sel); in bh1745_get_int_time() 336 if (int_time < 0) in bh1745_get_int_time() 337 return int_time; in bh1745_get_int_time() 339 *val = int_time; in bh1745_get_int_time()
|
D | opt3001.c | 83 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()
|
D | veml6075.c | 103 int ret, conf, int_time; in veml6075_request_measurement() local 120 int_time = veml6075_it_ms[FIELD_GET(VEML6075_CONF_IT, conf)]; in veml6075_request_measurement() 121 msleep(int_time + (int_time / 2)); in veml6075_request_measurement()
|
D | ltrf216a.c | 90 u32 int_time; member 186 data->int_time = itime; in ltrf216a_set_int_time() 195 *val2 = data->int_time; in ltrf216a_get_int_time() 495 data->int_time = 100000; in ltrf216a_probe()
|
D | max44009.c | 124 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()
|
D | rohm-bu27008.c | 996 int ret, int_time; in bu27008_read_one() local 1008 int_time = BU27008_MEAS_TIME_MAX_MS; in bu27008_read_one() 1010 int_time = ret / USEC_PER_MSEC; in bu27008_read_one() 1012 msleep(int_time); in bu27008_read_one()
|