Lines Matching refs:asc
202 struct apple_sc *asc = hid_get_drvdata(hid); in hidinput_apple_event() local
210 asc->fn_on = !!value; in hidinput_apple_event()
237 do_translate = !asc->fn_on; in hidinput_apple_event()
240 do_translate = asc->fn_on; in hidinput_apple_event()
247 do_translate = asc->fn_on; in hidinput_apple_event()
258 if (asc->quirks & APPLE_NUMLOCK_EMULATION && in hidinput_apple_event()
259 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
267 asc->pressed_numlock); in hidinput_apple_event()
270 asc->pressed_numlock); in hidinput_apple_event()
280 if (iso_layout > 0 || (iso_layout < 0 && (asc->quirks & APPLE_ISO_TILDE_QUIRK) && in hidinput_apple_event()
314 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_event() local
320 if ((asc->quirks & APPLE_INVERT_HWHEEL) && in apple_event()
327 if ((asc->quirks & APPLE_HAS_FN) && in apple_event()
343 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_report_fixup() local
351 if ((asc->quirks & APPLE_RDESC_JIS) && *rsize >= 60 && in apple_report_fixup()
389 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapping() local
397 asc->fn_found = true; in apple_input_mapping()
410 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapped() local
412 if (asc->quirks & APPLE_MIGHTYMOUSE) { in apple_input_mapped()
427 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_configured() local
429 if ((asc->quirks & APPLE_HAS_FN) && !asc->fn_found) { in apple_input_configured()
431 asc->quirks = 0; in apple_input_configured()
441 struct apple_sc *asc; in apple_probe() local
444 asc = devm_kzalloc(&hdev->dev, sizeof(*asc), GFP_KERNEL); in apple_probe()
445 if (asc == NULL) { in apple_probe()
450 asc->quirks = quirks; in apple_probe()
452 hid_set_drvdata(hdev, asc); in apple_probe()