Lines Matching refs:hdev
42 static int plantronics_input_mapping(struct hid_device *hdev, in plantronics_input_mapping() argument
49 unsigned long plt_type = (unsigned long)hid_get_drvdata(hdev); in plantronics_input_mapping()
96 hid_dbg(hdev, "usage: %08x (appl: %08x) - defaulted\n", in plantronics_input_mapping()
102 hid_dbg(hdev, "usage: %08x (appl: %08x) - mapped to key %d\n", in plantronics_input_mapping()
107 static unsigned long plantronics_device_type(struct hid_device *hdev) in plantronics_device_type() argument
110 unsigned long plt_type = hdev->product; in plantronics_device_type()
117 for (i = 0; i < hdev->maxcollection; i++) { in plantronics_device_type()
118 col_page = hdev->collection[i].usage & HID_USAGE_PAGE; in plantronics_device_type()
120 plt_type = hdev->collection[i].usage; in plantronics_device_type()
124 plt_type = hdev->collection[i].usage; in plantronics_device_type()
128 hid_dbg(hdev, "plt_type decoded as: %08lx\n", plt_type); in plantronics_device_type()
132 static int plantronics_probe(struct hid_device *hdev, in plantronics_probe() argument
137 ret = hid_parse(hdev); in plantronics_probe()
139 hid_err(hdev, "parse failed\n"); in plantronics_probe()
143 hid_set_drvdata(hdev, (void *)plantronics_device_type(hdev)); in plantronics_probe()
145 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT | in plantronics_probe()
148 hid_err(hdev, "hw start failed\n"); in plantronics_probe()