Searched refs:crc_offset (Results 1 – 5 of 5) sorted by relevance
| /Linux-v6.1/fs/f2fs/ |
| D | checkpoint.c | 849 size_t crc_offset = 0; in get_checkpoint_version() local 858 crc_offset = le32_to_cpu((*cp_block)->checksum_offset); in get_checkpoint_version() 859 if (crc_offset < CP_MIN_CHKSUM_OFFSET || in get_checkpoint_version() 860 crc_offset > CP_CHKSUM_OFFSET) { in get_checkpoint_version() 862 f2fs_warn(sbi, "invalid crc_offset: %zu", crc_offset); in get_checkpoint_version()
|
| D | super.c | 3264 size_t crc_offset = 0; in sanity_check_raw_super() local 3275 crc_offset = le32_to_cpu(raw_super->checksum_offset); in sanity_check_raw_super() 3276 if (crc_offset != in sanity_check_raw_super() 3279 crc_offset); in sanity_check_raw_super() 3283 if (!f2fs_crc_valid(sbi, crc, raw_super, crc_offset)) { in sanity_check_raw_super()
|
| D | f2fs.h | 2097 size_t crc_offset = le32_to_cpu(cp->checksum_offset); in cur_cp_crc() local 2098 return le32_to_cpu(*((__le32 *)((unsigned char *)cp + crc_offset))); in cur_cp_crc()
|
| /Linux-v6.1/drivers/hid/ |
| D | hid-playstation.c | 540 uint8_t crc_offset = size - 4; in ps_get_report() local 541 uint32_t report_crc = get_unaligned_le32(&buf[crc_offset]); in ps_get_report() 543 if (!ps_check_crc32(PS_FEATURE_CRC32_SEED, buf, crc_offset, report_crc)) { in ps_get_report()
|
| /Linux-v6.1/drivers/net/ethernet/emulex/benet/ |
| D | be_cmds.c | 2580 u16 img_optype, u32 img_offset, u32 crc_offset) in be_cmd_get_flash_crc() argument 2601 req->params.offset = cpu_to_le32(img_offset + crc_offset); in be_cmd_get_flash_crc() 2603 req->params.offset = cpu_to_le32(crc_offset); in be_cmd_get_flash_crc() 2667 u32 crc_offset; in be_check_flash_crc() local 2676 crc_offset = hdr_size + img_offset + img_size - 4; in be_check_flash_crc() 2679 if (!memcmp(crc, p + crc_offset, 4)) in be_check_flash_crc()
|