Lines Matching refs:a4
39 struct a4tech_sc *a4 = hid_get_drvdata(hdev); in a4_input_mapped() local
44 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) in a4_input_mapped()
53 struct a4tech_sc *a4 = hid_get_drvdata(hdev); in a4_event() local
62 if (a4->quirks & A4_2WHEEL_MOUSE_HACK_B8) { in a4_event()
64 a4->delayed_value = value; in a4_event()
70 REL_WHEEL, a4->delayed_value); in a4_event()
75 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) { in a4_event()
76 a4->hw_wheel = !!value; in a4_event()
80 if (usage->code == REL_WHEEL && a4->hw_wheel) { in a4_event()
90 struct a4tech_sc *a4; in a4_probe() local
93 a4 = kzalloc(sizeof(*a4), GFP_KERNEL); in a4_probe()
94 if (a4 == NULL) { in a4_probe()
100 a4->quirks = id->driver_data; in a4_probe()
102 hid_set_drvdata(hdev, a4); in a4_probe()
118 kfree(a4); in a4_probe()
124 struct a4tech_sc *a4 = hid_get_drvdata(hdev); in a4_remove() local
127 kfree(a4); in a4_remove()