Lines Matching refs:hdev
213 static int apple_event(struct hid_device *hdev, struct hid_field *field, in apple_event() argument
216 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_event()
218 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in apple_event()
230 hidinput_apple_event(hdev, field->hidinput->input, in apple_event()
241 static void apple_report_fixup(struct hid_device *hdev, __u8 *rdesc, in apple_report_fixup() argument
244 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_report_fixup()
248 dev_info(&hdev->dev, "fixing up MacBook JIS keyboard report " in apple_report_fixup()
274 static int apple_input_mapping(struct hid_device *hdev, struct hid_input *hi, in apple_input_mapping() argument
290 static int apple_input_mapped(struct hid_device *hdev, struct hid_input *hi, in apple_input_mapped() argument
294 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapped()
308 static int apple_probe(struct hid_device *hdev, in apple_probe() argument
318 dev_err(&hdev->dev, "can't alloc apple descriptor\n"); in apple_probe()
324 hid_set_drvdata(hdev, asc); in apple_probe()
326 ret = hid_parse(hdev); in apple_probe()
328 dev_err(&hdev->dev, "parse failed\n"); in apple_probe()
337 ret = hid_hw_start(hdev, connect_mask); in apple_probe()
339 dev_err(&hdev->dev, "hw start failed\n"); in apple_probe()
349 static void apple_remove(struct hid_device *hdev) in apple_remove() argument
351 hid_hw_stop(hdev); in apple_remove()
352 kfree(hid_get_drvdata(hdev)); in apple_remove()