Lines Matching refs:hdr_ptr
362 struct bios_file_header header, *hdr_ptr;
408 hdr_ptr = (struct bios_file_header *)asd_ha->bios_image->data;
410 if ((hdr_ptr->contrl_id.vendor != asd_ha->pcidev->vendor ||
411 hdr_ptr->contrl_id.device != asd_ha->pcidev->device) &&
412 (hdr_ptr->contrl_id.sub_vendor != asd_ha->pcidev->vendor ||
413 hdr_ptr->contrl_id.sub_device != asd_ha->pcidev->device)) {
418 hdr_ptr->contrl_id.vendor,
419 hdr_ptr->contrl_id.device,
420 hdr_ptr->contrl_id.sub_vendor,
421 hdr_ptr->contrl_id.sub_device,
428 if (hdr_ptr->filelen != asd_ha->bios_image->size) {
434 for (i = 0; i < hdr_ptr->filelen; i++)
437 if ((csum & 0x0000ffff) != hdr_ptr->checksum) {
445 &asd_ha->bios_image->data[sizeof(*hdr_ptr)],
446 0, hdr_ptr->filelen-sizeof(*hdr_ptr));
449 &asd_ha->bios_image->data[sizeof(*hdr_ptr)],
450 0, hdr_ptr->filelen-sizeof(*hdr_ptr));
455 0, hdr_ptr->filelen-sizeof(header));