Lines Matching defs:hdr_ptr
319 struct bios_file_header header, *hdr_ptr;
365 hdr_ptr = (struct bios_file_header *)asd_ha->bios_image->data;
367 if ((hdr_ptr->contrl_id.vendor != asd_ha->pcidev->vendor ||
368 hdr_ptr->contrl_id.device != asd_ha->pcidev->device) &&
369 (hdr_ptr->contrl_id.sub_vendor != asd_ha->pcidev->vendor ||
370 hdr_ptr->contrl_id.sub_device != asd_ha->pcidev->device)) {
375 hdr_ptr->contrl_id.vendor,
376 hdr_ptr->contrl_id.device,
377 hdr_ptr->contrl_id.sub_vendor,
378 hdr_ptr->contrl_id.sub_device,
385 if (hdr_ptr->filelen != asd_ha->bios_image->size) {
391 for (i = 0; i < hdr_ptr->filelen; i++)
394 if ((csum & 0x0000ffff) != hdr_ptr->checksum) {
402 &asd_ha->bios_image->data[sizeof(*hdr_ptr)],
403 0, hdr_ptr->filelen-sizeof(*hdr_ptr));
406 &asd_ha->bios_image->data[sizeof(*hdr_ptr)],
407 0, hdr_ptr->filelen-sizeof(*hdr_ptr));
412 0, hdr_ptr->filelen-sizeof(header));