Lines Matching refs:hid
117 struct hid_device *hid; member
159 static void key_up(struct hid_device *hid, struct appleir *appleir, int key) in key_up() argument
165 static void key_down(struct hid_device *hid, struct appleir *appleir, int key) in key_down() argument
179 struct hid_device *hid = appleir->hid; in key_up_tick() local
184 key_up(hid, appleir, appleir->current_key); in key_up_tick()
190 static int appleir_raw_event(struct hid_device *hid, struct hid_report *report, in appleir_raw_event() argument
193 struct appleir *appleir = hid_get_drvdata(hid); in appleir_raw_event()
211 key_up(hid, appleir, appleir->current_key); in appleir_raw_event()
222 key_down(hid, appleir, appleir->current_key); in appleir_raw_event()
240 key_down(hid, appleir, appleir->current_key); in appleir_raw_event()
259 static int appleir_input_configured(struct hid_device *hid, in appleir_input_configured() argument
263 struct appleir *appleir = hid_get_drvdata(hid); in appleir_input_configured()
282 static int appleir_input_mapping(struct hid_device *hid, in appleir_input_mapping() argument
289 static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id) in appleir_probe() argument
300 appleir->hid = hid; in appleir_probe()
303 hid->quirks |= HID_QUIRK_HIDINPUT_FORCE; in appleir_probe()
309 hid_set_drvdata(hid, appleir); in appleir_probe()
311 ret = hid_parse(hid); in appleir_probe()
313 hid_err(hid, "parse failed\n"); in appleir_probe()
317 ret = hid_hw_start(hid, HID_CONNECT_DEFAULT | HID_CONNECT_HIDDEV_FORCE); in appleir_probe()
319 hid_err(hid, "hw start failed\n"); in appleir_probe()
330 static void appleir_remove(struct hid_device *hid) in appleir_remove() argument
332 struct appleir *appleir = hid_get_drvdata(hid); in appleir_remove()
333 hid_hw_stop(hid); in appleir_remove()
346 MODULE_DEVICE_TABLE(hid, appleir_devices);