Home
last modified time | relevance | path

Searched refs:crc (Results 1 - 25 of 25) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/
H A Dpacket_create.py32 crc = 0
35 if (crc ^ c) & 0x8000:
36 crc = (crc << 1) ^ self.POLYNOMIAL
38 crc = crc << 1
40 return crc
42 def _update_crc(self, crc, c):
45 tmp = (crc >> 8) ^ cc
46 crc
51 def crc(self, str): global() member in crc16
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/tools/packet_tool/
H A Dpacket_tool.py33 crc = 0
36 if (crc ^ c) & 0x8000:
37 crc = (crc << 1) ^ self.POLYNOMIAL
39 crc = crc << 1
41 return crc
43 def _update_crc(self, crc, c):
46 tmp = (crc >> 8) ^ cc
47 crc
52 def crc(self, str): global() member in crc16
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/
H A Dtransfer.c18 #include <crc.h>
237 hi_u16 crc; in upload_send_file_info() local
274 crc = crc16_ccitt(0, ctx->buffer + MSG_START_LEN, SOH_MSG_LEN, check_sum); in upload_send_file_info()
275 ctx->buffer[131] = (hi_u8)(crc >> 8); /* buffer[131] is crc high 8 bit */ in upload_send_file_info()
276 ctx->buffer[132] = (hi_u8)crc; /* buffer[132] is crc low 8 bit */ in upload_send_file_info()
286 hi_u16 crc; in upload_send_null_info() local
294 crc = crc16_ccitt(0, ctx->buffer + MSG_START_LEN, SOH_MSG_LEN, check_sum); in upload_send_null_info()
295 ctx->buffer[131] = (hi_u8)(crc >> in upload_send_null_info()
306 hi_u16 crc; upload_send_data() local
[all...]
H A Dcmd_loop.c17 #include <crc.h>
/device/soc/rockchip/rk3588/hardware/mpp/include/
H A Dutils_mpp.h60 void calc_data_crc(RK_U8 *dat, RK_U32 len, DataCrc *crc);
61 void write_data_crc(FILE *fp, DataCrc *crc);
62 void read_data_crc(FILE *fp, DataCrc *crc);
64 void calc_frm_crc(MppFrame frame, FrmCrc *crc);
65 void write_frm_crc(FILE *fp, FrmCrc *crc);
66 void read_frm_crc(FILE *fp, FrmCrc *crc);
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/nvm/
H A Dhi_nvm.c95 if (nv_head->crc != crc_val) { in nv_check_file()
242 hi_u32 crc = 0; in nv_read_common() local
271 ret = nv_read_flash(flash_addr + item_len, sizeof(crc), (hi_u8*)&crc); in nv_read_common()
276 if (crc != crc_val) { in nv_read_common()
305 hi_crc32_nv(0, p_nv_file + 8, nv_ctrl->block_size - 8, &(nv_head->crc)); // 8 in nv_block_write()
319 hi_u32 ret, crc, cs; in nv_common_write() local
345 hi_crc32_nv(0, data, item_len, &crc); in nv_common_write()
350 cs = (uintptr_t)(nv_file + nv_index->nv_offset + item_len) ^ sizeof(crc) ^ ((uintptr_t)&crc) in nv_common_write()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/common/nvm/
H A Dhi_nvm.c95 if (nv_head->crc != crc_val) { in nv_check_file()
244 hi_u32 crc = 0; in nv_read_common() local
273 ret = nv_read_flash(flash_addr + item_len, sizeof(crc), (hi_u8*)&crc); in nv_read_common()
278 if (crc != crc_val) { in nv_read_common()
307 hi_crc32_nv(0, p_nv_file + 8, nv_ctrl->block_size - 8, &(nv_head->crc)); // 8 in nv_block_write()
322 hi_u32 ret, crc, cs; in nv_common_write() local
348 hi_crc32_nv(0, data, item_len, &crc); in nv_common_write()
353 cs = (uintptr_t)(nv_file + nv_index->nv_offset + item_len) ^ sizeof(crc) ^ ((uintptr_t)&crc) in nv_common_write()
[all...]
H A Dhi_nvm.h29 #define HNV_NCRC_SIZE 8 /* no crc length */
41 hi_u32 crc; member
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/
H A Ddrv_ifep_rsa_v100.c34 /* crc 16 */
80 static hi_u16 drv_rsa_crc16_block(hi_u16 crc, in drv_rsa_crc16_block() argument
89 crc = (crc << BITS_IN_BYTE) ^ g_crc_table[((crc >> BITS_IN_BYTE) ^ val) & BYTE_MASK]; in drv_rsa_crc16_block()
92 return crc; in drv_rsa_crc16_block()
98 hi_u16 crc = 0; in drv_rsa_key_crc() local
101 crc = drv_rsa_crc16_block(crc, n + i, (hi_u8 *)randnum); in drv_rsa_key_crc()
104 crc in drv_rsa_key_crc()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/include/
H A Dhi_nvm.h40 hi_u32 crc; member
201 * @param crc [IN] type #hi_u16,The CRC initial value.CNcomment:CRC初始值。CNend
214 hi_u32 hi_crc32 (hi_u32 crc, const hi_u8 *p, hi_u32 len);
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/interconnection_server/
H A Dhisignalling.c459 unsigned int i, crc = 0xFFFFFFFF; in crc32() local
462 crc = crc32table[(crc ^ buf[i]) & 0xff] ^ (crc >> 8); /* 8: 右移8bit */ in crc32()
464 return crc ^ 0xFFFFFFFF; in crc32()
497 packageLen = DataPackLen + HISIGNALLING_MSG_HEADER_TAIL_LEN + 4; /* 4: crc check lenght */ in HisignallingDataPackage()
/device/soc/rockchip/common/vendor/drivers/rockchip/
H A Dsdmmc_vendor_storage.c359 u32 crc = 0; in rk_crc_32() local
362 crc = (crc << 0x8) ^ g_crc32_tbl[(crc >> 0x18) ^ *buf++]; in rk_crc_32()
364 return crc; in rk_crc_32()
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
H A Dsdmmc_vendor_storage.c395 u32 crc = 0; in rk_crc_32() local
398 crc = (crc << 8) ^ g_crc32_tbl[(crc >> 24) ^ *buf++]; in rk_crc_32()
399 return crc; in rk_crc_32()
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/include/
H A Dhi_nvm.h33 hi_u32 crc; member
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/include/
H A Dhi_flashboot.h597 * @param crc [IN] type #hi_u32,The CRC initial value.CNcomment:CRC初始值。CNend
610 hi_u32 hi_crc32 (hi_u32 crc, const hi_u8 *p, hi_u32 len);
/device/soc/rockchip/common/sdk_linux/include/drm/
H A Ddrm_crtc.h790 * source for CRC and during crc open. Source parameter can be NULL
791 * while disabling crc source.
807 * this. Driver can pass full list of available crc sources, this
808 * callback does the verification on each crc-source before passing it
1122 * @crc:
1126 struct drm_crtc_crc crc; member
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Dbcmutils.c2693 (c) = ((c) >> 8) ^ crc##n##_table[((c) ^ (x)) & 0xff]
2699 uint8 crc /* either CRC8_INIT_VALUE or previous return value */ in hndcrc8()
2702 /* hard code the crc loop instead of using CRC_INNER_LOOP macro in hndcrc8()
2706 crc = crc8_table[(crc ^ *pdata++) & 0xff]; in hndcrc8()
2708 return crc; in hndcrc8()
2772 uint16 crc /* either CRC16_INIT_VALUE or previous return value */ in hndcrc16()
2776 CRC_INNER_LOOP(16, crc, *pdata++); in hndcrc16()
2777 return crc; in hndcrc16()
2848 * crc inpu
2852 hndcrc32(const uint8 *pdata, uint nbytes, uint32 crc) hndcrc32() argument
[all...]
H A Ddhd_common.c5633 dload_ptr->crc = 0; in dhd_download_2_dongle()
/device/soc/rockchip/common/sdk_linux/fs/ubifs/
H A Drecovery.c1478 uint32_t crc; in fix_size_in_place() local
1503 crc = crc32(UBIFS_CRC32_INIT, (void *)ino + RECOVERY_EIGHT, len - RECOVERY_EIGHT); in fix_size_in_place()
1504 ino->ch.crc = cpu_to_le32(crc); in fix_size_in_place()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Dbcmutils.h702 /* crc defines */
795 /* crc */
796 uint8 hndcrc8(const uint8 *p, uint nbytes, uint8 crc);
797 uint16 hndcrc16(const uint8 *p, uint nbytes, uint16 crc);
798 uint32 hndcrc32(const uint8 *p, uint nbytes, uint32 crc);
H A Dwlioctl.h650 uint32 crc; member
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/win_scripts/tools/nvtool/
H A Dbuild_nv.py54 ("crc", HI_U32),
240 nv_file_st.crc = crc32(nv_file_Bin[8:g_nv_env.flash_size])
/device/soc/hisilicon/hi3861v100/sdk_liteos/tools/nvtool/
H A Dbuild_nv.py54 ("crc", HI_U32),
240 nv_file_st.crc = crc32(nv_file_Bin[8:g_nv_env.flash_size])
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/
H A Ddrv_hdmi_debug.c2634 hi_u32 crc[2] = {0}; in debug_frl_crc_check() local
2643 crc[0] = hdmi_reg_read_u32(0x11143838); in debug_frl_crc_check()
2644 crc[1] = hdmi_reg_read_u32(0x11143180); in debug_frl_crc_check()
2647 hdmi_dbg_print("CRC TX:0x%x, RX:0x%x\n", crc[1], crc[0]); in debug_frl_crc_check()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_edid.c1607 u8 csum = 0, crc = 0; in drm_edid_block_checksum() local
1613 crc = 0x100 - csum; in drm_edid_block_checksum()
1615 return crc; in drm_edid_block_checksum()

Completed in 103 milliseconds