Lines Matching refs:hdr
45 struct sfi_table_header *hdr;
47 hdr = (struct sfi_table_header *)(uintptr_t)(tab->base + tab->ptr);
48 strcpy(hdr->sig, sig);
49 hdr->len = sizeof(*hdr) + ((ulong)entry - tab->entry_start);
50 hdr->rev = 1;
51 strncpy(hdr->oem_id, "U-Boot", SFI_OEM_ID_SIZE);
52 strncpy(hdr->oem_table_id, "Table v1", SFI_OEM_TABLE_ID_SIZE);
53 hdr->csum = 0;
54 hdr->csum = table_compute_checksum(hdr, hdr->len);
55 tab->ptr += hdr->len;