Lines Matching refs:byte
77 unsigned char byte; member
86 static int sps30_serial_put_byte(unsigned char *buf, unsigned char byte) in sps30_serial_put_byte() argument
91 if (sps30_serial_bytes[i].byte != byte) in sps30_serial_put_byte()
100 buf[0] = byte; in sps30_serial_put_byte()
116 return sps30_serial_bytes[i].byte; in sps30_serial_get_byte()
219 unsigned char byte; in sps30_serial_receive_buf() local
240 byte = buf[i]; in sps30_serial_receive_buf()
242 if (byte == SPS30_SERIAL_ESCAPE_CHAR) { in sps30_serial_receive_buf()
247 byte = sps30_serial_get_byte(priv->escaped, byte); in sps30_serial_receive_buf()
248 if (priv->escaped && !byte) in sps30_serial_receive_buf()
249 dev_warn(state->dev, "unrecognized escaped char (0x%02x)\n", byte); in sps30_serial_receive_buf()
251 priv->buf[priv->num++] = byte; in sps30_serial_receive_buf()
254 if (!priv->escaped && byte == SPS30_SERIAL_SOF_EOF) { in sps30_serial_receive_buf()