Lines Matching +full:0 +full:x411
54 #define FUJITSU_DRIVER_VERSION "0.6.0"
66 #define ACPI_FUJITSU_NOTIFY_CODE 0x80
70 #define FUNC_LEDS (BIT(12) | BIT(0))
75 #define UNSUPPORTED_CMD 0x80000000
86 #define FUNC_LED_OFF BIT(0)
87 #define FUNC_LED_ON (BIT(0) | BIT(16) | BIT(17))
97 #define BACKLIGHT_OFF (BIT(0) | BIT(1))
98 #define BACKLIGHT_ON 0
101 #define KEY1_CODE 0x410
102 #define KEY2_CODE 0x411
103 #define KEY3_CODE 0x412
104 #define KEY4_CODE 0x413
105 #define KEY5_CODE 0x420
162 "FUNC 0x%x (args 0x%x, 0x%x, 0x%x) returned 0x%x\n", in call_fext_func()
193 if (level < 0 || level >= priv->max_brightness) in set_lcd_level()
205 return 0; in set_lcd_level()
211 unsigned long long state = 0; in get_lcd_level()
218 return 0; in get_lcd_level()
220 priv->brightness_level = state & 0x0fffffff; in get_lcd_level()
228 unsigned long long state = 0; in get_max_brightness()
248 return b->props.power == FB_BLANK_POWERDOWN ? 0 : get_lcd_level(device); in bl_get_brightness()
257 call_fext_func(fext, FUNC_BACKLIGHT, 0x1, in bl_update_status()
260 call_fext_func(fext, FUNC_BACKLIGHT, 0x1, in bl_update_status()
337 { KE_END, 0 }
355 priv->input->id.product = 0x06; in acpi_fujitsu_bl_input_setup()
382 return 0; in fujitsu_backlight_register()
405 if (get_max_brightness(device) <= 0) in acpi_fujitsu_bl_add()
424 acpi_handle_info(device->handle, "unsupported event [0x%x]\n", in acpi_fujitsu_bl_notify()
458 { KE_END, 0 }
466 { KE_END, 0 }
474 { KE_END, 0 }
561 return 0; in fujitsu_laptop_platform_add()
593 ret = call_fext_func(device, FUNC_LEDS, 0x1, LOGOLAMP_POWERON, poweron); in logolamp_set()
594 if (ret < 0) in logolamp_set()
597 return call_fext_func(device, FUNC_LEDS, 0x1, LOGOLAMP_ALWAYS, always); in logolamp_set()
605 ret = call_fext_func(device, FUNC_LEDS, 0x2, LOGOLAMP_ALWAYS, 0x0); in logolamp_get()
609 ret = call_fext_func(device, FUNC_LEDS, 0x2, LOGOLAMP_POWERON, 0x0); in logolamp_get()
622 return call_fext_func(device, FUNC_LEDS, 0x1, KEYBOARD_LAMPS, in kblamps_set()
625 return call_fext_func(device, FUNC_LEDS, 0x1, KEYBOARD_LAMPS, in kblamps_set()
635 FUNC_LEDS, 0x2, KEYBOARD_LAMPS, 0x0) == FUNC_LED_ON) in kblamps_get()
647 return call_fext_func(device, FUNC_FLAGS, 0x5, RADIO_LED_ON, in radio_led_set()
650 return call_fext_func(device, FUNC_FLAGS, 0x5, RADIO_LED_ON, in radio_led_set()
651 0x0); in radio_led_set()
659 if (call_fext_func(device, FUNC_FLAGS, 0x4, 0x0, 0x0) & RADIO_LED_ON) in radio_led_get()
671 curr = call_fext_func(device, FUNC_LEDS, 0x2, ECO_LED, 0x0); in eco_led_set()
673 return call_fext_func(device, FUNC_LEDS, 0x1, ECO_LED, in eco_led_set()
676 return call_fext_func(device, FUNC_LEDS, 0x1, ECO_LED, in eco_led_set()
685 if (call_fext_func(device, FUNC_LEDS, 0x2, ECO_LED, 0x0) & ECO_LED_ON) in eco_led_get()
698 FUNC_LEDS, 0x0, 0x0, 0x0) & LOGOLAMP_POWERON) { in acpi_fujitsu_laptop_leds_register()
712 FUNC_LEDS, 0x0, 0x0, 0x0) & KEYBOARD_LAMPS) && in acpi_fujitsu_laptop_leds_register()
713 (call_fext_func(device, FUNC_BUTTONS, 0x0, 0x0, 0x0) == 0x0)) { in acpi_fujitsu_laptop_leds_register()
754 if ((call_fext_func(device, FUNC_LEDS, 0x0, 0x0, 0x0) & BIT(14)) && in acpi_fujitsu_laptop_leds_register()
756 FUNC_LEDS, 0x2, ECO_LED, 0x0) != UNSUPPORTED_CMD)) { in acpi_fujitsu_laptop_leds_register()
769 return 0; in acpi_fujitsu_laptop_leds_register()
775 int ret, i = 0; in acpi_fujitsu_laptop_add()
798 while (call_fext_func(device, FUNC_BUTTONS, 0x1, 0x0, 0x0) != 0 && in acpi_fujitsu_laptop_add()
804 priv->flags_supported = call_fext_func(device, FUNC_FLAGS, 0x0, 0x0, in acpi_fujitsu_laptop_add()
805 0x0); in acpi_fujitsu_laptop_add()
810 priv->flags_supported = 0; in acpi_fujitsu_laptop_add()
813 priv->flags_state = call_fext_func(device, FUNC_FLAGS, 0x4, 0x0, in acpi_fujitsu_laptop_add()
814 0x0); in acpi_fujitsu_laptop_add()
817 acpi_handle_info(device->handle, "BTNI: [0x%x]\n", in acpi_fujitsu_laptop_add()
818 call_fext_func(device, FUNC_BUTTONS, 0x0, 0x0, 0x0)); in acpi_fujitsu_laptop_add()
823 if (call_fext_func(fext, FUNC_BACKLIGHT, 0x2, in acpi_fujitsu_laptop_add()
824 BACKLIGHT_PARAM_POWER, 0x0) == BACKLIGHT_OFF) in acpi_fujitsu_laptop_add()
842 return 0; in acpi_fujitsu_laptop_add()
867 dev_info(&priv->input->dev, "Could not push scancode [0x%x]\n", in acpi_fujitsu_laptop_press()
872 dev_dbg(&priv->input->dev, "Push scancode into ringbuffer [0x%x]\n", in acpi_fujitsu_laptop_press()
886 sparse_keymap_report_event(priv->input, scancode, 0, false); in acpi_fujitsu_laptop_release()
888 "Pop scancode from ringbuffer [0x%x]\n", scancode); in acpi_fujitsu_laptop_release()
896 int scancode, i = 0; in acpi_fujitsu_laptop_notify()
900 acpi_handle_info(device->handle, "Unsupported event [0x%x]\n", in acpi_fujitsu_laptop_notify()
907 priv->flags_state = call_fext_func(device, FUNC_FLAGS, 0x4, 0x0, in acpi_fujitsu_laptop_notify()
908 0x0); in acpi_fujitsu_laptop_notify()
911 FUNC_BUTTONS, 0x1, 0x0, 0x0)) != 0 && in acpi_fujitsu_laptop_notify()
913 scancode = irb & 0x4ff; in acpi_fujitsu_laptop_notify()
916 else if (scancode == 0) in acpi_fujitsu_laptop_notify()
930 flags = call_fext_func(device, FUNC_FLAGS, 0x1, 0x0, 0x0); in acpi_fujitsu_laptop_notify()
940 {ACPI_FUJITSU_BL_HID, 0},
941 {"", 0},
955 {ACPI_FUJITSU_LAPTOP_HID, 0},
956 {"", 0},
971 {ACPI_FUJITSU_BL_HID, 0},
972 {ACPI_FUJITSU_LAPTOP_HID, 0},
973 {"", 0}
999 return 0; in fujitsu_init()
1024 MODULE_PARM_DESC(use_alt_lcd_levels, "Interface used for setting LCD brightness level (-1 = auto, 0…