/device/soc/rockchip/rk3588/kernel/scripts/ |
H A D | mkbootimg | 22 from struct import pack namespace 40 sha.update(pack('I', filesize(f))) 42 sha.update(pack('I', 0)) 47 f.write(pack(str(pad) + 'x')) 70 args.output.write(pack('8s', BOOT_MAGIC)) 71 args.output.write(pack( 78 args.output.write(pack('4I', 0, 0, 0, 0)) # reserved 80 args.output.write(pack('I', args.header_version)) # version of bootimage header 81 args.output.write(pack('1536s', args.cmdline.encode())) 88 args.vendor_boot.write(pack(' [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/ |
H A D | ext_aead.c | 177 static hi_s32 ext_ccm_gcm_mem_open(ext_ccm_gcm_mem *mem, symc_multi_pack *pack, compat_addr aad, hi_u32 aad_len) in ext_ccm_gcm_mem_open() argument 181 ret = crypto_mem_open(&mem->in, pack->in[0], pack->len[0]); in ext_ccm_gcm_mem_open() 187 ret = crypto_mem_open(&mem->out, pack->out[0], pack->len[0]); in ext_ccm_gcm_mem_open() 233 hi_s32 ext_mbedtls_aead_ccm_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 last) in ext_mbedtls_aead_ccm_crypto() argument 242 hi_log_chk_param_return((aead == HI_NULL) || (pack == HI_NULL)); in ext_mbedtls_aead_ccm_crypto() 243 hi_log_chk_param_return((pack->num != 1) || (pack->len == HI_NULL)); in ext_mbedtls_aead_ccm_crypto() 248 ret = ext_ccm_gcm_mem_open(&mem, pack, aea in ext_mbedtls_aead_ccm_crypto() 289 ext_mbedtls_aead_gcm_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 last) ext_mbedtls_aead_gcm_crypto() argument [all...] |
H A D | ext_symc.c | 251 hi_s32 ext_mbedtls_symc_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 last) in ext_mbedtls_symc_crypto() argument 261 hi_log_chk_param_return(pack == HI_NULL); in ext_mbedtls_symc_crypto() 262 hi_log_chk_param_return(pack->in == HI_NULL); in ext_mbedtls_symc_crypto() 263 hi_log_chk_param_return(pack->out == HI_NULL); in ext_mbedtls_symc_crypto() 264 hi_log_chk_param_return(pack->len == HI_NULL); in ext_mbedtls_symc_crypto() 265 hi_log_chk_param_return(pack->num != 0x01); in ext_mbedtls_symc_crypto() 274 ret = crypto_mem_open(&mem_in, pack->in[0], pack->len[0]); in ext_mbedtls_symc_crypto() 280 ret = crypto_mem_open(&mem_out, pack->out[0], pack in ext_mbedtls_symc_crypto() [all...] |
H A D | ext_sm4.c | 538 hi_s32 ext_sm4_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 last) in ext_sm4_crypto() argument 547 hi_log_chk_param_return(pack == HI_NULL); in ext_sm4_crypto() 548 hi_log_chk_param_return(pack->len == HI_NULL); in ext_sm4_crypto() 549 hi_log_chk_param_return(pack->in == HI_NULL); in ext_sm4_crypto() 550 hi_log_chk_param_return(pack->out == HI_NULL); in ext_sm4_crypto() 551 hi_log_chk_param_return(pack->usage == HI_NULL); in ext_sm4_crypto() 552 hi_log_chk_param_return(pack->num != 0x01); in ext_sm4_crypto() 557 ret = crypto_mem_open(&mem_in, pack->in[0], pack->len[0]); in ext_sm4_crypto() 563 ret = crypto_mem_open(&mem_out, pack in ext_sm4_crypto() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/ |
H A D | kapi_symc.c | 792 symc_multi_pack pack; in kapi_symc_crypto() local 820 (hi_void)memset_s(&pack, sizeof(pack), 0, sizeof(pack)); in kapi_symc_crypto() 821 pack.in = &crypt->in; in kapi_symc_crypto() 822 pack.out = &crypt->out; in kapi_symc_crypto() 823 pack.len = &crypt->len; in kapi_symc_crypto() 824 pack.usage = &usage; in kapi_symc_crypto() 825 pack.num = 1; /* 1 single package encrypt or decrypt. */ in kapi_symc_crypto() 829 ret = ctx->func->crypto(ctx->cryp_ctx, crypt->operation, &pack, HI_TRU in kapi_symc_crypto() 901 kapi_symc_chk_multi_pack(hi_cipher_data *tmp, const hi_cipher_data *pack) kapi_symc_chk_multi_pack() argument 943 kapi_symc_multi_pack_set_mem(symc_multi_pack *pack, const hi_u8 *buf, hi_u32 size) kapi_symc_multi_pack_set_mem() argument 970 symc_multi_pack pack; kapi_symc_crypto_multi_start() local [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/ |
H A D | cryp_symc.c | 583 static hi_s32 cryp_symc_crypto_init(cryp_symc_context *hisi_ctx, hi_u32 operation, symc_multi_pack *pack, in cryp_symc_crypto_init() argument 590 hi_log_chk_param_return(pack == HI_NULL); in cryp_symc_crypto_init() 594 if (pack->num == 0x01) { in cryp_symc_crypto_init() 595 hisi_ctx->enclen += pack->len[i]; in cryp_symc_crypto_init() 596 pack->usage[i] = (hi_u32)pack->usage[i] | (hi_u32)usage; in cryp_symc_crypto_init() 598 for (i = 0; i < pack->num; i++) { in cryp_symc_crypto_init() 599 if (pack->len[i] == 0x00) { in cryp_symc_crypto_init() 604 hi_log_chk_param_return(hisi_ctx->enclen + pack->len[i] < hisi_ctx->enclen); in cryp_symc_crypto_init() 606 hisi_ctx->enclen += pack in cryp_symc_crypto_init() 681 cryp_symc_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 wait) cryp_symc_crypto() argument 968 cryp_ccm_add_p(cryp_symc_context *hisi_ctx, symc_multi_pack *pack, hi_u32 wait) cryp_ccm_add_p() argument 1011 cryp_aead_ccm_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 wait) cryp_aead_ccm_crypto() argument 1066 cryp_aead_gcm_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 wait) cryp_aead_gcm_crypto() argument [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/ |
H A D | packet_create.py | 93 file.write(struct.pack('IHHI', flag, crc, imageNum, totalFileSize))
99 struct.pack('32sIIIII', bytes(pathName, 'ascii'), startIndex, imageSizeList[times], burnAddrList[times],
108 file.write(struct.pack('IIII', 0, 0, 0, 0))
115 file.write(struct.pack('H', crc16))
174 file.write(struct.pack('IHHI', flag, crc, imageNum, totalFileSize))
179 file.write(struct.pack('32sIIIII', bytes(pathName, 'ascii'), startIndex, imageSizeList[times], burnAddrList[times],
188 file.write(struct.pack('IIII', 0, 0, 0, 0))
196 file.write(struct.pack('H', crc16))
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/ |
H A D | MQTTProtocolClient.h | 42 int MQTTProtocol_handlePublishes(void* pack, int sock); 43 int MQTTProtocol_handlePubacks(void* pack, int sock); 44 int MQTTProtocol_handlePubrecs(void* pack, int sock); 45 int MQTTProtocol_handlePubrels(void* pack, int sock); 46 int MQTTProtocol_handlePubcomps(void* pack, int sock);
|
H A D | MQTTPacket.h | 250 void MQTTPacket_freePublish(Publish* pack); 251 int MQTTPacket_send_publish(Publish* pack, int dup, int qos, int retained, networkHandles* net, const char* clientID); 255 void MQTTPacket_freeAck(Ack* pack); 256 void MQTTPacket_freeSuback(Suback* pack); 257 void MQTTPacket_freeUnsuback(Unsuback* pack); 262 void MQTTPacket_free_packet(MQTTPacket* pack);
|
H A D | MQTTProtocolOut.h | 43 int MQTTProtocol_handlePingresps(void* pack, int sock); 46 int MQTTProtocol_handleSubacks(void* pack, int sock); 48 int MQTTProtocol_handleUnsubacks(void* pack, int sock);
|
/device/board/hihope/dayu210/uboot/ |
H A D | make.sh | 71 echo " - ini: ini file to pack trust/loader" 85 echo "2. Pack:" 86 echo " ./make.sh uboot --- pack uboot.img" 87 echo " ./make.sh trust --- pack trust.img" 88 echo " ./make.sh trust <ini> --- pack trust img with assigned ini file" 89 echo " ./make.sh loader --- pack loader bin" 90 echo " ./make.sh loader <ini> --- pack loader img with assigned ini file" 91 echo " ./make.sh --spl --- pack loader with u-boot-spl.bin" 92 echo " ./make.sh --tpl --- pack loader with u-boot-tpl.bin" 93 echo " ./make.sh --tpl --spl --- pack loade [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/include/ |
H A D | ext_alg.h | 93 * param pack package of decrypt or encrypt. 98 hi_s32 ext_mbedtls_aead_ccm_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 last); 108 * param pack package of decrypt or encrypt. 113 hi_s32 ext_mbedtls_aead_gcm_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 last); 182 * param pack package for encrypt or decrypt. 186 hi_s32 ext_mbedtls_symc_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 last); 255 * param pack package for encrypt or decrypt. 260 hi_s32 ext_sm4_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 last);
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/tools/packet_tool/ |
H A D | packet_tool.py | 96 file.write(struct.pack('IHHI', flag, crc, imageNum, totalFileSize))
102 struct.pack('32sIIIII', bytes(pathName, 'ascii'), startIndex, imageSizeList[times], burnAddrList[times],
112 file.write(struct.pack('IIII', 0, 0, 0, 0))
120 file.write(struct.pack('H', crc16))
215 file.write(struct.pack('IHHI', flag, crc, imageNum, totalFileSize))
221 struct.pack('32sIIIII', bytes(pathName, 'ascii'), startIndex, imageSizeList[times], burnAddrList[times],
229 file.write(struct.pack('IIII', 0, 0, 0, 0))
237 file.write(struct.pack('H', crc16))
308 file.write(struct.pack('IHHI', flag, crc, imageNum, totalFileSize))
314 struct.pack('3 [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/ |
H A D | hi_comm_adec.h | 47 ADEC_MODE_PACK = 0, /* require input is valid dec pack(a
50 valid dec pack, the stream know actually
51 pack len from file is also a dec pack.
55 vaild dec pack,you could use
|
H A D | hi_comm_venc.h | 108 /* the pack type of JPEGE */ 119 /* the pack type of PRORES */ 128 JPEGE_PACK_TYPE_E enJPEGEType; /* R; JPEGE pack types */ 133 /* the pack info of VENC */ 135 VENC_DATA_TYPE_U u32PackType; /* R; the pack type */ 273 VENC_PACK_S ATTRIBUTE *pstPack; /* R; stream pack attribute */ 274 HI_U32 ATTRIBUTE u32PackCount; /* R; the pack number of one frame stream */ 480 HI_U32 u32CurPacks; /* R; pack number of current frame */
|
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/ |
H A D | hi_comm_adec.h | 47 ADEC_MODE_PACK = 0, /* require input is valid dec pack(a
50 valid dec pack, the stream know actually
51 pack len from file is also a dec pack.
55 vaild dec pack,you could use
|
H A D | hi_comm_venc.h | 107 /* the pack type of JPEGE */ 118 /* the pack type of PRORES */ 127 JPEGE_PACK_TYPE_E enJPEGEType; /* R; JPEGE pack types */ 132 /* the pack info of VENC */ 134 VENC_DATA_TYPE_U u32PackType; /* R; the pack type */ 272 VENC_PACK_S ATTRIBUTE *pstPack; /* R; stream pack attribute */ 273 HI_U32 ATTRIBUTE u32PackCount; /* R; the pack number of one frame stream */ 479 HI_U32 u32CurPacks; /* R; pack number of current frame */
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/tools/efuse_tool/ |
H A D | efuse_cfg_gen.py | 59 result = struct.pack('BBHHH', 0, 8, int(line[2]), size, value_len)
65 value_struct = value_struct + struct.pack('I', value)
69 header = struct.pack('BBHIII', 0, 48, number, len(buf) + 48, 0, 0)
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/ |
H A D | drv_symc_v100.c | 1291 hi_s32 drv_symc_node_check(symc_alg alg, symc_mode mode, hi_u32 klen, hi_u32 block_size, symc_multi_pack *pack) in drv_symc_node_check() argument 1298 hi_log_chk_param_return(pack == 0); in drv_symc_node_check() 1304 crypto_unused(pack->in); in drv_symc_node_check() 1305 crypto_unused(pack->out); in drv_symc_node_check() 1306 crypto_unused(pack->usage); in drv_symc_node_check() 1308 for (i = 0; i < pack->num; i++) { in drv_symc_node_check() 1309 hi_log_debug("node %u, length 0x%x\n", i, pack->len[i]); in drv_symc_node_check() 1310 if ((pack->len[i] % block_size) != 0) { in drv_symc_node_check() 1316 if ((mode != SYMC_MODE_CTR) || (i != pack->num - 1)) { in drv_symc_node_check() 1322 tail = pack in drv_symc_node_check() [all...] |
H A D | drv_symc_v200.c | 1466 hi_s32 drv_symc_node_check(symc_alg alg, symc_mode mode, hi_u32 klen, hi_u32 block_size, symc_multi_pack *pack) in drv_symc_node_check() argument 1476 crypto_unused(pack->out); in drv_symc_node_check() 1478 for (i = 0; i < pack->num; i++) { in drv_symc_node_check() 1480 if ((hi_u32)pack->usage[i] & SYMC_NODE_USAGE_ODD_KEY) { in drv_symc_node_check() 1494 hi_log_chk_param_return((pack->len[i] % (AES_BLOCK_SIZE * WORD_WIDTH)) != 0); in drv_symc_node_check() 1498 hi_log_chk_param_return((pack->len[i] == 0) || (pack->len[i] > addr_l32(pack->in[i]) + pack->len[i])); in drv_symc_node_check() 1499 total += pack in drv_symc_node_check() [all...] |
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
H A D | bcmtlv.h | 282 /* pack a set of tlvs into buffer using provided xtlv descriptors */ 292 /* callback to return next tlv id and len to pack, if there is more tlvs to come and 297 /* callback to pack the tlv into length validated buffer */ 301 /* pack a set of tlvs into buffer using get_next to interate */ 306 /* pack an xtlv. does not do any error checking. if data is not NULL
|
H A D | bcmiov.h | 241 /* pack to buffer data callback. under some conditions it might 254 bcm_iov_xtlv_pack_t pack; member 309 /* pack the xtlvs provided in the digest. may returns BCME_BUFTOOSHORT, but the 337 /* pack a buffer of uint8s - memcpy wrapper */ 344 * pack a buffer with uint16s - serialized in LE order, data points to uint16 351 * pack a buffer with uint32s - serialized in LE order - data points to uint32
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/include/ |
H A D | cryp_symc.h | 124 * param pack package for encrypt or decrypt. 129 typedef hi_s32 (*func_symc_crypto)(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 wait);
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/hcc/ |
H A D | hcc_comm.h | 136 #pragma pack(push, 1) 147 #pragma pack(pop)
|
/device/soc/rockchip/common/sdk_linux/scripts/ |
H A D | resource_tool.c | 604 #define OPT_PACK "--pack" 1199 LOGE("No file to pack!"); in main() 1202 LOGD("try to pack %d files.", file_num); in main() 1376 /************pack code****************/ 1539 /* not to pack image itself! */ in pack_image() 1555 printf("Pack to %s successed!\n", image_path); in pack_image() 1561 /************pack code end****************/
|