/linux/fs/exfat/ |
A D | misc.c | 139 u16 exfat_calc_chksum16(void *data, int len, u16 chksum, int type) in exfat_calc_chksum16() argument 147 chksum = ((chksum << 15) | (chksum >> 1)) + *c; in exfat_calc_chksum16() 149 return chksum; in exfat_calc_chksum16() 152 u32 exfat_calc_chksum32(void *data, int len, u32 chksum, int type) in exfat_calc_chksum32() argument 161 chksum = ((chksum << 31) | (chksum >> 1)) + *c; in exfat_calc_chksum32() 163 return chksum; in exfat_calc_chksum32()
|
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()
|
A D | dir.c | 500 u16 chksum; in exfat_update_dir_chksum() local 509 chksum = exfat_calc_chksum16(fep, DENTRY_SIZE, 0, CS_DIR_ENTRY); in exfat_update_dir_chksum() 517 chksum = exfat_calc_chksum16(ep, DENTRY_SIZE, chksum, in exfat_update_dir_chksum() 522 fep->dentry.file.checksum = cpu_to_le16(chksum); in exfat_update_dir_chksum() 597 unsigned short chksum = 0; in exfat_update_dir_chksum_with_entry_set() local 602 chksum = exfat_calc_chksum16(ep, DENTRY_SIZE, chksum, in exfat_update_dir_chksum_with_entry_set() 607 ep->dentry.file.checksum = cpu_to_le16(chksum); in exfat_update_dir_chksum_with_entry_set()
|
A D | super.c | 530 u32 chksum = 0; in exfat_verify_boot_region() local 548 chksum = exfat_calc_chksum32(bh->b_data, sb->s_blocksize, in exfat_verify_boot_region() 549 chksum, sn ? CS_DEFAULT : CS_BOOT_SECTOR); in exfat_verify_boot_region() 560 if (le32_to_cpu(*p_chksum) != chksum) { in exfat_verify_boot_region() 562 le32_to_cpu(*p_chksum), chksum); in exfat_verify_boot_region()
|
/linux/drivers/iio/chemical/ |
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()
|
/linux/drivers/firmware/efi/ |
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()
|
/linux/arch/alpha/include/asm/ |
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()
|
/linux/fs/affs/ |
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()
|
/linux/drivers/memory/ |
A D | brcmstb_dpfe.c | 169 unsigned int chksum; member 439 unsigned int i, chksum, chksum_idx; in __send_command() local 462 chksum = get_msg_chksum(msg, chksum_idx); in __send_command() 467 writel_relaxed(chksum, regs + DCPU_MSG_RAM(i)); in __send_command() 503 chksum = get_msg_chksum(result, chksum_idx); in __send_command() 504 if (chksum != result[chksum_idx]) in __send_command() 556 init->chksum = (is_big_endian) in __verify_firmware() 686 ret = __verify_fw_checksum(&init, priv, header, init.chksum); in brcmstb_dpfe_download_firmware()
|
/linux/fs/f2fs/ |
A D | inode.c | 149 __u32 chksum, chksum_seed; in f2fs_inode_chksum() local 154 chksum = f2fs_chksum(sbi, sbi->s_chksum_seed, (__u8 *)&ino, in f2fs_inode_chksum() 156 chksum_seed = f2fs_chksum(sbi, chksum, (__u8 *)&gen, sizeof(gen)); in f2fs_inode_chksum() 158 chksum = f2fs_chksum(sbi, chksum_seed, (__u8 *)ri, offset); in f2fs_inode_chksum() 159 chksum = f2fs_chksum(sbi, chksum, (__u8 *)&dummy_cs, cs_size); in f2fs_inode_chksum() 161 chksum = f2fs_chksum(sbi, chksum, (__u8 *)ri + offset, in f2fs_inode_chksum() 163 return chksum; in f2fs_inode_chksum()
|
/linux/drivers/scsi/aic94xx/ |
A D | aic94xx_sds.c | 378 __le32 chksum; member 386 __le32 chksum; member 403 u16 chksum; member 637 u16 chksum = 0; in asd_calc_flash_chksum() local 640 chksum += *p++; in asd_calc_flash_chksum() 642 return chksum; in asd_calc_flash_chksum() 680 ms->chksum = le16_to_cpu((__force __le16) ms->chksum); in asd_validate_ms()
|
/linux/drivers/scsi/ |
A D | advansys.c | 592 ushort chksum; member 3904 u32 chksum; in AscLoadMicroCode() local 3924 return chksum; in AscLoadMicroCode() 8923 ushort chksum; in AscInitFromEEP() local 8979 if (chksum != eep_config->chksum) { in AscInitFromEEP() 9617 chksum = 0; in AdvSet3550EEPConfig() 9684 chksum = 0; in AdvSet38C0800EEPConfig() 9751 chksum = 0; in AdvSet38C1600EEPConfig() 9821 chksum = 0; in AdvGet3550EEPConfig() 9864 chksum = 0; in AdvGet38C0800EEPConfig() [all …]
|
A D | a100u2w.c | 294 u8 *np, chksum = 0; in se2_rd_all() local 305 chksum += *np++; in se2_rd_all() 307 if (nvramp->CheckSum != (u8) chksum) in se2_rd_all() 322 u8 *np, *np1, chksum = 0; in se2_update_all() local 327 chksum += *np++; in se2_update_all() 328 *np = chksum; in se2_update_all()
|
/linux/drivers/input/touchscreen/ |
A D | hycon-hy46xx.c | 84 u8 chksum = 0; in hycon_hy46xx_check_checksum() local 88 chksum += buf[i]; in hycon_hy46xx_check_checksum() 90 if (chksum == buf[HY46XX_CHKSUM_CODE]) in hycon_hy46xx_check_checksum() 95 chksum, buf[HY46XX_CHKSUM_CODE]); in hycon_hy46xx_check_checksum()
|
/linux/drivers/scsi/qla2xxx/ |
A D | qla_sup.c | 551 uint16_t cnt, chksum; in qla2xxx_find_flt_start() local 616 chksum += le16_to_cpu(*wptr); in qla2xxx_find_flt_start() 617 if (chksum) { in qla2xxx_find_flt_start() 675 uint16_t cnt, chksum; in qla2xxx_get_flt_info() local 701 chksum += le16_to_cpu(*wptr); in qla2xxx_get_flt_info() 702 if (chksum) { in qla2xxx_get_flt_info() 952 uint16_t cnt, chksum; in qla2xxx_get_fdt_info() local 966 chksum += le16_to_cpu(*wptr); in qla2xxx_get_fdt_info() 967 if (chksum) { in qla2xxx_get_fdt_info() 1100 uint16_t cnt, chksum; in qla2xxx_flash_npiv_conf() local [all …]
|
A D | qla_attr.c | 238 uint32_t chksum; in qla2x00_sysfs_write_nvram() local 240 chksum = 0; in qla2x00_sysfs_write_nvram() 242 chksum += le32_to_cpu(*iter); in qla2x00_sysfs_write_nvram() 243 chksum = ~chksum + 1; in qla2x00_sysfs_write_nvram() 244 *iter = cpu_to_le32(chksum); in qla2x00_sysfs_write_nvram() 247 uint8_t chksum; in qla2x00_sysfs_write_nvram() local 250 chksum = 0; in qla2x00_sysfs_write_nvram() 252 chksum += *iter++; in qla2x00_sysfs_write_nvram() 253 chksum = ~chksum + 1; in qla2x00_sysfs_write_nvram() 254 *iter = chksum; in qla2x00_sysfs_write_nvram()
|
/linux/drivers/mfd/ |
A D | ipaq-micro.c | 155 rx->chksum = ch; in micro_process_char() 159 rx->chksum += ch; in micro_process_char() 165 if (ch == rx->chksum) in micro_process_char()
|
/linux/drivers/pnp/isapnp/ |
A D | core.c | 283 unsigned char chksum = 0x00; in isapnp_isolate() local 313 chksum |= (1 << (i - 65)); in isapnp_isolate() 315 if (checksum != 0x00 && checksum == chksum) { in isapnp_isolate() 339 chksum = 0x00; in isapnp_isolate()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_fw_hdr.h | 116 __le32 chksum; /* CRC-32 */ member
|
/linux/include/linux/mfd/ |
A D | ipaq-micro.h | 66 unsigned char chksum; member
|
/linux/drivers/firmware/ |
A D | pcdp.h | 99 u8 chksum; member
|
/linux/drivers/net/ethernet/brocade/bna/ |
A D | bfa_defs_mfg_comm.h | 136 u8 chksum; /*!< u8 checksum */ member
|
/linux/drivers/net/wireless/intersil/p54/ |
A D | p54usb.h | 74 __le32 chksum; member
|
/linux/drivers/scsi/bfa/ |
A D | bfa_defs.h | 107 u8 chksum; /* u8 checksum */ member 715 u16 chksum; member 738 u16 chksum; member
|
/linux/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_hw_api_cmd.c | 200 u8 chksum; in prepare_cell_ctrl() local 207 chksum = xor_chksum_set(&ctrl); in prepare_cell_ctrl() 209 ctrl |= HINIC_API_CMD_CELL_CTRL_SET(chksum, XOR_CHKSUM); in prepare_cell_ctrl()
|