/openbmc/u-boot/board/gateworks/gw_ventana/ |
H A D | eeprom.c | 22 int chksum; in read_eeprom() local 57 chksum += buf[i]; in read_eeprom() 58 if ((info->chksum[0] != chksum>>8) || in read_eeprom() 59 (info->chksum[1] != (chksum&0xff))) { in read_eeprom() 189 int chksum; in do_econfig() local 194 chksum += buf[i]; in do_econfig() 196 (info->chksum[0] << 8) | info->chksum[1]); in do_econfig() 197 debug("new chksum:0x%04x\n", chksum); in do_econfig() 198 info->chksum[0] = chksum >> 8; in do_econfig() 199 info->chksum[1] = chksum & 0xff; in do_econfig() [all …]
|
/openbmc/u-boot/common/ |
H A D | bloblist.c | 150 u32 chksum; in bloblist_calc_chksum() local 152 chksum = crc32(0, (unsigned char *)hdr, in bloblist_calc_chksum() 155 chksum = crc32(chksum, (void *)rec, rec->hdr_size); in bloblist_calc_chksum() 156 chksum = crc32(chksum, (void *)rec + rec->hdr_size, rec->size); in bloblist_calc_chksum() 159 return chksum; in bloblist_calc_chksum() 178 hdr->chksum = 0; in bloblist_new() 187 u32 chksum; in bloblist_check() local 196 chksum = bloblist_calc_chksum(hdr); in bloblist_check() 197 if (hdr->chksum != chksum) { in bloblist_check() 199 chksum); in bloblist_check() [all …]
|
H A D | s_record.c | 18 unsigned char chksum; /* buffer for checksum */ in srec_decode() local 20 chksum = 0; in srec_decode() 42 chksum += *count; in srec_decode() 95 chksum += v; in srec_decode() 105 chksum += v; in srec_decode() 117 chksum += v; in srec_decode() 125 chksum += v; in srec_decode() 139 chksum += v; in srec_decode() 148 if ((unsigned char)v != (unsigned char)~chksum) { in srec_decode()
|
/openbmc/linux/drivers/input/misc/ |
H A D | ibm-panel.c | 28 u8 chksum; in ibm_panel_calculate_checksum() local 40 chksum = sum & 0xff; in ibm_panel_calculate_checksum() 41 chksum = ~chksum; in ibm_panel_calculate_checksum() 42 chksum++; in ibm_panel_calculate_checksum() 44 return chksum; in ibm_panel_calculate_checksum() 50 u8 chksum; in ibm_panel_process_command() local 58 chksum = ibm_panel_calculate_checksum(panel); in ibm_panel_process_command() 59 if (chksum != panel->command[sizeof(panel->command) - 1]) { in ibm_panel_process_command() 61 "command failed checksum: %u != %u\n", chksum, in ibm_panel_process_command()
|
/openbmc/linux/fs/exfat/ |
H A D | misc.c | 129 u16 exfat_calc_chksum16(void *data, int len, u16 chksum, int type) in exfat_calc_chksum16() argument 137 chksum = ((chksum << 15) | (chksum >> 1)) + *c; in exfat_calc_chksum16() 139 return chksum; in exfat_calc_chksum16() 142 u32 exfat_calc_chksum32(void *data, int len, u32 chksum, int type) in exfat_calc_chksum32() argument 151 chksum = ((chksum << 31) | (chksum >> 1)) + *c; in exfat_calc_chksum32() 153 return chksum; in exfat_calc_chksum32()
|
H A D | nls.c | 657 u32 chksum = 0; in exfat_load_upcase_table() local 695 chksum = exfat_calc_chksum32(bh->b_data, i, chksum, CS_DEFAULT); in exfat_load_upcase_table() 699 if (index >= 0xFFFF && utbl_checksum == chksum) in exfat_load_upcase_table() 703 index, chksum, utbl_checksum); in exfat_load_upcase_table()
|
H A D | dir.c | 506 u16 chksum; in exfat_update_dir_chksum() local 515 chksum = exfat_calc_chksum16(fep, DENTRY_SIZE, 0, CS_DIR_ENTRY); in exfat_update_dir_chksum() 523 chksum = exfat_calc_chksum16(ep, DENTRY_SIZE, chksum, in exfat_update_dir_chksum() 528 fep->dentry.file.checksum = cpu_to_le16(chksum); in exfat_update_dir_chksum() 626 unsigned short chksum = 0; in exfat_update_dir_chksum_with_entry_set() local 631 chksum = exfat_calc_chksum16(ep, DENTRY_SIZE, chksum, in exfat_update_dir_chksum_with_entry_set() 636 ep->dentry.file.checksum = cpu_to_le16(chksum); in exfat_update_dir_chksum_with_entry_set()
|
/openbmc/linux/drivers/iio/chemical/ |
H A D | sps30_serial.c | 124 unsigned int chksum = 0; in sps30_serial_calc_chksum() local 128 chksum += buf[i]; in sps30_serial_calc_chksum() 130 return ~chksum; in sps30_serial_calc_chksum() 136 unsigned char chksum; in sps30_serial_prep_frame() local 149 chksum = sps30_serial_calc_chksum(buf + 1, num - 1); in sps30_serial_prep_frame() 150 num += sps30_serial_put_byte(buf + num, chksum); in sps30_serial_prep_frame() 159 unsigned char chksum; in sps30_serial_frame_valid() local 181 chksum = sps30_serial_calc_chksum(priv->buf + 1, priv->num - 3); in sps30_serial_frame_valid() 182 if (priv->buf[priv->num - 2] != chksum) { in sps30_serial_frame_valid()
|
/openbmc/linux/drivers/firmware/efi/ |
H A D | rci2-table.c | 60 u16 chksum = 0; in checksum() local 66 chksum += *base; in checksum() 73 chksum += *(u16 *)(buf); in checksum() 76 return chksum; in checksum()
|
/openbmc/linux/arch/alpha/include/asm/ |
H A D | hwrpb.h | 152 unsigned long chksum; member 200 unsigned long chksum; member 214 for (l = (unsigned long *) h; l < (unsigned long *) &h->chksum; ++l) in hwrpb_update_checksum() 216 h->chksum = sum; in hwrpb_update_checksum()
|
/openbmc/openbmc/poky/meta/classes-global/ |
H A D | uninative.bbclass | 33 chksum = d.getVarFlag("UNINATIVE_CHECKSUM", d.getVar("BUILD_ARCH")) 34 if not chksum: 38 loaderchksum = loader + ".chksum" 42 if readchksum == chksum: 53 tarballdir = os.path.join(d.getVar("UNINATIVE_DLDIR"), chksum) 65 # and we can't easily put 'chksum' into the url path from a url parameter with 74 …, " ${UNINATIVE_URL}${UNINATIVE_TARBALL} %s/uninative/%s/${UNINATIVE_TARBALL}" % (replace, chksum)) 76 srcuri = d.expand("${UNINATIVE_URL}${UNINATIVE_TARBALL};sha256sum=%s" % chksum) 111 ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux${base_libdir_native}/libc*.so*" % chksum) 115 f.write(chksum)
|
/openbmc/u-boot/arch/x86/cpu/tangier/ |
H A D | sdram.c | 27 char chksum = 0; in sfi_table_check() local 38 chksum += *pos++; in sfi_table_check() 40 if (chksum) in sfi_table_check() 44 return chksum ? -EILSEQ : 0; in sfi_table_check()
|
/openbmc/u-boot/net/ |
H A D | cdp.c | 113 ushort chksum; in cdp_send_trigger() local 212 chksum = cdp_compute_csum((uchar *)net_tx_packet + len, in cdp_send_trigger() 214 if (chksum == 0) in cdp_send_trigger() 215 chksum = 0xFFFF; in cdp_send_trigger() 216 *cp = htons(chksum); in cdp_send_trigger()
|
/openbmc/u-boot/disk/ |
H A D | part_iso.c | 53 unsigned short chksum; in part_get_info_iso_verb() local 111 chksum=0; in part_get_info_iso_verb() 114 chksum += le16_to_cpu(chksumbuf[i]); in part_get_info_iso_verb() 115 if(chksum!=0) { in part_get_info_iso_verb()
|
/openbmc/qemu/tests/avocado/ |
H A D | replay_linux.py | 30 chksum = None variable in ReplayLinux 128 chksum = 'e3c1b309d9203604922d6e255c2c5d098a309c2d46215d8fc026954f3c5c27a0' variable in ReplayLinuxX8664 154 chksum = 'e3c1b309d9203604922d6e255c2c5d098a309c2d46215d8fc026954f3c5c27a0' variable in ReplayLinuxX8664Virtio 177 chksum = '1e18d9c0cf734940c4b5d5ec592facaed2af0ad0329383d5639c997fdf16fe49' variable in ReplayLinuxAarch64
|
/openbmc/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | tx.h | 118 __le16 chksum = 0; in fill_txdesc_checksum_common() local 125 chksum ^= *data++; in fill_txdesc_checksum_common() 127 le32p_replace_bits(&tx_desc->w7, __le16_to_cpu(chksum), in fill_txdesc_checksum_common()
|
/openbmc/linux/fs/affs/ |
H A D | super.c | 341 u32 chksum; in affs_fill_super() local 461 chksum = be32_to_cpu(*(__be32 *)sig); in affs_fill_super() 467 if ((chksum == FS_DCFFS || chksum == MUFS_DCFFS || chksum == FS_DCOFS in affs_fill_super() 468 || chksum == MUFS_DCOFS) && !sb_rdonly(sb)) { in affs_fill_super() 472 switch (chksum) { in affs_fill_super() 506 sb->s_id, chksum); in affs_fill_super()
|
/openbmc/qemu/hw/scsi/ |
H A D | esp-pci.c | 524 uint16_t chksum = 0; in dc390_scsi_realize() local 553 chksum += contents[i] + (((uint16_t)contents[i + 1]) << 8); in dc390_scsi_realize() 555 chksum = 0x1234 - chksum; in dc390_scsi_realize() 556 contents[EE_CHKSUM1] = chksum & 0xff; in dc390_scsi_realize() 557 contents[EE_CHKSUM2] = chksum >> 8; in dc390_scsi_realize()
|
/openbmc/openbmc/poky/scripts/lib/devtool/ |
H A D | sdk.py | 91 chksum = splitline[0] 94 if chksum != curr_chksum: 95 …('File %s changed: old csum = %s, new = %s' % (os.path.join(basepath, fpath), curr_chksum, chksum)) 187 for buildarch, chksum in newsums: 188 …uninative_file = os.path.join('downloads', 'uninative', chksum, '%s-nativesdk-libc.tar.bz2' % buil…
|
/openbmc/linux/drivers/memory/ |
H A D | brcmstb_dpfe.c | 168 unsigned int chksum; member 437 unsigned int i, chksum, chksum_idx; in __send_command() local 463 chksum = get_msg_chksum(msg, chksum_idx); in __send_command() 468 writel_relaxed(chksum, regs + DCPU_MSG_RAM(i)); in __send_command() 504 chksum = get_msg_chksum(result, chksum_idx); in __send_command() 505 if (chksum != result[chksum_idx]) in __send_command() 557 init->chksum = (is_big_endian) in __verify_firmware() 687 ret = __verify_fw_checksum(&init, priv, header, init.chksum); in brcmstb_dpfe_download_firmware()
|
/openbmc/openbmc/poky/meta/recipes-support/lzo/lzo/ |
H A D | run-ptest | 16 ./chksum
|
/openbmc/linux/fs/f2fs/ |
H A D | inode.c | 143 __u32 chksum, chksum_seed; in f2fs_inode_chksum() local 148 chksum = f2fs_chksum(sbi, sbi->s_chksum_seed, (__u8 *)&ino, in f2fs_inode_chksum() 150 chksum_seed = f2fs_chksum(sbi, chksum, (__u8 *)&gen, sizeof(gen)); in f2fs_inode_chksum() 152 chksum = f2fs_chksum(sbi, chksum_seed, (__u8 *)ri, offset); in f2fs_inode_chksum() 153 chksum = f2fs_chksum(sbi, chksum, (__u8 *)&dummy_cs, cs_size); in f2fs_inode_chksum() 155 chksum = f2fs_chksum(sbi, chksum, (__u8 *)ri + offset, in f2fs_inode_chksum() 157 return chksum; in f2fs_inode_chksum()
|
/openbmc/openbmc/poky/meta/recipes-extended/unzip/unzip/ |
H A D | CVE-2021-4217.patch | 62 chksum = crc32(chksum, (uch *)(G.filename_full),
|
/openbmc/u-boot/test/ |
H A D | bloblist.c | 143 hdr->chksum++; in bloblist_test_checksum() 145 hdr->chksum--; in bloblist_test_checksum()
|
/openbmc/u-boot/include/ |
H A D | bloblist.h | 76 u32 chksum; member
|