Lines Matching refs:phead
728 struct nvram_header phead; in nvram_write_header() local
730 memcpy(&phead, &part->header, NVRAM_HEADER_LEN); in nvram_write_header()
731 phead.length = cpu_to_be16(phead.length); in nvram_write_header()
734 rc = ppc_md.nvram_write((char *)&phead, NVRAM_HEADER_LEN, &tmp_index); in nvram_write_header()
987 struct nvram_header phead; in nvram_scan_partitions() local
1015 memcpy(&phead, header, NVRAM_HEADER_LEN); in nvram_scan_partitions()
1017 phead.length = be16_to_cpu(phead.length); in nvram_scan_partitions()
1020 c_sum = nvram_checksum(&phead); in nvram_scan_partitions()
1021 if (c_sum != phead.checksum) { in nvram_scan_partitions()
1024 phead.checksum, c_sum); in nvram_scan_partitions()
1028 if (!phead.length) { in nvram_scan_partitions()
1040 memcpy(&tmp_part->header, &phead, NVRAM_HEADER_LEN); in nvram_scan_partitions()
1044 cur_index += phead.length * NVRAM_BLOCK_LEN; in nvram_scan_partitions()