Lines Matching defs:hdev
34 static int a4_input_mapping(struct hid_device *hdev, struct hid_input *hi,
38 struct a4tech_sc *a4 = hid_get_drvdata(hdev);
56 static int a4_input_mapped(struct hid_device *hdev, struct hid_input *hi,
60 struct a4tech_sc *a4 = hid_get_drvdata(hdev);
73 static int a4_event(struct hid_device *hdev, struct hid_field *field,
76 struct a4tech_sc *a4 = hid_get_drvdata(hdev);
79 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput)
113 static int a4_probe(struct hid_device *hdev, const struct hid_device_id *id)
118 a4 = devm_kzalloc(&hdev->dev, sizeof(*a4), GFP_KERNEL);
120 hid_err(hdev, "can't alloc device descriptor\n");
126 hid_set_drvdata(hdev, a4);
128 ret = hid_parse(hdev);
130 hid_err(hdev, "parse failed\n");
134 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
136 hid_err(hdev, "hw start failed\n");