Lines Matching defs:hdr
3345 const struct r92s_fw_hdr *hdr;
3373 if (size < sizeof(*hdr)) {
3378 hdr = (const struct r92s_fw_hdr *)fw->data;
3379 if (hdr->signature != htole16(0x8712) &&
3380 hdr->signature != htole16(0x8192)) {
3383 le16toh(hdr->signature));
3388 le16toh(hdr->version), hdr->month, hdr->day, hdr->hour,
3389 hdr->minute);
3392 if (hdr->privsz != htole32(sizeof(dmem))) {
3398 imemsz = le32toh(hdr->imemsz);
3399 ememsz = le32toh(hdr->sramsz);
3401 if (imemsz > (size_t)(size - sizeof(*hdr)) ||
3402 ememsz > (size_t)(size - sizeof(*hdr) - imemsz)) {
3407 imem = (const uint8_t *)&hdr[1];