Lines Matching defs:hdr
20 cfg->hdr.version = RSXX_CFG_VERSION;
43 static void config_hdr_be_to_cpu(struct card_cfg_hdr *hdr)
45 hdr->version = be32_to_cpu((__force __be32) hdr->version);
46 hdr->crc = be32_to_cpu((__force __be32) hdr->crc);
49 static void config_hdr_cpu_to_be(struct card_cfg_hdr *hdr)
51 hdr->version = (__force u32) cpu_to_be32(hdr->version);
52 hdr->crc = (__force u32) cpu_to_be32(hdr->crc);
91 if (unlikely(cfg.hdr.version != RSXX_CFG_VERSION)) {
94 cfg.hdr.version);
101 cfg.hdr.crc = config_data_crc32(&cfg);
108 config_hdr_cpu_to_be(&cfg.hdr);
130 config_hdr_be_to_cpu(&card->config.hdr);
132 if (card->config.hdr.version == RSXX_CFG_VERSION) {
144 if (crc != card->config.hdr.crc) {
149 card->config.hdr.crc, crc);
156 } else if (card->config.hdr.version != 0) {
159 card->config.hdr.version);
177 card->config.hdr.version);
179 card->config.hdr.crc);