Lines Matching defs:next68klabel
87 struct next68k_disklabel *next68klabel;
101 next68klabel = malloc(NEXT68K_LABEL_SIZE);
102 if (next68klabel == NULL) {
110 rv = pread(params->fsfd, next68klabel, NEXT68K_LABEL_SIZE,
120 if (be32toh(next68klabel->cd_version) == NEXT68K_LABEL_CD_V3) {
121 checksum = &next68klabel->NEXT68K_LABEL_cd_v3_checksum;
123 checksum = &next68klabel->cd_checksum;
125 if (nextstep_checksum (next68klabel, checksum) !=
132 cd_secsize = be32toh(next68klabel->cd_secsize);
161 if (bootsize > be16toh(next68klabel->cd_front) * cd_secsize -
167 fp = be16toh(next68klabel->cd_front);
168 b0 = be32toh(next68klabel->cd_boot_blkno[0]);
169 b1 = be32toh(next68klabel->cd_boot_blkno[1]);
199 if (next68klabel->cd_boot_blkno[0] != (int32_t)htobe32(b0)) {
200 next68klabel->cd_boot_blkno[0] = htobe32(b0);
203 if (next68klabel->cd_boot_blkno[1] != (int32_t)htobe32(b1)) {
204 next68klabel->cd_boot_blkno[1] = htobe32(b1);
223 *checksum = htobe16(nextstep_checksum (next68klabel,
225 rv = pwrite(params->fsfd, next68klabel, NEXT68K_LABEL_SIZE,
268 if (next68klabel)
269 free(next68klabel);