Home
last modified time | relevance | path

Searched refs:crc_offset (Results 1 – 7 of 7) sorted by relevance

/OK3568_Linux_fs/u-boot/board/varisys/common/
H A Dsys_eeprom.c176 u32 crc, crc_offset = offsetof(struct eeprom, crc); in update_crc() local
178 crc = crc32(0, (void *)&e, crc_offset); in update_crc()
440 u32 crc, crc_offset = offsetof(struct eeprom, crc); in mac_read_from_eeprom_common() local
456 crc = crc32(0, (void *)&e, crc_offset); in mac_read_from_eeprom_common()
457 crcp = (void *)&e + crc_offset; in mac_read_from_eeprom_common()
/OK3568_Linux_fs/u-boot/board/freescale/common/
H A Dsys_eeprom.c422 u32 crc, crc_offset = offsetof(struct eeprom, crc); in mac_read_from_eeprom() local
444 crc_offset = 0x72; in mac_read_from_eeprom()
447 crc = crc32(0, (void *)&e, crc_offset); in mac_read_from_eeprom()
448 crcp = (void *)&e + crc_offset; in mac_read_from_eeprom()
/OK3568_Linux_fs/kernel/fs/f2fs/
H A Dcheckpoint.c834 size_t crc_offset = 0; in get_checkpoint_version() local
843 crc_offset = le32_to_cpu((*cp_block)->checksum_offset); in get_checkpoint_version()
844 if (crc_offset < CP_MIN_CHKSUM_OFFSET || in get_checkpoint_version()
845 crc_offset > CP_CHKSUM_OFFSET) { in get_checkpoint_version()
847 f2fs_warn(sbi, "invalid crc_offset: %zu", crc_offset); in get_checkpoint_version()
H A Dsuper.c3117 size_t crc_offset = 0; in sanity_check_raw_super() local
3128 crc_offset = le32_to_cpu(raw_super->checksum_offset); in sanity_check_raw_super()
3129 if (crc_offset != in sanity_check_raw_super()
3132 crc_offset); in sanity_check_raw_super()
3136 if (!f2fs_crc_valid(sbi, crc, raw_super, crc_offset)) { in sanity_check_raw_super()
H A Df2fs.h2037 size_t crc_offset = le32_to_cpu(cp->checksum_offset); in cur_cp_crc() local
2038 return le32_to_cpu(*((__le32 *)((unsigned char *)cp + crc_offset))); in cur_cp_crc()
/OK3568_Linux_fs/kernel/drivers/hid/
H A Dhid-playstation.c540 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.c2580 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()