Lines Matching defs:byte
77 u8 byte;
86 static int sps30_serial_put_byte(u8 *buf, u8 byte)
91 if (sps30_serial_bytes[i].byte != byte)
100 buf[0] = byte;
116 return sps30_serial_bytes[i].byte;
220 u8 byte;
240 byte = buf[i];
242 if (byte == SPS30_SERIAL_ESCAPE_CHAR) {
247 byte = sps30_serial_get_byte(priv->escaped, byte);
248 if (priv->escaped && !byte)
249 dev_warn(state->dev, "unrecognized escaped char (0x%02x)\n", byte);
251 priv->buf[priv->num++] = byte;
254 if (!priv->escaped && byte == SPS30_SERIAL_SOF_EOF) {
350 * tell device do return serial number and add extra nul byte just in case