Lines Matching refs:tp_features

333 } tp_features;  variable
2072 if (!tp_features.hotkey_wlsw) in hotkey_get_wlsw()
2173 switch (tp_features.hotkey_tablet) { in hotkey_get_tablet_mode()
2203 if (tp_features.hotkey_mask) { in hotkey_mask_get()
2248 if (tp_features.hotkey_mask) { in hotkey_mask_set()
2317 if (!tp_features.hotkey) { in tpacpi_hotkey_driver_mask_set()
2360 if (tp_features.hotkey_tablet && in tpacpi_input_send_tabletsw()
2559 && !tp_features.bright_unkfw) in hotkey_compare_and_issue_event()
2971 if (tp_features.hotkey_wlsw) in hotkey_radio_sw_notify_change()
2993 if (tp_features.hotkey_tablet) in hotkey_tablet_mode_notify_change()
3164 if (((tp_features.hotkey_mask && in hotkey_exit()
3229 tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_GMMS; in hotkey_init_tablet_mode()
3233 tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_MHKG; in hotkey_init_tablet_mode()
3238 if (!tp_features.hotkey_tablet) in hotkey_init_tablet_mode()
3496 tp_features.hotkey = hkey_handle != NULL; in hotkey_init()
3500 str_supported(tp_features.hotkey)); in hotkey_init()
3502 if (!tp_features.hotkey) in hotkey_init()
3546 tp_features.hotkey_mask = 1; in hotkey_init()
3563 tp_features.hotkey_mask = 1; in hotkey_init()
3573 tp_features.has_adaptive_kbd = true; in hotkey_init()
3581 tp_features.has_adaptive_kbd = false; in hotkey_init()
3596 str_supported(tp_features.hotkey_mask)); in hotkey_init()
3599 if (!tp_features.hotkey_mask && !hotkey_all_mask && in hotkey_init()
3604 if (tp_features.hotkey_mask) { in hotkey_init()
3619 tp_features.hotkey_wlsw = 1; in hotkey_init()
3626 tp_features.hotkey_wlsw = 1; in hotkey_init()
3631 if (tp_features.hotkey_wlsw) in hotkey_init()
3675 if (tp_features.hotkey_wlsw) { in hotkey_init()
3680 if (tp_features.hotkey_tablet) { in hotkey_init()
4187 if (tp_features.hotkey_wlsw && in hotkey_notify()
4221 if (tp_features.has_adaptive_kbd) { in hotkey_suspend()
4245 if (tp_features.has_adaptive_kbd) { in hotkey_resume()
4258 if (!tp_features.hotkey) { in hotkey_read()
4298 if (!tp_features.hotkey) in hotkey_write()
4564 tp_features.bluetooth = !have_bt_fwbug() && hkey_handle && in bluetooth_init()
4569 str_supported(tp_features.bluetooth), in bluetooth_init()
4574 tp_features.bluetooth = 1; in bluetooth_init()
4578 if (tp_features.bluetooth && in bluetooth_init()
4581 tp_features.bluetooth = 0; in bluetooth_init()
4586 if (!tp_features.bluetooth) in bluetooth_init()
4751 tp_features.wan = hkey_handle && in wan_init()
4756 str_supported(tp_features.wan), in wan_init()
4761 tp_features.wan = 1; in wan_init()
4765 if (tp_features.wan && in wan_init()
4768 tp_features.wan = 0; in wan_init()
4773 if (!tp_features.wan) in wan_init()
4891 tp_features.uwb = hkey_handle && in uwb_init()
4896 str_supported(tp_features.uwb), in uwb_init()
4901 tp_features.uwb = 1; in uwb_init()
4905 if (tp_features.uwb && in uwb_init()
4908 tp_features.uwb = 0; in uwb_init()
4913 if (!tp_features.uwb) in uwb_init()
5413 tp_features.kbdlight = 0; in kbdlight_init()
5419 tp_features.kbdlight = 1; in kbdlight_init()
5424 tp_features.kbdlight = 0; in kbdlight_init()
5456 if (!tp_features.kbdlight) { in kbdlight_read()
5475 if (!tp_features.kbdlight) in kbdlight_write()
5494 if (!tp_features.kbdlight) in kbdlight_suspend()
5504 if (!tp_features.kbdlight) in kbdlight_resume()
5530 if (tp_features.light_status) { in light_get_status()
5543 if (tp_features.light) { in light_set_status()
5592 tp_features.light = (cmos_handle || lght_handle) && !ledb_handle; in light_init()
5594 if (tp_features.light) in light_init()
5597 tp_features.light_status = in light_init()
5601 str_supported(tp_features.light), in light_init()
5602 str_supported(tp_features.light_status)); in light_init()
5604 if (!tp_features.light) in light_init()
5611 tp_features.light = 0; in light_init()
5612 tp_features.light_status = 0; in light_init()
5629 if (!tp_features.light) { in light_read()
5631 } else if (!tp_features.light_status) { in light_read()
5650 if (!tp_features.light) in light_write()
6189 tp_features.beep_needs_two_args = !!(quirks & TPACPI_BEEP_Q1); in beep_init()
6220 if (tp_features.beep_needs_two_args) { in beep_write()
6881 tp_features.bright_acpimode = (bcl_levels > 0); in tpacpi_check_std_acpi_brightness_support()
6945 tp_features.bright_unkfw = 1; in tpacpi_detect_brightness_capabilities()
6967 if (tp_features.bright_unkfw) in brightness_init()
6984 } else if (!tp_features.bright_acpimode) { in brightness_init()
7267 if (tp_features.mixer_no_level_control) in tpacpi_volume_checkpoint_nvram()
7443 if (tp_features.mixer_no_level_control) in volume_set_software_mute()
7638 if (!tp_features.mixer_no_level_control) { in volume_create_alsa_mixer()
7739 tp_features.mixer_no_level_control = 1; in volume_init()
7741 tp_features.mixer_no_level_control = 0; in volume_init()
7746 tp_features.mixer_no_level_control = 0; in volume_init()
7749 tp_features.mixer_no_level_control = 1; in volume_init()
7775 str_supported(!tp_features.mixer_no_level_control)); in volume_init()
7809 if (tp_features.mixer_no_level_control) in volume_read()
7820 if (!tp_features.mixer_no_level_control) { in volume_read()
7860 if (!tp_features.mixer_no_level_control) { in volume_write()
7887 if (tp_features.mixer_no_level_control) { in volume_write()
8130 tp_features.fan_ctrl_status_undef = 1; in fan_quirk1_setup()
8136 if (unlikely(tp_features.fan_ctrl_status_undef)) { in fan_quirk1_handle()
8141 tp_features.fan_ctrl_status_undef = 0; in fan_quirk1_handle()
8153 if (tp_features.second_fan) { in fan_select_fan1()
8170 if (!tp_features.second_fan) in fan_select_fan2()
8318 if (tp_features.second_fan_ctl) { in fan_set_level()
8322 tp_features.second_fan_ctl = 0; in fan_set_level()
8344 if (tp_features.second_fan_ctl) { in fan_set_level()
8348 tp_features.second_fan_ctl = 0; in fan_set_level()
8356 tp_features.fan_ctrl_status_undef = 0; in fan_set_level()
8416 tp_features.fan_ctrl_status_undef = 0; in fan_set_enable()
8468 tp_features.fan_ctrl_status_undef = 0; in fan_set_disable()
8804 tp_features.fan_ctrl_status_undef = 0; in fan_init()
8805 tp_features.second_fan = 0; in fan_init()
8806 tp_features.second_fan_ctl = 0; in fan_init()
8830 tp_features.second_fan = 1; in fan_init()
8834 tp_features.second_fan = 1; in fan_init()
8835 tp_features.second_fan_ctl = 1; in fan_init()
8891 if (tp_features.second_fan) { in fan_init()
8943 if (tp_features.fan_ctrl_status_undef) in fan_suspend()
8954 tp_features.fan_ctrl_status_undef = 0; in fan_resume()
9516 tp_features.battery_force_primary) in tpacpi_battery_get_id()
9723 tp_features.battery_force_primary = tpacpi_check_quirks( in tpacpi_battery_init()
9969 if (tp_features.kbdlight && hkey_event == TP_HKEY_EV_KBD_LIGHT) { in tpacpi_driver_event()
10567 if (tp_features.input_device_registered) in thinkpad_acpi_module_exit()
10582 if (tp_features.sensors_pdrv_attrs_registered) in thinkpad_acpi_module_exit()
10584 if (tp_features.platform_drv_attrs_registered) in thinkpad_acpi_module_exit()
10587 if (tp_features.sensors_pdrv_registered) in thinkpad_acpi_module_exit()
10590 if (tp_features.platform_drv_registered) in thinkpad_acpi_module_exit()
10653 tp_features.platform_drv_registered = 1; in thinkpad_acpi_module_init()
10661 tp_features.sensors_pdrv_registered = 1; in thinkpad_acpi_module_init()
10665 tp_features.platform_drv_attrs_registered = 1; in thinkpad_acpi_module_init()
10674 tp_features.sensors_pdrv_attrs_registered = 1; in thinkpad_acpi_module_init()
10697 tp_features.sensors_pdev_attrs_registered = 1; in thinkpad_acpi_module_init()
10746 tp_features.input_device_registered = 1; in thinkpad_acpi_module_init()