Searched refs:bs_hdr (Results 1 – 1 of 1) sorted by relevance
163 static struct nmgr_hdr *bs_hdr; variable1304 bs_hdr = hdr; in boot_serial_input()1370 char buf[BOOT_SERIAL_OUT_MAX + sizeof(*bs_hdr) + sizeof(crc) + sizeof(totlen)]; in boot_serial_output()1376 bs_hdr->nh_op++; in boot_serial_output()1377 bs_hdr->nh_flags = 0; in boot_serial_output()1378 bs_hdr->nh_len = htons(len); in boot_serial_output()1379 bs_hdr->nh_group = htons(bs_hdr->nh_group); in boot_serial_output()1382 crc = crc16_itu_t(CRC16_INITIAL_CRC, (uint8_t *)bs_hdr, sizeof(*bs_hdr)); in boot_serial_output()1386 crc = ~esp_crc16_be(~CRC16_INITIAL_CRC, (uint8_t *)bs_hdr, sizeof(*bs_hdr)); in boot_serial_output()1389 crc = crc16_ccitt(CRC16_INITIAL_CRC, bs_hdr, sizeof(*bs_hdr)); in boot_serial_output()[all …]