Lines Matching defs:byte
38 #define PS2_FLAG_CMD1 BIT(2) /* Waiting for the first byte of command response */
41 #define PS2_FLAG_PASS_NOACK BIT(5) /* Pass non-ACK byte to receive handler */
43 static int ps2_do_sendbyte(struct ps2dev *ps2dev, u8 byte,
58 error = serio_write(ps2dev->serio, byte);
61 "failed to write %#02x: %d\n", byte, error);
91 byte, error, ps2dev->nak, attempt);
97 * ps2_sendbyte - sends a byte to the device and wait for acknowledgement
99 * @byte: data to be sent to the device
107 int ps2_sendbyte(struct ps2dev *ps2dev, u8 byte, unsigned int timeout)
113 retval = ps2_do_sendbyte(ps2dev, byte, timeout, 1);
114 dev_dbg(&ps2dev->serio->dev, "%02x - %x\n", byte, ps2dev->nak);
179 * ps2_is_keyboard_id - checks received ID byte against the list of
181 * @id_byte: data byte that should be checked
199 * ps2_adjust_timeout() is called after receiving 1st byte of command
209 * Device has sent the first response byte after
212 * The next byte will come soon (keyboard) or not
223 * a single byte. Fail the command so atkbd will
235 * won't be 2nd byte of ID response.
416 * @command: command byte
475 * distinction between waiting for the first byte of the response, and
477 * timeouts once first byte of response is received.
536 * waiting for an ACK to the initial (first) command byte:
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
586 * @data: a data byte received from the device