Lines Matching refs:tp_features

341 } tp_features;  variable
2080 if (!tp_features.hotkey_wlsw) in hotkey_get_wlsw()
2181 switch (tp_features.hotkey_tablet) { in hotkey_get_tablet_mode()
2211 if (tp_features.hotkey_mask) { in hotkey_mask_get()
2256 if (tp_features.hotkey_mask) { in hotkey_mask_set()
2325 if (!tp_features.hotkey) { in tpacpi_hotkey_driver_mask_set()
2368 if (tp_features.hotkey_tablet && in tpacpi_input_send_tabletsw()
2567 && !tp_features.bright_unkfw) in hotkey_compare_and_issue_event()
2979 if (tp_features.hotkey_wlsw) in hotkey_radio_sw_notify_change()
3001 if (tp_features.hotkey_tablet) in hotkey_tablet_mode_notify_change()
3172 if (((tp_features.hotkey_mask && in hotkey_exit()
3237 tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_GMMS; in hotkey_init_tablet_mode()
3241 tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_MHKG; in hotkey_init_tablet_mode()
3246 if (!tp_features.hotkey_tablet) in hotkey_init_tablet_mode()
3504 tp_features.hotkey = hkey_handle != NULL; in hotkey_init()
3508 str_supported(tp_features.hotkey)); in hotkey_init()
3510 if (!tp_features.hotkey) in hotkey_init()
3554 tp_features.hotkey_mask = 1; in hotkey_init()
3571 tp_features.hotkey_mask = 1; in hotkey_init()
3581 tp_features.has_adaptive_kbd = true; in hotkey_init()
3589 tp_features.has_adaptive_kbd = false; in hotkey_init()
3604 str_supported(tp_features.hotkey_mask)); in hotkey_init()
3607 if (!tp_features.hotkey_mask && !hotkey_all_mask && in hotkey_init()
3612 if (tp_features.hotkey_mask) { in hotkey_init()
3627 tp_features.hotkey_wlsw = 1; in hotkey_init()
3634 tp_features.hotkey_wlsw = 1; in hotkey_init()
3639 if (tp_features.hotkey_wlsw) in hotkey_init()
3683 if (tp_features.hotkey_wlsw) { in hotkey_init()
3688 if (tp_features.hotkey_tablet) { in hotkey_init()
4219 if (tp_features.hotkey_wlsw && in hotkey_notify()
4253 if (tp_features.has_adaptive_kbd) { in hotkey_suspend()
4277 if (tp_features.has_adaptive_kbd) { in hotkey_resume()
4290 if (!tp_features.hotkey) { in hotkey_read()
4330 if (!tp_features.hotkey) in hotkey_write()
4596 tp_features.bluetooth = !have_bt_fwbug() && hkey_handle && in bluetooth_init()
4601 str_supported(tp_features.bluetooth), in bluetooth_init()
4606 tp_features.bluetooth = 1; in bluetooth_init()
4610 if (tp_features.bluetooth && in bluetooth_init()
4613 tp_features.bluetooth = 0; in bluetooth_init()
4618 if (!tp_features.bluetooth) in bluetooth_init()
4783 tp_features.wan = hkey_handle && in wan_init()
4788 str_supported(tp_features.wan), in wan_init()
4793 tp_features.wan = 1; in wan_init()
4797 if (tp_features.wan && in wan_init()
4800 tp_features.wan = 0; in wan_init()
4805 if (!tp_features.wan) in wan_init()
4923 tp_features.uwb = hkey_handle && in uwb_init()
4928 str_supported(tp_features.uwb), in uwb_init()
4933 tp_features.uwb = 1; in uwb_init()
4937 if (tp_features.uwb && in uwb_init()
4940 tp_features.uwb = 0; in uwb_init()
4945 if (!tp_features.uwb) in uwb_init()
5445 tp_features.kbdlight = 0; in kbdlight_init()
5451 tp_features.kbdlight = 1; in kbdlight_init()
5456 tp_features.kbdlight = 0; in kbdlight_init()
5488 if (!tp_features.kbdlight) { in kbdlight_read()
5507 if (!tp_features.kbdlight) in kbdlight_write()
5526 if (!tp_features.kbdlight) in kbdlight_suspend()
5536 if (!tp_features.kbdlight) in kbdlight_resume()
5562 if (tp_features.light_status) { in light_get_status()
5575 if (tp_features.light) { in light_set_status()
5624 tp_features.light = (cmos_handle || lght_handle) && !ledb_handle; in light_init()
5626 if (tp_features.light) in light_init()
5629 tp_features.light_status = in light_init()
5633 str_supported(tp_features.light), in light_init()
5634 str_supported(tp_features.light_status)); in light_init()
5636 if (!tp_features.light) in light_init()
5643 tp_features.light = 0; in light_init()
5644 tp_features.light_status = 0; in light_init()
5661 if (!tp_features.light) { in light_read()
5663 } else if (!tp_features.light_status) { in light_read()
5682 if (!tp_features.light) in light_write()
6221 tp_features.beep_needs_two_args = !!(quirks & TPACPI_BEEP_Q1); in beep_init()
6252 if (tp_features.beep_needs_two_args) { in beep_write()
6948 tp_features.bright_acpimode = (bcl_levels > 0); in tpacpi_check_std_acpi_brightness_support()
7012 tp_features.bright_unkfw = 1; in tpacpi_detect_brightness_capabilities()
7034 if (tp_features.bright_unkfw) in brightness_init()
7051 } else if (!tp_features.bright_acpimode) { in brightness_init()
7334 if (tp_features.mixer_no_level_control) in tpacpi_volume_checkpoint_nvram()
7510 if (tp_features.mixer_no_level_control) in volume_set_software_mute()
7705 if (!tp_features.mixer_no_level_control) { in volume_create_alsa_mixer()
7806 tp_features.mixer_no_level_control = 1; in volume_init()
7808 tp_features.mixer_no_level_control = 0; in volume_init()
7813 tp_features.mixer_no_level_control = 0; in volume_init()
7816 tp_features.mixer_no_level_control = 1; in volume_init()
7842 str_supported(!tp_features.mixer_no_level_control)); in volume_init()
7876 if (tp_features.mixer_no_level_control) in volume_read()
7887 if (!tp_features.mixer_no_level_control) { in volume_read()
7927 if (!tp_features.mixer_no_level_control) { in volume_write()
7954 if (tp_features.mixer_no_level_control) { in volume_write()
8197 tp_features.fan_ctrl_status_undef = 1; in fan_quirk1_setup()
8203 if (unlikely(tp_features.fan_ctrl_status_undef)) { in fan_quirk1_handle()
8208 tp_features.fan_ctrl_status_undef = 0; in fan_quirk1_handle()
8220 if (tp_features.second_fan) { in fan_select_fan1()
8237 if (!tp_features.second_fan) in fan_select_fan2()
8385 if (tp_features.second_fan_ctl) { in fan_set_level()
8389 tp_features.second_fan_ctl = 0; in fan_set_level()
8411 if (tp_features.second_fan_ctl) { in fan_set_level()
8415 tp_features.second_fan_ctl = 0; in fan_set_level()
8423 tp_features.fan_ctrl_status_undef = 0; in fan_set_level()
8483 tp_features.fan_ctrl_status_undef = 0; in fan_set_enable()
8535 tp_features.fan_ctrl_status_undef = 0; in fan_set_disable()
8873 tp_features.fan_ctrl_status_undef = 0; in fan_init()
8874 tp_features.second_fan = 0; in fan_init()
8875 tp_features.second_fan_ctl = 0; in fan_init()
8899 tp_features.second_fan = 1; in fan_init()
8903 tp_features.second_fan = 1; in fan_init()
8904 tp_features.second_fan_ctl = 1; in fan_init()
8960 if (tp_features.second_fan) { in fan_init()
9012 if (tp_features.fan_ctrl_status_undef) in fan_suspend()
9023 tp_features.fan_ctrl_status_undef = 0; in fan_resume()
9585 tp_features.battery_force_primary) in tpacpi_battery_get_id()
9792 tp_features.battery_force_primary = tpacpi_check_quirks( in tpacpi_battery_init()
10689 if (tp_features.kbdlight && hkey_event == TP_HKEY_EV_KBD_LIGHT) { in tpacpi_driver_event()
11302 if (tp_features.input_device_registered) in thinkpad_acpi_module_exit()
11317 if (tp_features.sensors_pdrv_attrs_registered) in thinkpad_acpi_module_exit()
11319 if (tp_features.platform_drv_attrs_registered) in thinkpad_acpi_module_exit()
11322 if (tp_features.sensors_pdrv_registered) in thinkpad_acpi_module_exit()
11325 if (tp_features.platform_drv_registered) in thinkpad_acpi_module_exit()
11388 tp_features.platform_drv_registered = 1; in thinkpad_acpi_module_init()
11396 tp_features.sensors_pdrv_registered = 1; in thinkpad_acpi_module_init()
11400 tp_features.platform_drv_attrs_registered = 1; in thinkpad_acpi_module_init()
11409 tp_features.sensors_pdrv_attrs_registered = 1; in thinkpad_acpi_module_init()
11432 tp_features.sensors_pdev_attrs_registered = 1; in thinkpad_acpi_module_init()
11481 tp_features.input_device_registered = 1; in thinkpad_acpi_module_init()