Searched refs:crc_offset (Results 1 – 6 of 6) sorted by relevance
| /linux/fs/f2fs/ |
| H A D | checkpoint.c | 1056 size_t crc_offset = 0; in get_checkpoint_version() local 1065 crc_offset = le32_to_cpu((*cp_block)->checksum_offset); in get_checkpoint_version() 1066 if (crc_offset < CP_MIN_CHKSUM_OFFSET || in get_checkpoint_version() 1067 crc_offset > CP_CHKSUM_OFFSET) { in get_checkpoint_version() 1069 f2fs_warn(sbi, "invalid crc_offset: %zu", crc_offset); in get_checkpoint_version()
|
| H A D | super.c | 3968 size_t crc_offset = 0; in sanity_check_raw_super() local 3979 crc_offset = le32_to_cpu(raw_super->checksum_offset); in sanity_check_raw_super() 3980 if (crc_offset != in sanity_check_raw_super() 3983 crc_offset); in sanity_check_raw_super() 3987 if (crc != f2fs_crc32(raw_super, crc_offset)) { in sanity_check_raw_super()
|
| H A D | f2fs.h | 2302 size_t crc_offset = le32_to_cpu(cp->checksum_offset); in cur_cp_crc() local 2303 return le32_to_cpu(*((__le32 *)((unsigned char *)cp + crc_offset))); in cur_cp_crc()
|
| /linux/drivers/iio/imu/ |
| H A D | adis16475.c | 1568 u8 crc_offset = 9; in adis16475_push_single_sample() local 1576 crc_offset = (st->info->flags & ADIS16475_HAS_TIMESTAMP32) ? 16 : 15; in adis16475_push_single_sample() 1586 crc = be16_to_cpu(buffer[crc_offset]); in adis16475_push_single_sample()
|
| /linux/drivers/net/ethernet/emulex/benet/ |
| H A D | be_cmds.c | 2581 u16 img_optype, u32 img_offset, u32 crc_offset) in be_cmd_get_flash_crc() argument 2602 req->params.offset = cpu_to_le32(img_offset + crc_offset); in be_cmd_get_flash_crc() 2604 req->params.offset = cpu_to_le32(crc_offset); in be_cmd_get_flash_crc() 2672 u32 crc_offset; in be_check_flash_crc() local 2681 crc_offset = hdr_size + img_offset + img_size - 4; in be_check_flash_crc() 2684 if (!memcmp(crc, p + crc_offset, 4)) in be_check_flash_crc()
|
| /linux/drivers/hid/ |
| H A D | hid-playstation.c | 814 u8 crc_offset = size - 4; in ps_get_report() local 815 u32 report_crc = get_unaligned_le32(&buf[crc_offset]); in ps_get_report() 817 if (!ps_check_crc32(PS_FEATURE_CRC32_SEED, buf, crc_offset, report_crc)) { in ps_get_report()
|