Lines Matching refs:hdev
270 static int apple_event(struct hid_device *hdev, struct hid_field *field, in apple_event() argument
273 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_event()
275 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in apple_event()
287 hidinput_apple_event(hdev, field->hidinput->input, in apple_event()
298 static __u8 *apple_report_fixup(struct hid_device *hdev, __u8 *rdesc, in apple_report_fixup() argument
301 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_report_fixup()
305 hid_info(hdev, in apple_report_fixup()
332 static int apple_input_mapping(struct hid_device *hdev, struct hid_input *hi, in apple_input_mapping() argument
348 static int apple_input_mapped(struct hid_device *hdev, struct hid_input *hi, in apple_input_mapped() argument
352 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapped()
366 static int apple_probe(struct hid_device *hdev, in apple_probe() argument
374 asc = devm_kzalloc(&hdev->dev, sizeof(*asc), GFP_KERNEL); in apple_probe()
376 hid_err(hdev, "can't alloc apple descriptor\n"); in apple_probe()
382 hid_set_drvdata(hdev, asc); in apple_probe()
384 ret = hid_parse(hdev); in apple_probe()
386 hid_err(hdev, "parse failed\n"); in apple_probe()
395 ret = hid_hw_start(hdev, connect_mask); in apple_probe()
397 hid_err(hdev, "hw start failed\n"); in apple_probe()