• Home
  • Raw
  • Download

Lines Matching full:asc

406 	struct apple_sc *asc = hid_get_drvdata(hid);  in hidinput_apple_event()  local
413 real_fnmode = (asc->quirks & APPLE_IS_NON_APPLE) ? 2 : 1; in hidinput_apple_event()
425 if (iso_layout > 0 || (iso_layout < 0 && (asc->quirks & APPLE_ISO_TILDE_QUIRK) && in hidinput_apple_event()
451 asc->fn_on = !!value; in hidinput_apple_event()
506 do_translate = !asc->fn_on; in hidinput_apple_event()
509 do_translate = asc->fn_on; in hidinput_apple_event()
516 do_translate = asc->fn_on; in hidinput_apple_event()
524 if (asc->quirks & APPLE_NUMLOCK_EMULATION && in hidinput_apple_event()
525 (test_bit(code, asc->pressed_numlock) || in hidinput_apple_event()
531 set_bit(code, asc->pressed_numlock); in hidinput_apple_event()
533 clear_bit(code, asc->pressed_numlock); in hidinput_apple_event()
552 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_event() local
558 if ((asc->quirks & APPLE_INVERT_HWHEEL) && in apple_event()
565 if ((asc->quirks & APPLE_HAS_FN) && in apple_event()
577 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_fetch_battery() local
581 if (!(asc->quirks & APPLE_RDESC_BATTERY) || !hdev->battery) in apple_fetch_battery()
602 struct apple_sc *asc = from_timer(asc, t, battery_timer); in apple_battery_timer_tick() local
603 struct hid_device *hdev = asc->hdev; in apple_battery_timer_tick()
606 mod_timer(&asc->battery_timer, in apple_battery_timer_tick()
618 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_report_fixup() local
626 if ((asc->quirks & APPLE_RDESC_JIS) && *rsize >= 60 && in apple_report_fixup()
641 if ((asc->quirks & APPLE_RDESC_BATTERY) && *rsize == 83 && in apple_report_fixup()
679 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapping() local
687 asc->fn_found = true; in apple_input_mapping()
700 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapped() local
702 if (asc->quirks & APPLE_MIGHTYMOUSE) { in apple_input_mapped()
717 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_configured() local
719 if (((asc->quirks & APPLE_HAS_FN) && !asc->fn_found) || apple_is_omoton_kb066(hdev)) { in apple_input_configured()
721 asc->quirks &= ~APPLE_HAS_FN; in apple_input_configured()
726 asc->quirks |= APPLE_IS_NON_APPLE; in apple_input_configured()
782 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_backlight_init() local
807 asc->backlight = devm_kzalloc(&hdev->dev, sizeof(*asc->backlight), GFP_KERNEL); in apple_backlight_init()
808 if (!asc->backlight) { in apple_backlight_init()
813 asc->backlight->hdev = hdev; in apple_backlight_init()
814 asc->backlight->cdev.name = "apple::kbd_backlight"; in apple_backlight_init()
815 asc->backlight->cdev.max_brightness = rep->backlight_on_max; in apple_backlight_init()
816 asc->backlight->cdev.brightness_set_blocking = apple_backlight_led_set; in apple_backlight_init()
824 ret = devm_led_classdev_register(&hdev->dev, &asc->backlight->cdev); in apple_backlight_init()
835 struct apple_sc *asc; in apple_probe() local
838 asc = devm_kzalloc(&hdev->dev, sizeof(*asc), GFP_KERNEL); in apple_probe()
839 if (asc == NULL) { in apple_probe()
844 asc->hdev = hdev; in apple_probe()
845 asc->quirks = quirks; in apple_probe()
847 hid_set_drvdata(hdev, asc); in apple_probe()
861 timer_setup(&asc->battery_timer, apple_battery_timer_tick, 0); in apple_probe()
862 mod_timer(&asc->battery_timer, in apple_probe()
874 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_remove() local
876 del_timer_sync(&asc->battery_timer); in apple_remove()