• Home
  • Raw
  • Download

Lines Matching refs:asc

224 	struct apple_sc *asc = hid_get_drvdata(hid);  in hidinput_apple_event()  local
232 asc->fn_on = !!value; in hidinput_apple_event()
261 do_translate = !asc->fn_on; in hidinput_apple_event()
264 do_translate = asc->fn_on; in hidinput_apple_event()
271 do_translate = asc->fn_on; in hidinput_apple_event()
282 if (asc->quirks & APPLE_NUMLOCK_EMULATION && in hidinput_apple_event()
283 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
291 asc->pressed_numlock); in hidinput_apple_event()
294 asc->pressed_numlock); in hidinput_apple_event()
339 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_event() local
345 if ((asc->quirks & APPLE_INVERT_HWHEEL) && in apple_event()
352 if ((asc->quirks & APPLE_HAS_FN) && in apple_event()
368 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_report_fixup() local
376 if ((asc->quirks & APPLE_RDESC_JIS) && *rsize >= 60 && in apple_report_fixup()
417 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapping() local
425 asc->fn_found = true; in apple_input_mapping()
438 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapped() local
440 if (asc->quirks & APPLE_MIGHTYMOUSE) { in apple_input_mapped()
455 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_configured() local
457 if ((asc->quirks & APPLE_HAS_FN) && !asc->fn_found) { in apple_input_configured()
459 asc->quirks &= ~APPLE_HAS_FN; in apple_input_configured()
469 struct apple_sc *asc; in apple_probe() local
473 asc = devm_kzalloc(&hdev->dev, sizeof(*asc), GFP_KERNEL); in apple_probe()
474 if (asc == NULL) { in apple_probe()
479 asc->quirks = quirks; in apple_probe()
481 hid_set_drvdata(hdev, asc); in apple_probe()