Lines Matching refs:hdr_ptr
333 struct bios_file_header header, *hdr_ptr;
379 hdr_ptr = (struct bios_file_header *)asd_ha->bios_image->data;
381 if ((hdr_ptr->contrl_id.vendor != asd_ha->pcidev->vendor ||
382 hdr_ptr->contrl_id.device != asd_ha->pcidev->device) &&
383 (hdr_ptr->contrl_id.sub_vendor != asd_ha->pcidev->vendor ||
384 hdr_ptr->contrl_id.sub_device != asd_ha->pcidev->device)) {
389 hdr_ptr->contrl_id.vendor,
390 hdr_ptr->contrl_id.device,
391 hdr_ptr->contrl_id.sub_vendor,
392 hdr_ptr->contrl_id.sub_device,
399 if (hdr_ptr->filelen != asd_ha->bios_image->size) {
405 for (i = 0; i < hdr_ptr->filelen; i++)
408 if ((csum & 0x0000ffff) != hdr_ptr->checksum) {
416 &asd_ha->bios_image->data[sizeof(*hdr_ptr)],
417 0, hdr_ptr->filelen-sizeof(*hdr_ptr));
420 &asd_ha->bios_image->data[sizeof(*hdr_ptr)],
421 0, hdr_ptr->filelen-sizeof(*hdr_ptr));
426 0, hdr_ptr->filelen-sizeof(header));