/src/common/lib/libc/quad/ |
adddi3.c | 55 union uu aa, bb, sum; local in function:__adddi3 58 bb.q = b; 59 sum.ul[L] = aa.ul[L] + bb.ul[L]; 60 sum.ul[H] = aa.ul[H] + bb.ul[H] + (sum.ul[L] < bb.ul[L]);
|
anddi3.c | 53 union uu aa, bb; local in function:__anddi3 56 bb.q = b; 57 aa.ul[0] &= bb.ul[0]; 58 aa.ul[1] &= bb.ul[1];
|
cmpdi2.c | 55 union uu aa, bb; local in function:__cmpdi2 58 bb.q = b; 59 return (aa.sl[H] < bb.sl[H] ? 0 : aa.sl[H] > bb.sl[H] ? 2 : 60 aa.ul[L] < bb.ul[L] ? 0 : aa.ul[L] > bb.ul[L] ? 2 : 1);
|
iordi3.c | 53 union uu aa, bb; local in function:__iordi3 56 bb.q = b; 57 aa.ul[0] |= bb.ul[0]; 58 aa.ul[1] |= bb.ul[1];
|
subdi3.c | 54 union uu aa, bb, diff; local in function:__subdi3 57 bb.q = b; 58 diff.ul[L] = aa.ul[L] - bb.ul[L]; 59 diff.ul[H] = aa.ul[H] - bb.ul[H] - (diff.ul[L] > aa.ul[L]);
|
ucmpdi2.c | 54 union uu aa, bb; local in function:__ucmpdi2 57 bb.uq = b; 58 return (aa.ul[H] < bb.ul[H] ? 0 : aa.ul[H] > bb.ul[H] ? 2 : 59 aa.ul[L] < bb.ul[L] ? 0 : aa.ul[L] > bb.ul[L] ? 2 : 1);
|
xordi3.c | 53 union uu aa, bb; local in function:__xordi3 56 bb.q = b; 57 aa.ul[0] ^= bb.ul[0]; 58 aa.ul[1] ^= bb.ul[1];
|
/src/usr.sbin/installboot/arch/ |
sparc64.c | 92 char bb[SPARC64_BOOT_BLOCK_MAX_SIZE]; local in function:sparc64_clearboot 106 rv = pread(params->fsfd, &bb, sizeof(bb), SPARC64_BOOT_BLOCK_OFFSET); 110 } else if (rv != sizeof(bb)) { 116 memset(&bb, 0, sizeof(bb)); 124 rv = pwrite(params->fsfd, &bb, sizeof(bb), SPARC64_BOOT_BLOCK_OFFSET); 128 } else if (rv != sizeof(bb)) { 139 char bb[SPARC64_BOOT_BLOCK_MAX_SIZE] local in function:sparc64_setboot [all...] |
x68k.c | 95 uint8_t *bb) 100 assert(bb != NULL); 102 memset(bb, 0, X68K_LABELOFFSET); 110 char bb[X68K_BOOT_BLOCK_MAX_SIZE]; local in function:x68k_setboot 151 memset(&bb, 0, sizeof bb); 152 rv = read(params->s1fd, &bb, sizeof bb); 158 memcpy(&bb[X68K_LABELOFFSET], &label, sizeof label); 172 rv = pwrite(params->fsfd, &bb, X68K_BOOT_BLOCK_MAX_SIZE [all...] |
hppa.c | 78 char bb[HPPA_BOOT_BLOCK_SIZE]; local in function:hppa_clearboot 89 rv = pread(params->fsfd, bb, sizeof bb, 0); 93 } else if (rv != sizeof bb) { 99 memset(bb, 0, HPPA_LABELOFFSET); 101 memset(&bb[eol], 0, sizeof bb - eol); 112 rv = pwrite(params->fsfd, bb, sizeof bb, 0); 130 char bb[HPPA_BOOT_BLOCK_SIZE] local in function:hppa_setboot [all...] |
vax.c | 114 struct vax_boot_block bb; local in function:vax_clearboot 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 173 struct vax_boot_block *bb; local in function:vax_setboot [all...] |
alpha.c | 115 static void resum(ib_params *, struct alpha_boot_block * const bb, 136 struct alpha_boot_block bb; local in function:alpha_clearboot 150 rv = pread(params->fsfd, &bb, sizeof(bb), ALPHA_BOOT_BLOCK_OFFSET); 154 } else if (rv != sizeof(bb)) { 158 ALPHA_BOOT_BLOCK_CKSUM(&bb, &cksum); 159 if (cksum != bb.bb_cksum) { // XXX check bb_cksum endian? 162 (unsigned long long)le64toh(bb.bb_cksum), 170 (unsigned long long)le64toh(bb.bb_secstart)); 172 (unsigned long long)le64toh(bb.bb_secsize)) 211 struct alpha_boot_block bb; local in function:alpha_setboot [all...] |
pmax.c | 136 struct pmax_boot_block bb; local in function:pmax_clearboot 144 rv = pread(params->fsfd, &bb, sizeof(bb), PMAX_BOOT_BLOCK_OFFSET); 148 } else if (rv != sizeof(bb)) { 153 if (le32toh(bb.magic) != PMAX_BOOT_MAGIC) { 159 bb.map[0].num_blocks = bb.map[0].start_block = bb.mode = 0; 160 bb.magic = htole32(PMAX_BOOT_MAGIC); 165 sum = compute_sunsum((uint16_t *)&bb); 191 struct pmax_boot_block bb; local in function:pmax_setboot [all...] |
/src/sys/arch/acorn32/stand/lib/ |
riscospart.c | 152 struct filecore_bootblock *bb; local in function:getdisklabel_acorn 161 bb = (struct filecore_bootblock *) buf; 162 if (bb->checksum == filecore_checksum((u_char *)bb)) { 163 if (bb->partition_type == PARTITION_FORMAT_RISCBSD) 164 labelsect = ((bb->partition_cyl_high << 8) + bb->partition_cyl_low) * 165 bb->heads * bb->secspertrack + LABELSECTOR;
|
/src/sys/arch/alpha/stand/mkbootimage/ |
mkbootimage.c | 59 struct alpha_boot_block *bb; local in function:main 132 bb = (struct alpha_boot_block *)outbuf; 133 bb->bb_secsize = howmany(insb.st_size, ALPHA_BOOT_BLOCK_BLOCKSIZE); 134 bb->bb_secstart = 1; 135 bb->bb_flags = 0; 136 ALPHA_BOOT_BLOCK_CKSUM(bb, &bb->bb_cksum); 140 (unsigned long long)bb->bb_secstart); 142 (unsigned long long)bb->bb_secsize); 144 (unsigned long long)bb->bb_cksum) [all...] |
/src/usr.sbin/installboot/ |
bbinfo.c | 62 uint8_t *bb; local in function:shared_bbinfo_clearboot 73 if ((bb = malloc(bbparams->maxsize)) == NULL) { 80 rv = pread(params->fsfd, bb, bbparams->maxsize, bbparams->offset); 90 memset(bb + bbparams->headeroffset, 0, 92 if (callback != NULL && ! (*callback)(params, bbparams, bb)) 103 rv = pwrite(params->fsfd, bb, bbparams->maxsize, bbparams->offset); 119 rv = pwrite(params->fsfd, bb, bbparams->maxsize, 137 if (bb != NULL) 138 free(bb); 146 uint8_t *bb; local in function:shared_bbinfo_setboot [all...] |
/src/sys/arch/arm/arm/ |
disksubr_acorn.c | 184 struct filecore_bootblock *bb; local in function:filecore_label_read 217 bb = (struct filecore_bootblock *)bp->b_data; 221 if (bb->checksum != filecore_checksum((u_char *)bb)) { 232 cyl = bb->partition_cyl_low + (bb->partition_cyl_high << 8); 234 heads = bb->heads; 235 sectors = bb->secspertrack; 239 if (bb->partition_type == PARTITION_FORMAT_RISCBSD) { 245 } else if (bb->partition_type == PARTITION_FORMAT_RISCIX) 326 struct filecore_bootblock *bb; local in function:filecore_label_locate [all...] |
/src/sbin/fsck_lfs/ |
pass5.c | 59 daddr_t bb; /* total number of used blocks (lower bound) */ local in function:pass5 75 bb = ubb = 0; 106 bb += lfs_btofsb(fs, su->su_nbytes + 192 if (lfs_sb_getbfree(fs) > lfs_sb_getdsize(fs) - bb - labelskew || 197 (intmax_t)(lfs_sb_getdsize(fs) - bb - labelskew)); 201 lfs_sb_getdsize(fs) - labelskew - bb) / 2);
|
/src/sys/arch/macppc/stand/installboot/ |
installboot.c | 60 uint8_t *bb; local in function:main 133 bb = calloc(1, MACPPC_BOOT_BLOCK_MAX_SIZE); 134 if (bb == NULL) 138 rv = read(params->s1fd, bb, params->s1stat.st_size); 143 if (memcmp(bb + 1, "ELF", strlen("ELF")) == 0) { 151 bbinfop = (void *)(bb + bbi); 202 if (pwrite(params->fsfd, bb, MACPPC_BOOT_BLOCK_MAX_SIZE, partoff) != 212 free(bb);
|
/src/sys/arch/atari/stand/ahdilabel/ |
write.c | 315 struct bootblock *bb; local in function:invalidate_netbsd_label 320 if ((bb = disk_read (fd, nbdsec, nsec)) == NULL) { 324 if (bb->bb_magic == NBDAMAGIC || bb->bb_magic == AHDIMAGIC) { 325 bb->bb_magic = bb->bb_magic & 0xffffff00; 326 bb->bb_magic = bb->bb_magic | 0x5f; 332 if (!disk_write (fd, nbdsec, nsec, bb)) { 333 free (bb); [all...] |
/src/games/sail/ |
misc.c | 60 int bb, bs, sb, ss, result; local in function:range 68 result = bb = distance(bow2r - bow1r, bow2c - bow1c); 69 if (bb < 5) { 77 result = min(bb, min(bs, min(sb, ss)));
|
/src/sys/arch/atari/atari/ |
disksubr.c | 161 struct bootblock *bb = (struct bootblock *)bp->b_data; local in function:writedisklabel 169 memset(bb, 0, sizeof(*bb)); 171 bb->bb_magic = (blk == 0) ? NBDAMAGIC : AHDIMAGIC; 172 BBSETLABEL(bb, lp); 212 struct bootblock *bb; local in function:bsd_label 216 bb = (struct bootblock *)bp->b_data; 217 end = (uint32_t *)((char *)&bb[1] - sizeof(struct disklabel)); 218 for (p = (uint32_t *)bb; p < end; ++p) { 228 || (char *)dl - (char *)bb == 716 [all...] |
/src/sys/arch/atari/stand/installboot/ |
disklabel.c | 108 struct bootblock bb; local in function:bsd_label 113 if (read(fd, &bb, sizeof(bb)) != sizeof(bb)) 116 p = (struct disklabel *)bb.bb_label; 117 if ((offs == 0 && bb.bb_magic != NBDAMAGIC) || 118 (offs != 0 && bb.bb_magic != AHDIMAGIC) ||
|
/src/usr.sbin/sysinst/arch/acorn32/ |
md.c | 71 static unsigned char bb[DEV_BSIZE]; local in function:md_get_info 72 struct filecore_bootblock *fcbb = (struct filecore_bootblock *)bb; 91 || read(fd, bb, sizeof(bb)) - sizeof(bb) != 0) { 99 if (filecore_checksum(bb) == fcbb->checksum) { 119 (struct riscix_partition_table *)bb; 124 || read(fd, bb, sizeof(bb)) - sizeof(bb) != 0) [all...] |
/src/sbin/efi/ |
setvar.c | 349 boot_var_t *bb; local in function:set_active 357 bb = ev.data; 359 bb->Attributes |= LOAD_OPTION_ACTIVE; 361 bb->Attributes &= (uint32_t)(~LOAD_OPTION_ACTIVE);
|