Lines Matching full:crc
34 * Return the compliment of the CRC to ensure compatibility in config_data_crc32()
46 hdr->crc = be32_to_cpu((__force __be32) hdr->crc); in config_hdr_be_to_cpu()
52 hdr->crc = (__force u32) cpu_to_be32(hdr->crc); in config_hdr_cpu_to_be()
98 /* Convert data to little endian for the CRC calculation. */ in rsxx_save_config()
101 cfg.hdr.crc = config_data_crc32(&cfg); in rsxx_save_config()
120 u32 crc; in rsxx_load_config() local
134 * We calculate the CRC with the data in little endian, because in rsxx_load_config()
137 * swap it before calculating the CRC. in rsxx_load_config()
142 /* Check the CRC */ in rsxx_load_config()
143 crc = config_data_crc32(&card->config); in rsxx_load_config()
144 if (crc != card->config.hdr.crc) { in rsxx_load_config()
148 "CRC (sb x%08x is x%08x)\n", in rsxx_load_config()
149 card->config.hdr.crc, crc); in rsxx_load_config()
178 dev_dbg(CARD_TO_DEV(card), "crc: x%08x\n", in rsxx_load_config()
179 card->config.hdr.crc); in rsxx_load_config()