Lines Matching refs:hdr
283 struct img_header *hdr;
315 hdr = (struct img_header *) buf;
317 hdr->checksum = htonl(csum);
318 hdr->image_size = htonl(buflen - sizeof(struct img_header));
319 hdr->kernel_size = htonl(kernel_info.write_size);
320 hdr->header_len = sizeof(struct img_header);
321 strncpy(hdr->model, model, sizeof(hdr->model));
322 strncpy(hdr->signature, signature, sizeof(hdr->signature));
323 strncpy(hdr->version, version, sizeof(hdr->version));
324 strncpy(hdr->region, region, sizeof(hdr->region));