Searched refs:crc_offset (Results 1 – 4 of 4) sorted by relevance
820 size_t crc_offset = 0; in get_checkpoint_version() local829 crc_offset = le32_to_cpu((*cp_block)->checksum_offset); in get_checkpoint_version()830 if (crc_offset < CP_MIN_CHKSUM_OFFSET || in get_checkpoint_version()831 crc_offset > CP_CHKSUM_OFFSET) { in get_checkpoint_version()833 f2fs_warn(sbi, "invalid crc_offset: %zu", crc_offset); in get_checkpoint_version()
2748 size_t crc_offset = 0; in sanity_check_raw_super() local2759 crc_offset = le32_to_cpu(raw_super->checksum_offset); in sanity_check_raw_super()2760 if (crc_offset != in sanity_check_raw_super()2763 crc_offset); in sanity_check_raw_super()2767 if (!f2fs_crc_valid(sbi, crc, raw_super, crc_offset)) { in sanity_check_raw_super()
1865 size_t crc_offset = le32_to_cpu(cp->checksum_offset); in cur_cp_crc() local1866 return le32_to_cpu(*((__le32 *)((unsigned char *)cp + crc_offset))); in cur_cp_crc()
2578 u16 img_optype, u32 img_offset, u32 crc_offset) in be_cmd_get_flash_crc() argument2599 req->params.offset = cpu_to_le32(img_offset + crc_offset); in be_cmd_get_flash_crc()2601 req->params.offset = cpu_to_le32(crc_offset); in be_cmd_get_flash_crc()2665 u32 crc_offset; in be_check_flash_crc() local2674 crc_offset = hdr_size + img_offset + img_size - 4; in be_check_flash_crc()2677 if (!memcmp(crc, p + crc_offset, 4)) in be_check_flash_crc()