Lines Matching full:byte
84 static int read_mcumgr_byte(struct smp_shell_data *data, uint8_t byte) in read_mcumgr_byte() argument
102 if (byte == MCUMGR_SERIAL_HDR_PKT_2) { in read_mcumgr_byte()
103 /* Final framing byte received. */ in read_mcumgr_byte()
113 if (byte == MCUMGR_SERIAL_HDR_FRAG_2) { in read_mcumgr_byte()
114 /* Final framing byte received. */ in read_mcumgr_byte()
124 if (byte == MCUMGR_SERIAL_HDR_PKT_1) { in read_mcumgr_byte()
125 /* First framing byte received. */ in read_mcumgr_byte()
128 } else if (byte == MCUMGR_SERIAL_HDR_FRAG_1) { in read_mcumgr_byte()
129 /* First framing byte received. */ in read_mcumgr_byte()
135 /* Non-mcumgr byte received. */ in read_mcumgr_byte()
146 uint8_t byte = bytes[consumed]; in smp_shell_rx_bytes() local
147 int mcumgr_state = read_mcumgr_byte(data, byte); in smp_shell_rx_bytes()
160 net_buf_add_u8(data->buf, byte); in smp_shell_rx_bytes()
165 byte == '\n') { in smp_shell_rx_bytes()