Lines Matching refs:tp_features
332 } tp_features; variable
2086 if (!tp_features.hotkey_wlsw) in hotkey_get_wlsw()
2187 switch (tp_features.hotkey_tablet) { in hotkey_get_tablet_mode()
2217 if (tp_features.hotkey_mask) { in hotkey_mask_get()
2262 if (tp_features.hotkey_mask) { in hotkey_mask_set()
2331 if (!tp_features.hotkey) { in tpacpi_hotkey_driver_mask_set()
2374 if (tp_features.hotkey_tablet && in tpacpi_input_send_tabletsw()
2573 && !tp_features.bright_unkfw) in hotkey_compare_and_issue_event()
2985 if (tp_features.hotkey_wlsw) in hotkey_radio_sw_notify_change()
3007 if (tp_features.hotkey_tablet) in hotkey_tablet_mode_notify_change()
3178 if (((tp_features.hotkey_mask && in hotkey_exit()
3236 tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_GMMS; in hotkey_init_tablet_mode()
3240 tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_MHKG; in hotkey_init_tablet_mode()
3245 if (!tp_features.hotkey_tablet) in hotkey_init_tablet_mode()
3499 tp_features.hotkey = hkey_handle != NULL; in hotkey_init()
3503 str_supported(tp_features.hotkey)); in hotkey_init()
3505 if (!tp_features.hotkey) in hotkey_init()
3549 tp_features.hotkey_mask = 1; in hotkey_init()
3566 tp_features.hotkey_mask = 1; in hotkey_init()
3576 tp_features.has_adaptive_kbd = true; in hotkey_init()
3584 tp_features.has_adaptive_kbd = false; in hotkey_init()
3599 str_supported(tp_features.hotkey_mask)); in hotkey_init()
3602 if (!tp_features.hotkey_mask && !hotkey_all_mask && in hotkey_init()
3607 if (tp_features.hotkey_mask) { in hotkey_init()
3622 tp_features.hotkey_wlsw = 1; in hotkey_init()
3629 tp_features.hotkey_wlsw = 1; in hotkey_init()
3634 if (tp_features.hotkey_wlsw) in hotkey_init()
3678 if (tp_features.hotkey_wlsw) { in hotkey_init()
3683 if (tp_features.hotkey_tablet) { in hotkey_init()
4190 if (tp_features.hotkey_wlsw && in hotkey_notify()
4224 if (tp_features.has_adaptive_kbd) { in hotkey_suspend()
4247 if (tp_features.has_adaptive_kbd) { in hotkey_resume()
4260 if (!tp_features.hotkey) { in hotkey_read()
4300 if (!tp_features.hotkey) in hotkey_write()
4566 tp_features.bluetooth = !have_bt_fwbug() && hkey_handle && in bluetooth_init()
4571 str_supported(tp_features.bluetooth), in bluetooth_init()
4576 tp_features.bluetooth = 1; in bluetooth_init()
4580 if (tp_features.bluetooth && in bluetooth_init()
4583 tp_features.bluetooth = 0; in bluetooth_init()
4588 if (!tp_features.bluetooth) in bluetooth_init()
4753 tp_features.wan = hkey_handle && in wan_init()
4758 str_supported(tp_features.wan), in wan_init()
4763 tp_features.wan = 1; in wan_init()
4767 if (tp_features.wan && in wan_init()
4770 tp_features.wan = 0; in wan_init()
4775 if (!tp_features.wan) in wan_init()
4893 tp_features.uwb = hkey_handle && in uwb_init()
4898 str_supported(tp_features.uwb), in uwb_init()
4903 tp_features.uwb = 1; in uwb_init()
4907 if (tp_features.uwb && in uwb_init()
4910 tp_features.uwb = 0; in uwb_init()
4915 if (!tp_features.uwb) in uwb_init()
5415 tp_features.kbdlight = 0; in kbdlight_init()
5421 tp_features.kbdlight = 1; in kbdlight_init()
5426 tp_features.kbdlight = 0; in kbdlight_init()
5437 if (tp_features.kbdlight) in kbdlight_exit()
5459 if (!tp_features.kbdlight) { in kbdlight_read()
5478 if (!tp_features.kbdlight) in kbdlight_write()
5502 if (!tp_features.kbdlight) in kbdlight_suspend()
5512 if (!tp_features.kbdlight) in kbdlight_resume()
5538 if (tp_features.light_status) { in light_get_status()
5551 if (tp_features.light) { in light_set_status()
5600 tp_features.light = (cmos_handle || lght_handle) && !ledb_handle; in light_init()
5602 if (tp_features.light) in light_init()
5605 tp_features.light_status = in light_init()
5609 str_supported(tp_features.light), in light_init()
5610 str_supported(tp_features.light_status)); in light_init()
5612 if (!tp_features.light) in light_init()
5619 tp_features.light = 0; in light_init()
5620 tp_features.light_status = 0; in light_init()
5637 if (!tp_features.light) { in light_read()
5639 } else if (!tp_features.light_status) { in light_read()
5658 if (!tp_features.light) in light_write()
6207 tp_features.beep_needs_two_args = !!(quirks & TPACPI_BEEP_Q1); in beep_init()
6238 if (tp_features.beep_needs_two_args) { in beep_write()
6897 tp_features.bright_acpimode = (bcl_levels > 0); in tpacpi_check_std_acpi_brightness_support()
6961 tp_features.bright_unkfw = 1; in tpacpi_detect_brightness_capabilities()
6983 if (tp_features.bright_unkfw) in brightness_init()
7000 } else if (tp_features.bright_acpimode && brightness_enable > 1) { in brightness_init()
7280 if (tp_features.mixer_no_level_control) in tpacpi_volume_checkpoint_nvram()
7456 if (tp_features.mixer_no_level_control) in volume_set_software_mute()
7651 if (!tp_features.mixer_no_level_control) { in volume_create_alsa_mixer()
7752 tp_features.mixer_no_level_control = 1; in volume_init()
7754 tp_features.mixer_no_level_control = 0; in volume_init()
7759 tp_features.mixer_no_level_control = 0; in volume_init()
7762 tp_features.mixer_no_level_control = 1; in volume_init()
7788 str_supported(!tp_features.mixer_no_level_control)); in volume_init()
7822 if (tp_features.mixer_no_level_control) in volume_read()
7833 if (!tp_features.mixer_no_level_control) { in volume_read()
7873 if (!tp_features.mixer_no_level_control) { in volume_write()
7900 if (tp_features.mixer_no_level_control) { in volume_write()
8143 tp_features.fan_ctrl_status_undef = 1; in fan_quirk1_setup()
8149 if (unlikely(tp_features.fan_ctrl_status_undef)) { in fan_quirk1_handle()
8154 tp_features.fan_ctrl_status_undef = 0; in fan_quirk1_handle()
8166 if (tp_features.second_fan) { in fan_select_fan1()
8183 if (!tp_features.second_fan) in fan_select_fan2()
8352 tp_features.fan_ctrl_status_undef = 0; in fan_set_level()
8412 tp_features.fan_ctrl_status_undef = 0; in fan_set_enable()
8464 tp_features.fan_ctrl_status_undef = 0; in fan_set_disable()
8790 tp_features.fan_ctrl_status_undef = 0; in fan_init()
8791 tp_features.second_fan = 0; in fan_init()
8815 tp_features.second_fan = 1; in fan_init()
8872 if (tp_features.second_fan) { in fan_init()
8924 if (tp_features.fan_ctrl_status_undef) in fan_suspend()
8935 tp_features.fan_ctrl_status_undef = 0; in fan_resume()
9504 tp_features.battery_force_primary) in tpacpi_battery_get_id()
9696 tp_features.battery_force_primary = tpacpi_check_quirks( in tpacpi_battery_init()
9844 if (tp_features.kbdlight && hkey_event == TP_HKEY_EV_KBD_LIGHT) { in tpacpi_driver_event()
10435 if (tp_features.input_device_registered) in thinkpad_acpi_module_exit()
10450 if (tp_features.sensors_pdrv_attrs_registered) in thinkpad_acpi_module_exit()
10452 if (tp_features.platform_drv_attrs_registered) in thinkpad_acpi_module_exit()
10455 if (tp_features.sensors_pdrv_registered) in thinkpad_acpi_module_exit()
10458 if (tp_features.platform_drv_registered) in thinkpad_acpi_module_exit()
10521 tp_features.platform_drv_registered = 1; in thinkpad_acpi_module_init()
10529 tp_features.sensors_pdrv_registered = 1; in thinkpad_acpi_module_init()
10533 tp_features.platform_drv_attrs_registered = 1; in thinkpad_acpi_module_init()
10542 tp_features.sensors_pdrv_attrs_registered = 1; in thinkpad_acpi_module_init()
10565 tp_features.sensors_pdev_attrs_registered = 1; in thinkpad_acpi_module_init()
10614 tp_features.input_device_registered = 1; in thinkpad_acpi_module_init()