Home | History | Annotate | Download | only in svhlabel

Lines Matching defs:vh

109 	struct sgi_boot_block  *vh;
116 perror("seek vh");
120 perror("read vh");
123 vh = convert_sgi_boot_block(buf);
125 if (vh->magic != SGI_BOOT_BLOCK_MAGIC)
133 if (vh->partitions[i].blocks == 0)
139 switch (vh->partitions[i].type) {
145 if (is_efs(sd, vh->partitions[i].first)) {
147 npe.p_size = vh->partitions[i].blocks;
148 npe.p_offset = vh->partitions[i].first;
156 if (label.d_secperunit != (uint32_t)vh->partitions[i].blocks)
158 label.d_secperunit = vh->partitions[i].blocks;
238 struct sgi_boot_block *vh;
241 vh = (struct sgi_boot_block *)buf;
243 BE32TOH(vh->magic);
244 BE16TOH(vh->root);
245 BE16TOH(vh->swap);
247 BE16TOH(vh->dp.dp_cyls);
248 BE16TOH(vh->dp.dp_shd0);
249 BE16TOH(vh->dp.dp_trks0);
250 BE16TOH(vh->dp.dp_secs);
251 BE16TOH(vh->dp.dp_secbytes);
252 BE16TOH(vh->dp.dp_interleave);
253 BE32TOH(vh->dp.dp_flags);
254 BE32TOH(vh->dp.dp_datarate);
255 BE32TOH(vh->dp.dp_nretries);
256 BE32TOH(vh->dp.dp_mspw);
257 BE16TOH(vh->dp.dp_xgap1);
258 BE16TOH(vh->dp.dp_xsync);
259 BE16TOH(vh->dp.dp_xrdly);
260 BE16TOH(vh->dp.dp_xgap2);
261 BE16TOH(vh->dp.dp_xrgate);
262 BE16TOH(vh->dp.dp_xwcont);
265 BE32TOH(vh->voldir[i].block);
266 BE32TOH(vh->voldir[i].bytes);
270 BE32TOH(vh->partitions[i].blocks);
271 BE32TOH(vh->partitions[i].first);
272 BE32TOH(vh->partitions[i].type);
275 BE32TOH(vh->checksum);
277 return (vh);