Lines Matching refs:hdev
35 static int a4_input_mapped(struct hid_device *hdev, struct hid_input *hi, in a4_input_mapped() argument
39 struct a4tech_sc *a4 = hid_get_drvdata(hdev); in a4_input_mapped()
50 static int a4_event(struct hid_device *hdev, struct hid_field *field, in a4_event() argument
53 struct a4tech_sc *a4 = hid_get_drvdata(hdev); in a4_event()
56 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in a4_event()
88 static int a4_probe(struct hid_device *hdev, const struct hid_device_id *id) in a4_probe() argument
93 a4 = devm_kzalloc(&hdev->dev, sizeof(*a4), GFP_KERNEL); in a4_probe()
95 hid_err(hdev, "can't alloc device descriptor\n"); in a4_probe()
101 hid_set_drvdata(hdev, a4); in a4_probe()
103 ret = hid_parse(hdev); in a4_probe()
105 hid_err(hdev, "parse failed\n"); in a4_probe()
109 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in a4_probe()
111 hid_err(hdev, "hw start failed\n"); in a4_probe()