Lines Matching refs:t
1268 unsigned long t; in tpacpi_rfk_sysfs_enable_store() local
1273 if (parse_strtoul(buf, 1, &t)) in tpacpi_rfk_sysfs_enable_store()
1276 tpacpi_disclose_usertask(attr->attr.name, "set to %ld\n", t); in tpacpi_rfk_sysfs_enable_store()
1279 if (tpacpi_rfk_check_hwblock_state() && !!t) in tpacpi_rfk_sysfs_enable_store()
1282 res = tpacpi_rfkill_switches[id]->ops->set_status((!!t) ? in tpacpi_rfk_sysfs_enable_store()
1363 unsigned long t; in debug_level_store() local
1365 if (parse_strtoul(buf, 0xffff, &t)) in debug_level_store()
1368 dbg_level = t; in debug_level_store()
1395 unsigned long t; in wlsw_emulstate_store() local
1397 if (parse_strtoul(buf, 1, &t)) in wlsw_emulstate_store()
1400 if (tpacpi_wlsw_emulstate != !!t) { in wlsw_emulstate_store()
1401 tpacpi_wlsw_emulstate = !!t; in wlsw_emulstate_store()
1402 tpacpi_rfk_update_hwblock_state(!t); /* negative logic */ in wlsw_emulstate_store()
1418 unsigned long t; in bluetooth_emulstate_store() local
1420 if (parse_strtoul(buf, 1, &t)) in bluetooth_emulstate_store()
1423 tpacpi_bluetooth_emulstate = !!t; in bluetooth_emulstate_store()
1438 unsigned long t; in wwan_emulstate_store() local
1440 if (parse_strtoul(buf, 1, &t)) in wwan_emulstate_store()
1443 tpacpi_wwan_emulstate = !!t; in wwan_emulstate_store()
1458 unsigned long t; in uwb_emulstate_store() local
1460 if (parse_strtoul(buf, 1, &t)) in uwb_emulstate_store()
1463 tpacpi_uwb_emulstate = !!t; in uwb_emulstate_store()
2444 unsigned long t; in hotkey_kthread() local
2456 t = 0; in hotkey_kthread()
2469 if (t == 0) { in hotkey_kthread()
2471 t = 1000/poll_freq; in hotkey_kthread()
2473 t = 100; /* should never happen... */ in hotkey_kthread()
2475 t = msleep_interruptible(t); in hotkey_kthread()
2479 if (t > 0 && !was_frozen) in hotkey_kthread()
2486 t = 0; in hotkey_kthread()
2623 unsigned long t; in hotkey_enable_store() local
2628 if (parse_strtoul(buf, 1, &t)) in hotkey_enable_store()
2631 if (t == 0) in hotkey_enable_store()
2651 unsigned long t; in hotkey_mask_store() local
2654 if (parse_strtoul(buf, 0xffffffffUL, &t)) in hotkey_mask_store()
2660 res = hotkey_user_mask_set(t); in hotkey_mask_store()
2668 tpacpi_disclose_usertask("hotkey_mask", "set to 0x%08lx\n", t); in hotkey_mask_store()
2745 unsigned long t; in hotkey_source_mask_store() local
2749 if (parse_strtoul(buf, 0xffffffffUL, &t) || in hotkey_source_mask_store()
2750 ((t & ~TPACPI_HKEY_NVRAM_KNOWN_MASK) != 0)) in hotkey_source_mask_store()
2757 hotkey_source_mask = t; in hotkey_source_mask_store()
2777 tpacpi_disclose_usertask("hotkey_source_mask", "set to 0x%08lx\n", t); in hotkey_source_mask_store()
2796 unsigned long t; in hotkey_poll_freq_store() local
2798 if (parse_strtoul(buf, 25, &t)) in hotkey_poll_freq_store()
2804 hotkey_poll_set_freq(t); in hotkey_poll_freq_store()
2809 tpacpi_disclose_usertask("hotkey_poll_freq", "set to %lu\n", t); in hotkey_poll_freq_store()
2929 unsigned long t; in adaptive_kbd_mode_store() local
2932 if (parse_strtoul(buf, LAYFLAT_MODE, &t)) in adaptive_kbd_mode_store()
2935 res = adaptive_keyboard_set_mode(t); in adaptive_kbd_mode_store()
6154 int t; in thermal_get_sensor() local
6158 t = TP_EC_THERMAL_TMP0; in thermal_get_sensor()
6164 t = TP_EC_THERMAL_TMP8; in thermal_get_sensor()
6171 if (!acpi_ec_read(t + idx, &tmp)) in thermal_get_sensor()
6183 if (!acpi_evalf(ec_handle, &t, tmpi, "d")) in thermal_get_sensor()
6185 *value = (t - 2732) * 100; in thermal_get_sensor()
6193 if (!acpi_evalf(ec_handle, &t, tmpi, "d")) in thermal_get_sensor()
6195 if (t > 127 || t < -127) in thermal_get_sensor()
6196 t = TP_EC_THERMAL_TMP_NA; in thermal_get_sensor()
6197 *value = t * 1000; in thermal_get_sensor()
6236 struct ibm_thermal_sensors_struct t; in thermal_dump_all_sensors() local
6238 n = thermal_get_sensors(&t); in thermal_dump_all_sensors()
6245 if (t.temp[i] != TPACPI_THERMAL_SENSOR_NA) in thermal_dump_all_sensors()
6246 pr_cont(" %d", (int)(t.temp[i] / 1000)); in thermal_dump_all_sensors()
6379 u8 t, ta1, ta2, ver = 0; in thermal_init() local
6404 if (acpi_ec_read(TP_EC_THERMAL_TMP0 + i, &t)) { in thermal_init()
6405 ta1 |= t; in thermal_init()
6411 if (acpi_ec_read(TP_EC_THERMAL_TMP8 + i, &t)) { in thermal_init()
6412 ta2 |= t; in thermal_init()
6462 struct ibm_thermal_sensors_struct t; in thermal_read() local
6464 n = thermal_get_sensors(&t); in thermal_read()
6472 seq_printf(m, "%d ", t.temp[i] / 1000); in thermal_read()
6473 seq_printf(m, "%d\n", t.temp[i] / 1000); in thermal_read()
8547 unsigned long t; in fan_pwm1_enable_store() local
8550 if (parse_strtoul(buf, 2, &t)) in fan_pwm1_enable_store()
8554 "set fan mode to %lu\n", t); in fan_pwm1_enable_store()
8556 switch (t) { in fan_pwm1_enable_store()
8698 unsigned long t; in fan_watchdog_store() local
8700 if (parse_strtoul(buf, 120, &t)) in fan_watchdog_store()
8706 fan_watchdog_maxinterval = t; in fan_watchdog_store()
8709 tpacpi_disclose_usertask("fan_watchdog", "set to %lu\n", t); in fan_watchdog_store()
9244 static int mute_led_on_off(struct tp_led_table *t, bool state) in mute_led_on_off() argument
9249 if (ACPI_FAILURE(acpi_get_handle(hkey_handle, t->name, &temp))) { in mute_led_on_off()
9250 pr_warn("Thinkpad ACPI has no %s interface.\n", t->name); in mute_led_on_off()
9254 if (!acpi_evalf(hkey_handle, &output, t->name, "dd", in mute_led_on_off()
9255 state ? t->on_value : t->off_value)) in mute_led_on_off()
9258 t->state = state; in mute_led_on_off()
9264 struct tp_led_table *t; in tpacpi_led_set() local
9266 t = &led_tables[whichled]; in tpacpi_led_set()
9267 if (t->state < 0 || t->state == on) in tpacpi_led_set()
9268 return t->state; in tpacpi_led_set()
9269 return mute_led_on_off(t, on); in tpacpi_led_set()
9305 struct tp_led_table *t = &led_tables[i]; in mute_led_init() local
9306 if (ACPI_FAILURE(acpi_get_handle(hkey_handle, t->name, &temp))) { in mute_led_init()
9307 t->state = -ENODEV; in mute_led_init()
9337 struct tp_led_table *t = &led_tables[i]; in mute_led_resume() local
9338 if (t->state >= 0) in mute_led_resume()
9339 mute_led_on_off(t, t->state); in mute_led_resume()
11284 char t; in get_thinkpad_model_data() local
11304 t = tpacpi_parse_fw_id(tp->bios_version_str, in get_thinkpad_model_data()
11306 if (t != 'E' && t != 'C') in get_thinkpad_model_data()
11335 t = tpacpi_parse_fw_id(ec_fw_string, in get_thinkpad_model_data()
11337 if (t != 'H') { in get_thinkpad_model_data()