Lines Matching defs:device
29 * The device and driver exchange messages (struct message); each message is
32 * message can be read from the device. A write exchange consists of writing a
321 * @flags: 0x40 = write (to device), 0x20 = read (from device); note that
323 * @device: 1 = keyboard, 2 = touchpad
339 u8 device;
612 dev_warn(&applespi->spi->dev, "Error writing to device: %d\n",
618 dev_warn(&applespi->spi->dev, "Error writing to device: %*ph\n",
755 u8 device;
783 device = PACKET_DEV_INFO;
796 device = PACKET_DEV_TPAD;
809 device = PACKET_DEV_KEYB;
823 device = PACKET_DEV_KEYB;
844 packet->device = device;
864 "Error queueing async write to device: %d\n", sts);
1256 /* create touchpad input device */
1260 "Failed to allocate touchpad input device\n");
1317 /* register input device */
1321 "Unable to register touchpad input device (%d)\n", sts);
1343 if (packet->device == PACKET_DEV_INFO &&
1347 * device can sleep.
1361 if (packet->device == PACKET_DEV_TPAD &&
1390 packet->device == PACKET_DEV_KEYB)
1393 packet->device == PACKET_DEV_TPAD)
1497 packet->device == PACKET_DEV_KEYB) {
1501 packet->device == PACKET_DEV_TPAD) {
1542 dev_warn(&applespi->spi->dev, "Error reading from device: %d\n",
1572 "Error queueing async read to device: %d\n",
1744 "Unable to register keyboard input device (%d)\n", sts);
1749 * The applespi device doesn't send interrupts normally (as is described
1755 "Failed to obtain GPE for SPI slave device: %s\n",
1786 * By default this device is not enabled for wakeup; but USB keyboards
1870 static int applespi_poweroff_late(struct device *dev)
1880 static int __maybe_unused applespi_suspend(struct device *dev)
1907 static int __maybe_unused applespi_resume(struct device *dev)
1914 /* ensure our flags and state reflect a newly resumed device */