Lines Matching defs:device
535 hid_dbg(dev, "device %x:%x:%x %d quirks %d\n",
577 * Stylus is normally not connected to the device and thus we
578 * can't query the device and get meaningful battery strength.
579 * We have to wait for the device to report it on its own.
677 static bool hidinput_field_in_collection(struct hid_device *device, struct hid_field *field,
682 collection = &device->collection[field->usage->collection_index];
691 struct hid_device *device = input_get_drvdata(input);
734 if (device->driver->input_mapping) {
735 int ret = device->driver->input_mapping(device, hidinput, field,
777 if (hidinput_field_in_collection(device, field,
854 * device as a joystick then.
954 device->quirks |= HID_QUIRK_NOTOUCH;
991 hidinput_setup_battery(device, HID_INPUT_REPORT, field, false);
996 device->quirks &= ~HID_QUIRK_NOINVERT;
1011 device->quirks &= ~HID_QUIRK_NOTOUCH;
1026 device->quirks |= HID_QUIRK_NOINVERT;
1266 hidinput_setup_battery(device, HID_INPUT_REPORT, field, false);
1275 hidinput_setup_battery(device, HID_INPUT_REPORT, field, true);
1367 if (device->driver->input_mapped &&
1368 device->driver->input_mapped(device, hidinput, field, usage,
1395 if (device->quirks & HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE) {
1400 device->status |= HID_STAT_DUP_DETECTED;
1413 if ((device->quirks & HID_QUIRK_BADPAD) && (usage->code == ABS_X || usage->code == ABS_Y)) {
1831 * field (even garbage). So the remote device will always get a valid
1932 * But if we're not allowed to read from the device,
1933 * we just bail. Such a device should not exist
2173 struct hid_device *hid = report->device;
2187 struct hid_device *hid = report->device;
2271 * Register the input device; print a message.
2350 /* no need to register an input device not populated */