Searched refs:MSG_START_LEN (Results 1 - 2 of 2) sorted by relevance
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/ |
H A D | transfer.c | 252 check_sum = (uintptr_t)(ctx->buffer + MSG_START_LEN) ^ SOH_MSG_LEN ^ (uintptr_t)(ctx->file_name) ^ in upload_send_file_info() 254 if (memcpy_s(ctx->buffer + MSG_START_LEN, SOH_MSG_LEN, ctx->file_name, name_length, check_sum) != EOK) { in upload_send_file_info() 258 data = ctx->buffer + MSG_START_LEN + name_length; in upload_send_file_info() 273 check_sum = 0 ^ (uintptr_t)(ctx->buffer + MSG_START_LEN) ^ SOH_MSG_LEN; in upload_send_file_info() 274 crc = crc16_ccitt(0, ctx->buffer + MSG_START_LEN, SOH_MSG_LEN, check_sum); in upload_send_file_info() 293 hi_u32 check_sum = 0 ^ (uintptr_t)(ctx->buffer + MSG_START_LEN) ^ SOH_MSG_LEN; in upload_send_null_info() 294 crc = crc16_ccitt(0, ctx->buffer + MSG_START_LEN, SOH_MSG_LEN, check_sum); in upload_send_null_info() 328 if (memcpy_s (ctx->buffer + MSG_START_LEN, SOH_MSG_LEN, in upload_send_data() 329 (const hi_void *)(uintptr_t)(ctx->file_addr + ctx->offset), remain, (uintptr_t)(ctx->buffer + MSG_START_LEN) in upload_send_data() 333 check_sum = 0 ^ (uintptr_t)(ctx->buffer + MSG_START_LEN) in upload_send_data() [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/commonboot/ |
H A D | transfer.h | 43 #define MSG_START_LEN 3 macro
|
Completed in 2 milliseconds