Lines Matching refs:head

64 	struct spdk_gpt_header *head;  in test_read_header()  local
81 head = (struct spdk_gpt_header *)(gpt->buf + GPT_PRIMARY_PARTITION_TABLE_LBA * gpt->sector_size); in test_read_header()
82 to_le32(&head->header_size, 0x258); in test_read_header()
87 head->header_size = sizeof(*head); in test_read_header()
88 to_le32(&head->header_crc32, 0x22D18C80); in test_read_header()
93 to_le32(&head->header_crc32, 0xC5B2117E); in test_read_header()
98 to_le32(&head->header_crc32, 0xD637335A); in test_read_header()
99 head->gpt_signature[0] = 'E'; in test_read_header()
100 head->gpt_signature[1] = 'F'; in test_read_header()
101 head->gpt_signature[2] = 'I'; in test_read_header()
102 head->gpt_signature[3] = ' '; in test_read_header()
103 head->gpt_signature[4] = 'P'; in test_read_header()
104 head->gpt_signature[5] = 'A'; in test_read_header()
105 head->gpt_signature[6] = 'R'; in test_read_header()
106 head->gpt_signature[7] = 'T'; in test_read_header()
111 to_le32(&head->header_crc32, 0xB3CDB2D2); in test_read_header()
112 to_le64(&head->my_lba, 0x1); in test_read_header()
117 to_le32(&head->header_crc32, 0x5531F2F0); in test_read_header()
120 to_le64(&head->first_usable_lba, 0xA); in test_read_header()
121 to_le64(&head->last_usable_lba, 0xF4240); in test_read_header()
132 struct spdk_gpt_header *head; in test_read_partitions() local
149 head = (struct spdk_gpt_header *)(gpt->buf + GPT_PRIMARY_PARTITION_TABLE_LBA * gpt->sector_size); in test_read_partitions()
150 gpt->header = head; in test_read_partitions()
151 to_le32(&head->num_partition_entries, 0x100); in test_read_partitions()
156 to_le32(&head->header_crc32, 0x573857BE); in test_read_partitions()
157 to_le32(&head->num_partition_entries, 0x40); in test_read_partitions()
158 to_le32(&head->size_of_partition_entry, 0x0); in test_read_partitions()
163 to_le32(&head->header_crc32, 0x5279B712); in test_read_partitions()
164 to_le32(&head->size_of_partition_entry, 0x80); in test_read_partitions()
165 to_le64(&head->partition_entry_lba, 0x64); in test_read_partitions()
170 to_le32(&head->header_crc32, 0xEC093B43); in test_read_partitions()
171 to_le64(&head->partition_entry_lba, 0x20); in test_read_partitions()
172 to_le32(&head->partition_entry_array_crc32, 0x0); in test_read_partitions()
177 to_le32(&head->header_crc32, 0xE1A08822); in test_read_partitions()
178 to_le32(&head->partition_entry_array_crc32, 0xEBEE44FB); in test_read_partitions()
179 to_le32(&head->num_partition_entries, 0x80); in test_read_partitions()
191 struct spdk_gpt_header *head; in test_parse_mbr_and_primary() local
228 head = (struct spdk_gpt_header *)(gpt->buf + GPT_PRIMARY_PARTITION_TABLE_LBA * gpt->sector_size); in test_parse_mbr_and_primary()
229 head->header_size = sizeof(*head); in test_parse_mbr_and_primary()
230 head->gpt_signature[0] = 'E'; in test_parse_mbr_and_primary()
231 head->gpt_signature[1] = 'F'; in test_parse_mbr_and_primary()
232 head->gpt_signature[2] = 'I'; in test_parse_mbr_and_primary()
233 head->gpt_signature[3] = ' '; in test_parse_mbr_and_primary()
234 head->gpt_signature[4] = 'P'; in test_parse_mbr_and_primary()
235 head->gpt_signature[5] = 'A'; in test_parse_mbr_and_primary()
236 head->gpt_signature[6] = 'R'; in test_parse_mbr_and_primary()
237 head->gpt_signature[7] = 'T'; in test_parse_mbr_and_primary()
238 to_le32(&head->header_crc32, 0x5531F2F0); in test_parse_mbr_and_primary()
239 to_le64(&head->my_lba, 0x1); in test_parse_mbr_and_primary()
242 to_le64(&head->first_usable_lba, 0xA); in test_parse_mbr_and_primary()
243 to_le64(&head->last_usable_lba, 0xF4240); in test_parse_mbr_and_primary()
248 to_le32(&head->size_of_partition_entry, 0x80); in test_parse_mbr_and_primary()
249 to_le64(&head->partition_entry_lba, 0x20); in test_parse_mbr_and_primary()
250 to_le32(&head->header_crc32, 0x845A09AA); in test_parse_mbr_and_primary()
251 to_le32(&head->partition_entry_array_crc32, 0xEBEE44FB); in test_parse_mbr_and_primary()
252 to_le32(&head->num_partition_entries, 0x80); in test_parse_mbr_and_primary()
263 struct spdk_gpt_header *head; in test_parse_secondary() local
281 head = (struct spdk_gpt_header *)(gpt->buf + gpt->buf_size - gpt->sector_size); in test_parse_secondary()
282 head->header_size = sizeof(*head); in test_parse_secondary()
283 head->gpt_signature[0] = 'E'; in test_parse_secondary()
284 head->gpt_signature[1] = 'F'; in test_parse_secondary()
285 head->gpt_signature[2] = 'I'; in test_parse_secondary()
286 head->gpt_signature[3] = ' '; in test_parse_secondary()
287 head->gpt_signature[4] = 'P'; in test_parse_secondary()
288 head->gpt_signature[5] = 'A'; in test_parse_secondary()
289 head->gpt_signature[6] = 'R'; in test_parse_secondary()
290 head->gpt_signature[7] = 'T'; in test_parse_secondary()
291 to_le32(&head->header_crc32, 0xAA68A167); in test_parse_secondary()
292 to_le64(&head->my_lba, 0x63FFFFF); in test_parse_secondary()
296 to_le64(&head->first_usable_lba, 0xA); in test_parse_secondary()
297 to_le64(&head->last_usable_lba, 0x63FFFDE); in test_parse_secondary()
302 to_le32(&head->size_of_partition_entry, 0x80); in test_parse_secondary()
303 to_le64(&head->partition_entry_lba, 0x63FFFDF); in test_parse_secondary()
304 to_le32(&head->header_crc32, 0x204129E8); in test_parse_secondary()
305 to_le32(&head->partition_entry_array_crc32, 0xEBEE44FB); in test_parse_secondary()
306 to_le32(&head->num_partition_entries, 0x80); in test_parse_secondary()