/linux-6.6.21/drivers/input/misc/ |
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()
|
/linux-6.6.21/fs/exfat/ |
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()
|
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()
|
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()
|
D | super.c | 528 u32 chksum = 0; in exfat_verify_boot_region() local 546 chksum = exfat_calc_chksum32(bh->b_data, sb->s_blocksize, in exfat_verify_boot_region() 547 chksum, sn ? CS_DEFAULT : CS_BOOT_SECTOR); in exfat_verify_boot_region() 558 if (le32_to_cpu(*p_chksum) != chksum) { in exfat_verify_boot_region() 560 le32_to_cpu(*p_chksum), chksum); in exfat_verify_boot_region()
|
/linux-6.6.21/drivers/iio/chemical/ |
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-6.6.21/drivers/firmware/efi/ |
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-6.6.21/arch/alpha/include/asm/ |
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-6.6.21/drivers/net/wireless/realtek/rtw88/ |
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()
|
/linux-6.6.21/fs/affs/ |
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-6.6.21/drivers/memory/ |
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()
|
/linux-6.6.21/fs/f2fs/ |
D | inode.c | 153 __u32 chksum, chksum_seed; in f2fs_inode_chksum() local 158 chksum = f2fs_chksum(sbi, sbi->s_chksum_seed, (__u8 *)&ino, in f2fs_inode_chksum() 160 chksum_seed = f2fs_chksum(sbi, chksum, (__u8 *)&gen, sizeof(gen)); in f2fs_inode_chksum() 162 chksum = f2fs_chksum(sbi, chksum_seed, (__u8 *)ri, offset); in f2fs_inode_chksum() 163 chksum = f2fs_chksum(sbi, chksum, (__u8 *)&dummy_cs, cs_size); in f2fs_inode_chksum() 165 chksum = f2fs_chksum(sbi, chksum, (__u8 *)ri + offset, in f2fs_inode_chksum() 167 return chksum; in f2fs_inode_chksum()
|
/linux-6.6.21/drivers/scsi/aic94xx/ |
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-6.6.21/drivers/scsi/ |
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()
|
D | advansys.c | 592 ushort chksum; member 3913 u32 chksum; in AscLoadMicroCode() local 3922 chksum = AscMemSumLramWord(iop_base, s_addr, mcode_word_size); in AscLoadMicroCode() 3923 ASC_DBG(1, "chksum 0x%lx\n", (ulong)chksum); in AscLoadMicroCode() 3933 return chksum; in AscLoadMicroCode() 4034 unsigned long chksum; in AscInitAsc1000Driver() local 4069 chksum = (fw->data[3] << 24) | (fw->data[2] << 16) | in AscInitAsc1000Driver() 4071 ASC_DBG(1, "_asc_mcode_chksum 0x%lx\n", (ulong)chksum); in AscInitAsc1000Driver() 4073 fw->size - 4) != chksum) { in AscInitAsc1000Driver() 4110 int size, int memsize, int chksum) in AdvLoadMicrocode() argument [all …]
|
/linux-6.6.21/drivers/input/touchscreen/ |
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-6.6.21/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_fw_hdr.h | 116 __le32 chksum; /* CRC-32 */ member
|
/linux-6.6.21/drivers/scsi/qla2xxx/ |
D | qla_sup.c | 551 uint16_t cnt, chksum; in qla2xxx_find_flt_start() local 615 for (chksum = 0; cnt--; wptr++) in qla2xxx_find_flt_start() 616 chksum += le16_to_cpu(*wptr); in qla2xxx_find_flt_start() 617 if (chksum) { in qla2xxx_find_flt_start() 619 "Inconsistent FLTL detected: checksum=0x%x.\n", chksum); in qla2xxx_find_flt_start() 675 uint16_t cnt, chksum; in qla2xxx_get_flt_info() local 700 for (chksum = 0; cnt--; wptr++) in qla2xxx_get_flt_info() 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 [all …]
|
/linux-6.6.21/drivers/mfd/ |
D | ipaq-micro.c | 150 rx->chksum = ch; in micro_process_char() 154 rx->chksum += ch; in micro_process_char() 160 if (ch == rx->chksum) in micro_process_char()
|
/linux-6.6.21/include/linux/mfd/ |
D | ipaq-micro.h | 66 unsigned char chksum; member
|
/linux-6.6.21/drivers/pnp/isapnp/ |
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-6.6.21/drivers/net/ethernet/brocade/bna/ |
D | bfa_defs_mfg_comm.h | 136 u8 chksum; /*!< u8 checksum */ member
|
/linux-6.6.21/drivers/firmware/ |
D | pcdp.h | 99 u8 chksum; member
|
/linux-6.6.21/drivers/net/wireless/intersil/p54/ |
D | p54usb.h | 74 __le32 chksum; member
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | generate_udp_fragments.py | 72 pkt = IP(src=sip,dst=dip) / UDP(sport=sport,dport=dport,chksum=0) / Raw(load=payload)
|