Home
last modified time | relevance | path

Searched refs:SOH_MSG_LEN (Results 1 - 2 of 2) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/
H A Dtransfer.c252 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()
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()
288 hi_u32 check_sum_val = (uintptr_t)(ctx->buffer) ^ (hi_u32)sizeof(ctx->buffer) ^ 0 ^ SOH_MSG_LEN; in upload_send_null_info()
289 (hi_void) memset_s(ctx->buffer, sizeof(ctx->buffer), 0, SOH_MSG_LEN, check_sum_val); in upload_send_null_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()
326 if (remain <= SOH_MSG_LEN) { in upload_send_data()
328 if (memcpy_s (ctx->buffer + MSG_START_LEN, SOH_MSG_LEN, in upload_send_data()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/commonboot/
H A Dtransfer.h44 #define SOH_MSG_LEN 128 macro

Completed in 2 milliseconds