Lines Matching +full:0 +full:x411
55 #define FUJITSU_DRIVER_VERSION "0.6.0"
67 #define ACPI_FUJITSU_NOTIFY_CODE 0x80
71 #define FUNC_LEDS (BIT(12) | BIT(0))
76 #define UNSUPPORTED_CMD 0x80000000
87 #define FUNC_LED_OFF BIT(0)
88 #define FUNC_LED_ON (BIT(0) | BIT(16) | BIT(17))
98 #define BACKLIGHT_OFF (BIT(0) | BIT(1))
99 #define BACKLIGHT_ON 0
102 #define FUNC_S006_METHOD 0x1006
103 #define CHARGE_CONTROL_RW 0x21
106 #define KEY1_CODE 0x410
107 #define KEY2_CODE 0x411
108 #define KEY3_CODE 0x412
109 #define KEY4_CODE 0x413
110 #define KEY5_CODE 0x420
168 "FUNC 0x%x (args 0x%x, 0x%x, 0x%x) returned 0x%x\n", in call_fext_func()
188 cc_end_value = value * 0x100 + 0x20; in charge_control_end_threshold_store()
190 CHARGE_CONTROL_RW, cc_end_value, 0x0); in charge_control_end_threshold_store()
191 if (s006_cc_return < 0) in charge_control_end_threshold_store()
194 * The S006 0x21 method returns 0x00 in case the provided value in charge_control_end_threshold_store()
197 if (s006_cc_return == 0x00) in charge_control_end_threshold_store()
210 CHARGE_CONTROL_RW, 0x21, 0x0); in charge_control_end_threshold_show()
211 if (status < 0) in charge_control_end_threshold_show()
233 return 0; in fujitsu_battery_remove_hook()
253 * Check if the S006 0x21 method exists by trying to get the current in fujitsu_battery_charge_control_add()
257 CHARGE_CONTROL_RW, 0x21, 0x0); in fujitsu_battery_charge_control_add()
258 if (s006_cc_return < 0) in fujitsu_battery_charge_control_add()
266 return 0; in fujitsu_battery_charge_control_add()
303 if (level < 0 || level >= priv->max_brightness) in set_lcd_level()
315 return 0; in set_lcd_level()
321 unsigned long long state = 0; in get_lcd_level()
328 return 0; in get_lcd_level()
330 priv->brightness_level = state & 0x0fffffff; in get_lcd_level()
338 unsigned long long state = 0; in get_max_brightness()
358 return b->props.power == BACKLIGHT_POWER_OFF ? 0 : get_lcd_level(device); in bl_get_brightness()
367 call_fext_func(fext, FUNC_BACKLIGHT, 0x1, in bl_update_status()
370 call_fext_func(fext, FUNC_BACKLIGHT, 0x1, in bl_update_status()
447 { KE_END, 0 }
465 priv->input->id.product = 0x06; in acpi_fujitsu_bl_input_setup()
492 return 0; in fujitsu_backlight_register()
515 if (get_max_brightness(device) <= 0) in acpi_fujitsu_bl_add()
534 acpi_handle_info(device->handle, "unsupported event [0x%x]\n", in acpi_fujitsu_bl_notify()
568 { KE_END, 0 }
576 { KE_END, 0 }
584 { KE_END, 0 }
671 return 0; in fujitsu_laptop_platform_add()
703 ret = call_fext_func(device, FUNC_LEDS, 0x1, LOGOLAMP_POWERON, poweron); in logolamp_set()
704 if (ret < 0) in logolamp_set()
707 return call_fext_func(device, FUNC_LEDS, 0x1, LOGOLAMP_ALWAYS, always); in logolamp_set()
715 ret = call_fext_func(device, FUNC_LEDS, 0x2, LOGOLAMP_ALWAYS, 0x0); in logolamp_get()
719 ret = call_fext_func(device, FUNC_LEDS, 0x2, LOGOLAMP_POWERON, 0x0); in logolamp_get()
732 return call_fext_func(device, FUNC_LEDS, 0x1, KEYBOARD_LAMPS, in kblamps_set()
735 return call_fext_func(device, FUNC_LEDS, 0x1, KEYBOARD_LAMPS, in kblamps_set()
745 FUNC_LEDS, 0x2, KEYBOARD_LAMPS, 0x0) == FUNC_LED_ON) in kblamps_get()
757 return call_fext_func(device, FUNC_FLAGS, 0x5, RADIO_LED_ON, in radio_led_set()
760 return call_fext_func(device, FUNC_FLAGS, 0x5, RADIO_LED_ON, in radio_led_set()
761 0x0); in radio_led_set()
769 if (call_fext_func(device, FUNC_FLAGS, 0x4, 0x0, 0x0) & RADIO_LED_ON) in radio_led_get()
781 curr = call_fext_func(device, FUNC_LEDS, 0x2, ECO_LED, 0x0); in eco_led_set()
783 return call_fext_func(device, FUNC_LEDS, 0x1, ECO_LED, in eco_led_set()
786 return call_fext_func(device, FUNC_LEDS, 0x1, ECO_LED, in eco_led_set()
795 if (call_fext_func(device, FUNC_LEDS, 0x2, ECO_LED, 0x0) & ECO_LED_ON) in eco_led_get()
808 FUNC_LEDS, 0x0, 0x0, 0x0) & LOGOLAMP_POWERON) { in acpi_fujitsu_laptop_leds_register()
822 FUNC_LEDS, 0x0, 0x0, 0x0) & KEYBOARD_LAMPS) && in acpi_fujitsu_laptop_leds_register()
823 (call_fext_func(device, FUNC_BUTTONS, 0x0, 0x0, 0x0) == 0x0)) { in acpi_fujitsu_laptop_leds_register()
864 if ((call_fext_func(device, FUNC_LEDS, 0x0, 0x0, 0x0) & BIT(14)) && in acpi_fujitsu_laptop_leds_register()
866 FUNC_LEDS, 0x2, ECO_LED, 0x0) != UNSUPPORTED_CMD)) { in acpi_fujitsu_laptop_leds_register()
879 return 0; in acpi_fujitsu_laptop_leds_register()
885 int ret, i = 0; in acpi_fujitsu_laptop_add()
908 while (call_fext_func(device, FUNC_BUTTONS, 0x1, 0x0, 0x0) != 0 && in acpi_fujitsu_laptop_add()
914 priv->flags_supported = call_fext_func(device, FUNC_FLAGS, 0x0, 0x0, in acpi_fujitsu_laptop_add()
915 0x0); in acpi_fujitsu_laptop_add()
920 priv->flags_supported = 0; in acpi_fujitsu_laptop_add()
923 priv->flags_state = call_fext_func(device, FUNC_FLAGS, 0x4, 0x0, in acpi_fujitsu_laptop_add()
924 0x0); in acpi_fujitsu_laptop_add()
927 acpi_handle_info(device->handle, "BTNI: [0x%x]\n", in acpi_fujitsu_laptop_add()
928 call_fext_func(device, FUNC_BUTTONS, 0x0, 0x0, 0x0)); in acpi_fujitsu_laptop_add()
933 if (call_fext_func(fext, FUNC_BACKLIGHT, 0x2, in acpi_fujitsu_laptop_add()
934 BACKLIGHT_PARAM_POWER, 0x0) == BACKLIGHT_OFF) in acpi_fujitsu_laptop_add()
953 if (ret < 0) in acpi_fujitsu_laptop_add()
956 return 0; in acpi_fujitsu_laptop_add()
983 dev_info(&priv->input->dev, "Could not push scancode [0x%x]\n", in acpi_fujitsu_laptop_press()
988 dev_dbg(&priv->input->dev, "Push scancode into ringbuffer [0x%x]\n", in acpi_fujitsu_laptop_press()
1002 sparse_keymap_report_event(priv->input, scancode, 0, false); in acpi_fujitsu_laptop_release()
1004 "Pop scancode from ringbuffer [0x%x]\n", scancode); in acpi_fujitsu_laptop_release()
1012 int scancode, i = 0; in acpi_fujitsu_laptop_notify()
1016 acpi_handle_info(device->handle, "Unsupported event [0x%x]\n", in acpi_fujitsu_laptop_notify()
1023 priv->flags_state = call_fext_func(device, FUNC_FLAGS, 0x4, 0x0, in acpi_fujitsu_laptop_notify()
1024 0x0); in acpi_fujitsu_laptop_notify()
1027 FUNC_BUTTONS, 0x1, 0x0, 0x0)) != 0 && in acpi_fujitsu_laptop_notify()
1029 scancode = irb & 0x4ff; in acpi_fujitsu_laptop_notify()
1032 else if (scancode == 0) in acpi_fujitsu_laptop_notify()
1046 flags = call_fext_func(device, FUNC_FLAGS, 0x1, 0x0, 0x0); in acpi_fujitsu_laptop_notify()
1056 {ACPI_FUJITSU_BL_HID, 0},
1057 {"", 0},
1071 {ACPI_FUJITSU_LAPTOP_HID, 0},
1072 {"", 0},
1087 {ACPI_FUJITSU_BL_HID, 0},
1088 {ACPI_FUJITSU_LAPTOP_HID, 0},
1089 {"", 0}
1115 return 0; in fujitsu_init()
1140 MODULE_PARM_DESC(use_alt_lcd_levels, "Interface used for setting LCD brightness level (-1 = auto, 0…