Lines Matching defs:data
98 * @ps2dev: a PS/2 device to send the data to
99 * @byte: data to be sent to the device
100 * @timeout: timeout for sending the data and receiving an acknowledge
181 * @id_byte: data byte that should be checked
479 static void ps2_handle_response(struct ps2dev *ps2dev, u8 data)
482 ps2dev->cmdbuf[--ps2dev->cmdcnt] = data;
501 static void ps2_handle_ack(struct ps2dev *ps2dev, u8 data)
503 switch (data) {
538 * delivering data. For certain commands (such as set leds and
540 * operation, we even pass this data byte to the normal receive
544 * on the 1st byte; if device spews data we really want to see
547 dev_dbg(&ps2dev->serio->dev, "unexpected %#02x\n", data);
549 ps2dev->receive_handler(ps2dev, data);
559 if (!ps2dev->nak && data != PS2_RET_ACK)
560 ps2_handle_response(ps2dev, data);
586 * @data: a data byte received from the device
588 * the data transfer
591 * acknowledgement and response from the device, and finally passes the data
594 irqreturn_t ps2_interrupt(struct serio *serio, u8 data, unsigned int flags) {
598 rc = ps2dev->pre_receive_handler(ps2dev, data, flags);
609 ps2_handle_ack(ps2dev, data);
611 ps2_handle_response(ps2dev, data);
613 ps2dev->receive_handler(ps2dev, data);