Lines Matching refs:value
86 #define APDS990X_TIME_TO_ADC 1024 /* One timetick as ADC count value */
128 u16 a_max_result; /* Max possible ADC value with current atime */
178 /* Following two tables must match i.e 10Hz rate means 1 as persistence value */
260 * Reported LUX value is a combination of the IR and CLEAR channel
262 * This function approximates needed HW threshold value for a given
263 * LUX value in the current lightning type.
267 * Calculate threshold value for the next measurement period.
313 /* Calculate max ADC value for given integration time */
683 unsigned long value;
686 ret = kstrtoul(buf, 0, &value);
690 chip->lux_calib = value;
729 /* Pick up corresponding persistence value */
748 unsigned long value;
751 ret = kstrtoul(buf, 0, &value);
756 ret = apds990x_set_arate(chip, value);
807 unsigned long value;
810 ret = kstrtoul(buf, 0, &value);
819 if (value)
960 unsigned long value;
963 ret = kstrtoul(buf, 0, &value);
967 if ((value > APDS_RANGE) || (value == 0) ||
968 (value < APDS_PROX_HYSTERESIS))
972 chip->prox_thres = value;
995 unsigned long value;
998 ret = kstrtoul(buf, 0, &value);
1002 if (value) {