Lines Matching full:fcs

270 	uint8_t fcs;  in modem_cmux_transmit_frame()  local
297 /* Compute FCS for the header (exclude SOF) */ in modem_cmux_transmit_frame()
298 fcs = crc8_rohc(MODEM_CMUX_FCS_INIT_VALUE, &buf[1], (buf_idx - 1)); in modem_cmux_transmit_frame()
300 /* FCS final */ in modem_cmux_transmit_frame()
302 fcs = 0xFF - fcs; in modem_cmux_transmit_frame()
304 fcs = 0xFF - crc8_rohc(fcs, frame->data, data_len); in modem_cmux_transmit_frame()
313 /* FCS and EOF will be put on the same call */ in modem_cmux_transmit_frame()
314 buf[0] = fcs; in modem_cmux_transmit_frame()
729 uint8_t fcs; in modem_cmux_process_received_byte() local
756 /* Store header for FCS */ in modem_cmux_process_received_byte()
771 /* Store header for FCS */ in modem_cmux_process_received_byte()
786 /* Store header for FCS */ in modem_cmux_process_received_byte()
802 /* Await FCS */ in modem_cmux_process_received_byte()
812 /* Store header for FCS */ in modem_cmux_process_received_byte()
840 /* Await FCS */ in modem_cmux_process_received_byte()
854 /* Compute FCS */ in modem_cmux_process_received_byte()
855 fcs = crc8_rohc(MODEM_CMUX_FCS_INIT_VALUE, cmux->frame_header, in modem_cmux_process_received_byte()
858 fcs = 0xFF - fcs; in modem_cmux_process_received_byte()
860 fcs = 0xFF - crc8_rohc(fcs, cmux->frame.data, cmux->frame.data_len); in modem_cmux_process_received_byte()
863 /* Validate FCS */ in modem_cmux_process_received_byte()
864 if (fcs != byte) { in modem_cmux_process_received_byte()
865 LOG_WRN("Frame FCS error"); in modem_cmux_process_received_byte()