Lines Matching refs:tp_features

355 } tp_features;  variable
1937 if (!tp_features.hotkey_wlsw) in hotkey_get_wlsw()
2038 switch (tp_features.hotkey_tablet) { in hotkey_get_tablet_mode()
2068 if (tp_features.hotkey_mask) { in hotkey_mask_get()
2113 if (tp_features.hotkey_mask) { in hotkey_mask_set()
2182 if (!tp_features.hotkey) { in tpacpi_hotkey_driver_mask_set()
2225 if (tp_features.hotkey_tablet && in tpacpi_input_send_tabletsw()
2424 && !tp_features.bright_unkfw) in hotkey_compare_and_issue_event()
2839 if (tp_features.hotkey_wlsw) in hotkey_radio_sw_notify_change()
2861 if (tp_features.hotkey_tablet) in hotkey_tablet_mode_notify_change()
2949 return tp_features.has_adaptive_kbd ? attr->mode : 0; in hadaptive_kbd_attr_is_visible()
2982 if (!tp_features.hotkey_tablet) in hotkey_attr_is_visible()
2985 if (!tp_features.hotkey_wlsw) in hotkey_attr_is_visible()
3053 if (((tp_features.hotkey_mask && in hotkey_exit()
3120 tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_GMMS; in hotkey_init_tablet_mode()
3124 tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_MHKG; in hotkey_init_tablet_mode()
3129 if (!tp_features.hotkey_tablet) in hotkey_init_tablet_mode()
3382 tp_features.hotkey = hkey_handle != NULL; in hotkey_init()
3386 str_supported(tp_features.hotkey)); in hotkey_init()
3388 if (!tp_features.hotkey) in hotkey_init()
3419 tp_features.hotkey_mask = 1; in hotkey_init()
3436 tp_features.hotkey_mask = 1; in hotkey_init()
3446 tp_features.has_adaptive_kbd = true; in hotkey_init()
3448 tp_features.has_adaptive_kbd = false; in hotkey_init()
3463 str_supported(tp_features.hotkey_mask)); in hotkey_init()
3466 if (!tp_features.hotkey_mask && !hotkey_all_mask && in hotkey_init()
3471 if (tp_features.hotkey_mask) { in hotkey_init()
3488 tp_features.hotkey_wlsw = 1; in hotkey_init()
3495 tp_features.hotkey_wlsw = 1; in hotkey_init()
3530 if (tp_features.hotkey_wlsw) { in hotkey_init()
3535 if (tp_features.hotkey_tablet) { in hotkey_init()
4074 if (tp_features.hotkey_wlsw && in hotkey_notify()
4108 if (tp_features.has_adaptive_kbd) { in hotkey_suspend()
4134 if (tp_features.has_adaptive_kbd) { in hotkey_resume()
4147 if (!tp_features.hotkey) { in hotkey_read()
4187 if (!tp_features.hotkey) in hotkey_write()
4345 return tp_features.bluetooth ? attr->mode : 0; in bluetooth_attr_is_visible()
4441 if (tp_features.quirks && tp_features.quirks->btusb_bug && in have_bt_fwbug()
4462 tp_features.bluetooth = !have_bt_fwbug() && hkey_handle && in bluetooth_init()
4467 str_supported(tp_features.bluetooth), in bluetooth_init()
4472 tp_features.bluetooth = 1; in bluetooth_init()
4476 if (tp_features.bluetooth && in bluetooth_init()
4479 tp_features.bluetooth = 0; in bluetooth_init()
4484 if (!tp_features.bluetooth) in bluetooth_init()
4601 return tp_features.wan ? attr->mode : 0; in wan_attr_is_visible()
4641 tp_features.wan = hkey_handle && in wan_init()
4646 str_supported(tp_features.wan), in wan_init()
4651 tp_features.wan = 1; in wan_init()
4655 if (tp_features.wan && in wan_init()
4658 tp_features.wan = 0; in wan_init()
4663 if (!tp_features.wan) in wan_init()
4769 tp_features.uwb = hkey_handle && in uwb_init()
4774 str_supported(tp_features.uwb), in uwb_init()
4779 tp_features.uwb = 1; in uwb_init()
4783 if (tp_features.uwb && in uwb_init()
4786 tp_features.uwb = 0; in uwb_init()
4791 if (!tp_features.uwb) in uwb_init()
5291 tp_features.kbdlight = 0; in kbdlight_init()
5297 tp_features.kbdlight = 1; in kbdlight_init()
5302 tp_features.kbdlight = 0; in kbdlight_init()
5334 if (!tp_features.kbdlight) { in kbdlight_read()
5353 if (!tp_features.kbdlight) in kbdlight_write()
5372 if (!tp_features.kbdlight) in kbdlight_suspend()
5382 if (!tp_features.kbdlight) in kbdlight_resume()
5408 if (tp_features.light_status) { in light_get_status()
5421 if (tp_features.light) { in light_set_status()
5471 tp_features.light = (cmos_handle || lght_handle) && !ledb_handle; in light_init()
5473 if (tp_features.light) in light_init()
5476 tp_features.light_status = in light_init()
5480 str_supported(tp_features.light), in light_init()
5481 str_supported(tp_features.light_status)); in light_init()
5483 if (!tp_features.light) in light_init()
5490 tp_features.light = 0; in light_init()
5491 tp_features.light_status = 0; in light_init()
5508 if (!tp_features.light) { in light_read()
5510 } else if (!tp_features.light_status) { in light_read()
5529 if (!tp_features.light) in light_write()
6070 tp_features.beep_needs_two_args = !!(quirks & TPACPI_BEEP_Q1); in beep_init()
6101 if (tp_features.beep_needs_two_args) { in beep_write()
6783 tp_features.bright_acpimode = (bcl_levels > 0); in tpacpi_check_std_acpi_brightness_support()
6847 tp_features.bright_unkfw = 1; in tpacpi_detect_brightness_capabilities()
6869 if (tp_features.bright_unkfw) in brightness_init()
6886 } else if (!tp_features.bright_acpimode) { in brightness_init()
7169 if (tp_features.mixer_no_level_control) in tpacpi_volume_checkpoint_nvram()
7345 if (tp_features.mixer_no_level_control) in volume_set_software_mute()
7540 if (!tp_features.mixer_no_level_control) { in volume_create_alsa_mixer()
7641 tp_features.mixer_no_level_control = 1; in volume_init()
7643 tp_features.mixer_no_level_control = 0; in volume_init()
7648 tp_features.mixer_no_level_control = 0; in volume_init()
7651 tp_features.mixer_no_level_control = 1; in volume_init()
7677 str_supported(!tp_features.mixer_no_level_control)); in volume_init()
7711 if (tp_features.mixer_no_level_control) in volume_read()
7721 if (!tp_features.mixer_no_level_control) { in volume_read()
7761 if (!tp_features.mixer_no_level_control) { in volume_write()
7788 if (tp_features.mixer_no_level_control) { in volume_write()
8050 tp_features.fan_ctrl_status_undef = 1; in fan_quirk1_setup()
8056 if (unlikely(tp_features.fan_ctrl_status_undef)) { in fan_quirk1_handle()
8061 tp_features.fan_ctrl_status_undef = 0; in fan_quirk1_handle()
8073 if (tp_features.second_fan) { in fan_select_fan1()
8090 if (!tp_features.second_fan) in fan_select_fan2()
8267 if (tp_features.second_fan_ctl) { in fan_set_level()
8271 tp_features.second_fan_ctl = 0; in fan_set_level()
8293 if (tp_features.second_fan_ctl) { in fan_set_level()
8297 tp_features.second_fan_ctl = 0; in fan_set_level()
8305 tp_features.fan_ctrl_status_undef = 0; in fan_set_level()
8365 tp_features.fan_ctrl_status_undef = 0; in fan_set_enable()
8417 tp_features.fan_ctrl_status_undef = 0; in fan_set_disable()
8724 if (!tp_features.second_fan) in fan_attr_is_visible()
8786 tp_features.fan_ctrl_status_undef = 0; in fan_init()
8787 tp_features.second_fan = 0; in fan_init()
8788 tp_features.second_fan_ctl = 0; in fan_init()
8809 tp_features.fan_ctrl_status_undef = 1; in fan_init()
8829 tp_features.second_fan = 1; /* needed for get_speed to work */ in fan_init()
8833 tp_features.second_fan = 1; in fan_init()
8835 tp_features.second_fan_ctl = !fan_with_ns_addr; in fan_init()
8839 tp_features.second_fan = 0; in fan_init()
8841 tp_features.second_fan = 1; in fan_init()
8845 tp_features.second_fan = 1; in fan_init()
8846 tp_features.second_fan_ctl = 1; in fan_init()
8933 if (tp_features.fan_ctrl_status_undef) in fan_suspend()
8944 tp_features.fan_ctrl_status_undef = 0; in fan_resume()
9615 tp_features.battery_force_primary) in tpacpi_battery_get_id()
9905 tp_features.battery_force_primary = tpacpi_check_quirks( in tpacpi_battery_init()
10744 return tp_features.kbd_lang ? attr->mode : 0; in kbdlang_attr_is_visible()
10757 tp_features.kbd_lang = !err; in tpacpi_kbdlang_init()
10992 if (tp_features.kbdlight && hkey_event == TP_HKEY_EV_KBD_LIGHT) { in tpacpi_driver_event()
11622 if (tp_features.sensors_pdrv_registered) in thinkpad_acpi_module_exit()
11624 if (tp_features.platform_drv_registered) in thinkpad_acpi_module_exit()
11636 if (tp_features.input_device_registered) in thinkpad_acpi_module_exit()
11719 tp_features.quirks = dmi_id->driver_data; in thinkpad_acpi_module_init()
11780 tp_features.platform_drv_registered = 1; in thinkpad_acpi_module_init()
11788 tp_features.sensors_pdrv_registered = 1; in thinkpad_acpi_module_init()
11806 tp_features.input_device_registered = 1; in thinkpad_acpi_module_init()