Home | History | Annotate | Download | only in arch

Lines Matching defs:bb

114 	struct vax_boot_block	bb;
120 __CTASSERT(sizeof(bb)==VAX_BOOT_BLOCK_BLOCKSIZE);
122 rv = pread(params->fsfd, &bb, sizeof(bb), VAX_BOOT_BLOCK_OFFSET);
126 } else if (rv != sizeof(bb)) {
131 if (bb.bb_id_offset*2 >= VAX_BOOT_BLOCK_BLOCKSIZE
132 || bb.bb_magic1 != VAX_BOOT_MAGIC1) {
138 bb.bb_id_offset = 1;
139 bb.bb_mbone = 0;
140 bb.bb_lbn_hi = 0;
141 bb.bb_lbn_low = 0;
146 sum = compute_sunsum((uint16_t *)&bb);
147 if (! set_sunsum(params, (uint16_t *)&bb, sum))
157 rv = pwrite(params->fsfd, &bb, sizeof(bb), VAX_BOOT_BLOCK_OFFSET);
161 } else if (rv != sizeof(bb)) {
173 struct vax_boot_block *bb;
227 bb = (struct vax_boot_block*)bootstrapbuf;
245 bb->bb_lbn_hi = htole16((uint16_t) (startblock >> 16));
246 bb->bb_lbn_low = htole16((uint16_t) (startblock >> 0));
252 sum = compute_sunsum((uint16_t *)bb);
253 if (! set_sunsum(params, (uint16_t *)bb, sum))
259 printf("Bootstrap sector count: %u\n", le32toh(bb->bb_size));