Lines Matching refs:label

59 #define	BSD_BBSIZE	8192		/* size of boot area, with label */
177 void *label;
178 if (!ptt_read_sector (dev, 0, &label))
181 partition = (BSDRawLabel *) ((char *) label + BSD_LABEL_OFFSET);
183 alpha_bootblock_checksum(label);
187 free (label);
196 BSDRawLabel* label;
213 label = (BSDRawLabel*) (bsd_specific->boot_code + BSD_LABEL_OFFSET);
215 label->d_magic = PED_CPU_TO_LE32 (BSD_DISKMAGIC);
216 label->d_type = PED_CPU_TO_LE16 (BSD_DTYPE_SCSI);
217 label->d_flags = 0;
218 label->d_secsize = PED_CPU_TO_LE16 (dev->sector_size);
219 label->d_nsectors = PED_CPU_TO_LE32 (dev->bios_geom.sectors);
220 label->d_ntracks = PED_CPU_TO_LE32 (dev->bios_geom.heads);
221 label->d_ncylinders = PED_CPU_TO_LE32 (dev->bios_geom.cylinders);
222 label->d_secpercyl = PED_CPU_TO_LE32 (dev->bios_geom.sectors
224 label->d_secperunit
229 label->d_rpm = PED_CPU_TO_LE16 (3600);
230 label->d_interleave = PED_CPU_TO_LE16 (1);;
231 label->d_trackskew = 0;
232 label->d_cylskew = 0;
233 label->d_headswitch = 0;
234 label->d_trkseek = 0;
236 label->d_magic2 = PED_CPU_TO_LE32 (BSD_DISKMAGIC);
237 label->d_bbsize = PED_CPU_TO_LE32 (BSD_BBSIZE);
238 label->d_sbsize = PED_CPU_TO_LE32 (BSD_SBSIZE);
240 label->d_npartitions = 0;
241 label->d_checksum = xbsd_dkcksum (label);
277 BSDRawLabel* label;
289 label = (BSDRawLabel *) (bsd_specific->boot_code + BSD_LABEL_OFFSET);
298 if (!label->d_partitions[i - 1].p_size
299 || !label->d_partitions[i - 1].p_fstype)
301 start = PED_LE32_TO_CPU(label->d_partitions[i - 1].p_offset);
302 end = PED_LE32_TO_CPU(label->d_partitions[i - 1].p_offset)
303 + PED_LE32_TO_CPU(label->d_partitions[i - 1].p_size) - 1;
309 bsd_part_data->type = label->d_partitions[i - 1].p_fstype;
349 BSDRawLabel* label;
359 label = (BSDRawLabel *) (bsd_specific->boot_code + BSD_LABEL_OFFSET);
364 memset (label->d_partitions, 0,
372 label->d_partitions[i - 1].p_fstype = bsd_data->type;
373 label->d_partitions[i - 1].p_offset
375 label->d_partitions[i - 1].p_size
380 label->d_npartitions = PED_CPU_TO_LE16 (max_part) + 1;
381 label->d_checksum = xbsd_dkcksum (label);
625 /* allocate 1 sector for the disk label at the start */