Lines Matching refs:asc
182 struct apple_sc *asc = hid_get_drvdata(hid); in hidinput_apple_event() local
188 asc->fn_on = !!value; in hidinput_apple_event()
214 do_translate = !asc->fn_on; in hidinput_apple_event()
217 do_translate = asc->fn_on; in hidinput_apple_event()
224 do_translate = asc->fn_on; in hidinput_apple_event()
234 if (asc->quirks & APPLE_NUMLOCK_EMULATION && in hidinput_apple_event()
235 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
243 asc->pressed_numlock); in hidinput_apple_event()
246 asc->pressed_numlock); in hidinput_apple_event()
257 if (asc->quirks & APPLE_ISO_KEYBOARD) { in hidinput_apple_event()
280 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_event() local
286 if ((asc->quirks & APPLE_INVERT_HWHEEL) && in apple_event()
293 if ((asc->quirks & APPLE_HAS_FN) && in apple_event()
309 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_report_fixup() local
317 if ((asc->quirks & APPLE_RDESC_JIS) && *rsize >= 60 && in apple_report_fixup()
366 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapped() local
368 if (asc->quirks & APPLE_MIGHTYMOUSE) { in apple_input_mapped()
384 struct apple_sc *asc; in apple_probe() local
388 asc = devm_kzalloc(&hdev->dev, sizeof(*asc), GFP_KERNEL); in apple_probe()
389 if (asc == NULL) { in apple_probe()
394 asc->quirks = quirks; in apple_probe()
396 hid_set_drvdata(hdev, asc); in apple_probe()