Lines Matching defs:checksum
304 uint32_t checksum;
311 checksum = 0;
320 boot_calc_checksum(sect, sect_size, i == 0, &checksum);
326 exfat_err("failed to read a boot checksum sector\n");
331 for (i = 0; i < sect_size/sizeof(checksum); i++) {
332 if (le32_to_cpu(((__le32 *)sect)[i]) != checksum) {
333 exfat_err("checksum of boot region is not correct. %#x, but expected %#x\n",
334 le32_to_cpu(((__le32 *)sect)[i]), checksum);
570 uint16_t checksum;
574 checksum = 0;
577 exfat_calc_dentry_checksum(file_de, &checksum, true);
580 exfat_calc_dentry_checksum(de, &checksum, false);
582 return checksum;
594 uint16_t checksum;
627 checksum = file_calc_checksum(iter);
629 if (checksum != le16_to_cpu(dentry->file_checksum)) {
631 dentry->file_checksum = cpu_to_le16(checksum);
819 uint16_t checksum;
827 checksum = file_calc_checksum(iter);
828 if (checksum != le16_to_cpu(file_de->file_checksum)) {
830 "the checksum of a file is wrong"))
1046 __le32 checksum;
1085 checksum = 0;
1086 boot_calc_checksum((unsigned char *)upcase, size, false, &checksum);
1087 if (le32_to_cpu(dentry->upcase_checksum) != checksum) {
1089 checksum, le32_to_cpu(dentry->upcase_checksum));