Lines Matching defs:device
451 hid_dbg(dev, "device %x:%x:%x %d quirks %d\n",
492 * Stylus is normally not connected to the device and thus we
493 * can't query the device and get meaningful battery strength.
494 * We have to wait for the device to report it on its own.
570 struct hid_device *device = input_get_drvdata(input);
589 if (device->driver->input_mapping) {
590 int ret = device->driver->input_mapping(device, hidinput, field,
698 * device as a joystick then.
797 device->quirks |= HID_QUIRK_NOTOUCH;
813 hidinput_setup_battery(device, HID_INPUT_REPORT, field);
832 device->quirks &= ~HID_QUIRK_NOTOUCH;
1081 hidinput_setup_battery(device, HID_INPUT_REPORT, field);
1160 if (device->driver->input_mapped &&
1161 device->driver->input_mapped(device, hidinput, field, usage,
1188 if (device->quirks & HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE) {
1193 device->status |= HID_STAT_DUP_DETECTED;
1206 if ((device->quirks & HID_QUIRK_BADPAD) && (usage->code == ABS_X || usage->code == ABS_Y)) {
1523 * field (even garbage). So the remote device will always get a valid
1624 * But if we're not allowed to read from the device,
1625 * we just bail. Such a device should not exist
1855 struct hid_device *hid = report->device;
1869 struct hid_device *hid = report->device;
1892 * Register the input device; print a message.
1971 /* no need to register an input device not populated */