Lines Matching refs:buf
278 bs_list(char *buf, int len) in bs_list() argument
491 bs_set(char *buf, int len) in bs_set() argument
513 zcbor_new_state(zsd, sizeof(zsd) / sizeof(zcbor_state_t), (uint8_t *)buf, len, 1, NULL, 0); in bs_set()
648 bs_list(buf, len); in bs_set()
675 bs_list_set(uint8_t op, char *buf, int len) in bs_list_set() argument
678 bs_list(buf, len); in bs_list_set()
681 bs_set(buf, len); in bs_list_set()
690 bs_slot_info(uint8_t op, char *buf, int len) in bs_slot_info() argument
873 bs_upload(char *buf, int len) in bs_upload() argument
905 zcbor_new_state(zsd, sizeof(zsd) / sizeof(zcbor_state_t), (uint8_t *)buf, len, 1, NULL, 0); in bs_upload()
1206 bs_echo(char *buf, int len) in bs_echo() argument
1214 zcbor_new_state(zsd, sizeof(zsd) / sizeof(zcbor_state_t), (uint8_t *)buf, len, 1, NULL, 0); in bs_echo()
1257 bs_reset(char *buf, int len) in bs_reset() argument
1294 boot_serial_input(char *buf, int len) in boot_serial_input() argument
1298 hdr = (struct nmgr_hdr *)buf; in boot_serial_input()
1307 buf += sizeof(*hdr); in boot_serial_input()
1318 bs_list_set(hdr->nh_op, buf, len); in boot_serial_input()
1321 bs_upload(buf, len); in boot_serial_input()
1325 bs_slot_info(hdr->nh_op, buf, len); in boot_serial_input()
1336 bs_echo(buf, len); in boot_serial_input()
1343 bs_reset(buf, len); in boot_serial_input()
1350 if (bs_peruser_system_specific(hdr, buf, len, cbor_state) == 0) { in boot_serial_input()
1370 char buf[BOOT_SERIAL_OUT_MAX + sizeof(*bs_hdr) + sizeof(crc) + sizeof(totlen)]; in boot_serial_output() local
1371 char encoded_buf[BASE64_ENCODE_SIZE(sizeof(buf))]; in boot_serial_output()
1397 memcpy(buf, &totlen, sizeof(totlen)); in boot_serial_output()
1399 memcpy(&buf[totlen], bs_hdr, sizeof(*bs_hdr)); in boot_serial_output()
1401 memcpy(&buf[totlen], data, len); in boot_serial_output()
1403 memcpy(&buf[totlen], &crc, sizeof(crc)); in boot_serial_output()
1407 base64_encode(encoded_buf, sizeof(encoded_buf), &enc_len, buf, totlen); in boot_serial_output()
1411 …base64_encode((unsigned char *)encoded_buf, sizeof(encoded_buf), &enc_len, (unsigned char *)buf, t… in boot_serial_output()
1414 totlen = base64_encode(buf, totlen, encoded_buf, 1); in boot_serial_output()