Lines Matching refs:totlen
1367 uint16_t totlen; in boot_serial_output() local
1370 char buf[BOOT_SERIAL_OUT_MAX + sizeof(*bs_hdr) + sizeof(crc) + sizeof(totlen)]; in boot_serial_output()
1394 totlen = len + sizeof(*bs_hdr) + sizeof(crc); in boot_serial_output()
1395 totlen = htons(totlen); in boot_serial_output()
1397 memcpy(buf, &totlen, sizeof(totlen)); in boot_serial_output()
1398 totlen = sizeof(totlen); in boot_serial_output()
1399 memcpy(&buf[totlen], bs_hdr, sizeof(*bs_hdr)); in boot_serial_output()
1400 totlen += sizeof(*bs_hdr); in boot_serial_output()
1401 memcpy(&buf[totlen], data, len); in boot_serial_output()
1402 totlen += len; in boot_serial_output()
1403 memcpy(&buf[totlen], &crc, sizeof(crc)); in boot_serial_output()
1404 totlen += sizeof(crc); in boot_serial_output()
1407 base64_encode(encoded_buf, sizeof(encoded_buf), &enc_len, buf, totlen); in boot_serial_output()
1408 totlen = enc_len; in boot_serial_output()
1411 …_encode((unsigned char *)encoded_buf, sizeof(encoded_buf), &enc_len, (unsigned char *)buf, totlen); in boot_serial_output()
1412 totlen = enc_len; in boot_serial_output()
1414 totlen = base64_encode(buf, totlen, encoded_buf, 1); in boot_serial_output()
1418 while (out < totlen) { in boot_serial_output()
1425 len = MIN(BOOT_SERIAL_FRAME_MTU, totlen - out); in boot_serial_output()