Lines Matching refs:NVRAM_HEADER_LEN
39 #define NVRAM_HEADER_LEN sizeof(struct nvram_header) macro
40 #define NVRAM_BLOCK_LEN NVRAM_HEADER_LEN
872 memcpy(&phead, &part->header, NVRAM_HEADER_LEN); in nvram_write_header()
876 rc = ppc_md.nvram_write((char *)&phead, NVRAM_HEADER_LEN, &tmp_index); in nvram_write_header()
1070 for (tmp_index = new_part->index + NVRAM_HEADER_LEN; in nvram_create_partition()
1081 return new_part->index + NVRAM_HEADER_LEN; in nvram_create_partition()
1095 if (part->index + NVRAM_HEADER_LEN == data_index) in nvram_get_partition_size()
1118 return p->index + NVRAM_HEADER_LEN; in nvram_find_partition()
1138 header = kmalloc(NVRAM_HEADER_LEN, GFP_KERNEL); in nvram_scan_partitions()
1146 err = ppc_md.nvram_read(header, NVRAM_HEADER_LEN, &cur_index); in nvram_scan_partitions()
1147 if (err != NVRAM_HEADER_LEN) { in nvram_scan_partitions()
1153 cur_index -= NVRAM_HEADER_LEN; /* nvram_read will advance us */ in nvram_scan_partitions()
1155 memcpy(&phead, header, NVRAM_HEADER_LEN); in nvram_scan_partitions()
1180 memcpy(&tmp_part->header, &phead, NVRAM_HEADER_LEN); in nvram_scan_partitions()