Lines Matching refs:value
623 in_objs[params.count].integer.value = va_arg(ap, int);
650 *res = out_obj.integer.value;
996 unsigned long max, unsigned long *value)
1000 *value = simple_strtoul(skip_spaces(buf), &endp, 0);
1002 if (*endp || *value > max)
1955 int value = s & 0xffff;
1991 pr_err("Unknown multi mode status type %d with value 0x%04X, please report this to %s\n",
1992 type, value, TPACPI_MAIL);
1999 switch (value) {
2019 if (type == 5 && value == 0xffff) {
2026 pr_err("Unknown/reserved multi mode value 0x%04X for type %d, please report this to %s\n",
2027 value, type, TPACPI_MAIL);
3313 * The lowest known value is 0x311, which according to
6151 static int thermal_get_sensor(int idx, s32 *value)
6172 *value = tmp * 1000;
6184 *value = (t - 2732) * 100;
6196 *value = t * 1000;
6262 s32 value;
6265 res = thermal_get_sensor(idx, &value);
6268 if (value == TPACPI_THERMAL_SENSOR_NA)
6271 return sysfs_emit(buf, "%d\n", value);
6609 /* do NOT call with illegal backlight level value */
6610 static int tpacpi_brightness_set_ec(unsigned int value)
6621 (value & TP_EC_BACKLIGHT_LVLMSK))))
6627 static int tpacpi_brightness_set_ucmsstep(unsigned int value)
6636 if (value == current_value)
6639 cmos_cmd = (value > current_value) ?
6642 inc = (value > current_value) ? 1 : -1;
6644 for (i = current_value; i != value; i += inc)
6652 static int brightness_set(unsigned int value)
6656 if (value > bright_maxlvl)
6660 "set backlight level to %d\n", value);
6669 res = tpacpi_brightness_set_ec(value);
6672 res = tpacpi_brightness_set_ucmsstep(value);
6947 * be working around some unknown firmware problem where the value
7393 uinfo->value.integer.min = 0;
7394 uinfo->value.integer.max = TP_EC_VOLUME_MAX;
7408 ucontrol->value.integer.value[0] = s & TP_EC_AUDIO_LVL_MSK;
7416 ucontrol->value.integer.value[0]);
7417 return volume_alsa_set_volume(ucontrol->value.integer.value[0]);
7432 ucontrol->value.integer.value[0] =
7441 ucontrol->value.integer.value[0] ?
7443 return volume_alsa_set_mute(!ucontrol->value.integer.value[0]);
7886 * does so, its initial value is meaningless (0x07).
9407 /* The value is in the low 8 bits of the response */
9416 * On the stop value, if we return 0 that
9442 static int tpacpi_battery_set(int what, int battery, int value)
9445 /* The first 8 bits are the value of the threshold */
9446 param = value;
9475 /* When setting inhibit charge, we set a default value of
9482 param = value;
9496 static int tpacpi_battery_set_validate(int what, int battery, int value)
9500 ret = tpacpi_battery_set(what, battery, value);
9508 if (v == value)
9517 if (v == value)
9634 unsigned long value;
9653 rval = kstrtoul(buf, 10, &value);
9662 if (value > 99)
9664 if (value > battery_info.batteries[battery].charge_stop)
9666 if (tpacpi_battery_set(THRESHOLD_START, battery, value))
9668 battery_info.batteries[battery].charge_start = value;
9675 if (value < 1 || value > 100)
9677 if (value < battery_info.batteries[battery].charge_start)
9679 battery_info.batteries[battery].charge_stop = value;
9685 if (value == 100)
9686 value = 0;
9687 if (tpacpi_battery_set(THRESHOLD_STOP, battery, value))