/titanic_50/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_bitmap.c | 319 bmp_set(bmap_chunk_t *cp, u_quad_t bn, uint_t *vp) in bmp_set() argument 326 bn -= cp->c_off; in bmp_set() 327 if (bn < cp->c_clen) { in bmp_set() 328 mask = 1 <<(bn & BMAP_BPW_MASK); in bmp_set() 329 ip = &cp->c_bmp[bn >> BMAP_BPW_SHIFT]; in bmp_set() 330 v = (*vp <<(bn & BMAP_BPW_MASK)) & mask; in bmp_set() 346 bmp_get(bmap_chunk_t *cp, u_quad_t bn) in bmp_get() argument 351 bn -= cp->c_off; in bmp_get() 352 if (bn < cp->c_clen) { in bmp_get() 353 bit = 1 <<(bn & BMAP_BPW_MASK); in bmp_get() [all …]
|
/titanic_50/usr/src/cmd/ndmpd/include/ |
H A D | bitmap.h | 152 #define bm_setone(bmd, bn) bm_set((bmd), (bn), 1, 1) argument 153 #define dbm_setone(bmd, bn) dbm_set((bmd), (bn), 1, 1) argument 154 #define bm_unsetone(bmd, bn) bm_set((bmd), (bn), 1, 0) argument 155 #define dbm_unsetone(bmd, bn) dbm_set((bmd), (bn), 1, 0) argument
|
/titanic_50/usr/src/lib/libvolmgt/common/ |
H A D | volmgt_on_private.c | 137 char *bn = NULL; /* block name */ in _dev_unmount() local 149 if ((bn = (char *)volmgt_getfullblkname(path)) == NULL) { in _dev_unmount() 156 absname = bn; in _dev_unmount() 157 if (realpath(bn, pathbuf) != NULL) in _dev_unmount() 161 (!volmgt_ownspath(absname) && volmgt_symname(bn) == NULL); in _dev_unmount() 171 if (strncmp(bn, vr, strlen(vr)) == 0) { in _dev_unmount() 177 media_info_gotten = get_media_info(bn, &mtype, &mnum, &spcl); in _dev_unmount() 180 mnum, spcl, bn); in _dev_unmount() 186 if (get_media_info(bn, &mtype, &mnum, &spcl)) { in _dev_unmount() 212 mtype, mnum, spcl, bn); in _dev_unmount() [all …]
|
/titanic_50/usr/src/lib/fm/topo/modules/i86pc/hostbridge/ |
H A D | hb_i86pc.c | 37 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) in hb_process() argument 42 if ((hbdid = did_create(mod, bn, 0, hbi, NO_RC, TRUST_BDF)) == NULL) in hb_process() 44 if ((hb = pcihostbridge_declare(mod, ptn, bn, hbi)) == NULL) in hb_process() 56 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) in rc_process() argument 62 if ((hbdid = did_create(mod, bn, 0, hbi, hbi, TRUST_BDF)) == NULL) in rc_process() 64 if ((hb = pciexhostbridge_declare(mod, ptn, bn, hbi)) == NULL) in rc_process() 66 if ((rc = pciexrc_declare(mod, hb, bn, hbi)) == NULL) in rc_process()
|
/titanic_50/usr/src/cmd/rmformat/ |
H A D | rmf_menu.c | 838 diskaddr_t bn; in process_V_flag() local 878 for (bn = 0; bn < (uint32_t)med_info.sm_capacity; in process_V_flag() 879 bn += verify_size) { in process_V_flag() 880 new_per = (bn * 80)/(uint32_t)med_info.sm_capacity; in process_V_flag() 887 verify_size, bn); in process_V_flag() 888 ret = verify(handle, fd, bn, verify_size, read_buf, in process_V_flag() 892 ret = verify(handle, fd, bn, verify_size, in process_V_flag() 901 if ((bn + j) >= capacity) in process_V_flag() 905 "at %llu\n", 1, bn + j); in process_V_flag() 906 ret = verify(handle, fd, bn + j, 1, in process_V_flag() [all …]
|
/titanic_50/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_ufs.c | 168 sbmap(grub_daddr32_t bn) in sbmap() argument 175 if (bn < UFS_NDADDR) { in sbmap() 176 return db[bn]; in sbmap() 181 bn -= UFS_NDADDR; in sbmap() 183 while (bn >= bound) { in sbmap() 185 bn -= bound; in sbmap() 205 index = (bn / bound) % UFS_NINDIR(SUPERBLOCK); in sbmap() 218 index = (bn / bound) % UFS_NINDIR(SUPERBLOCK); in sbmap()
|
/titanic_50/usr/src/cmd/format/ |
H A D | global.h | 149 #define bn2c(bn) (uint_t)((diskaddr_t)(bn) / spc()) argument 150 #define bn2h(bn) (uint_t)(((diskaddr_t)(bn) % spc()) / nsect) argument 151 #define bn2s(bn) (uint_t)(((diskaddr_t)(bn) % spc()) % nsect) argument
|
H A D | analyze.c | 100 static int scan_repair(diskaddr_t bn, int mode); 458 scan_repair(bn, mode) in scan_repair() argument 459 diskaddr_t bn; in scan_repair() 489 status = (*cur_ops->op_rdwr)(DIR_READ, cur_file, bn, 1, 498 buf_is_good ? "soft" : "hard", bn); 499 pr_dblock(fmt_print, bn); 502 status = (*cur_ops->op_repair)(bn, mode); 518 fmt_print("Warning: Block %llu zero-filled.\n", bn); 522 status = (*cur_ops->op_rdwr)(DIR_WRITE, cur_file, bn, 525 status = (*cur_ops->op_rdwr)(DIR_READ, cur_file, bn, [all …]
|
H A D | menu_command.c | 1213 diskaddr_t bn; in c_repair() local 1267 bn = input(FIO_BN, in c_repair() 1275 if (checkmount(bn, bn)) { in c_repair() 1282 if (checkswap(bn, bn)) { in c_repair() 1288 if (checkdevinuse(cur_disk->disk_name, bn, bn, 0, 0)) { in c_repair() 1309 status = (*cur_ops->op_rdwr)(DIR_READ, cur_file, bn, in c_repair() 1336 status = (*cur_ops->op_rdwr)(DIR_READ, cur_file, bn, in c_repair() 1353 fmt_print("block %llu (", bn); in c_repair() 1354 pr_dblock(fmt_print, bn); in c_repair() 1359 status = (*cur_ops->op_repair)(bn, F_NORMAL); in c_repair() [all …]
|
H A D | io.c | 453 blkaddr_t bn; local 855 if (geti(cleantoken, (int *)&bn, (int *)NULL)) 860 if ((bn < bounds->lower) || (bn > bounds->upper)) { 861 err_print("`%lu' is out of range.\n", bn); 867 return (bn); 919 if (geti(cleantoken, (int *)&bn, (int *)NULL)) 924 if ((bn < bounds->lower) || (bn > bounds->upper)) { 925 err_print("`%lu' is out of range.\n", bn); 933 *deflt = bn; 2158 pr_dblock(void (*func)(char *, ...), diskaddr_t bn) in pr_dblock() argument [all …]
|
/titanic_50/usr/src/cmd/lastcomm/ |
H A D | lc_pacct.c | 43 int bn, cc; in lc_pacct() local 62 for (bn = ((unsigned)sb.st_size / BUF_SIZ) + 1; bn >= 0; bn--) { in lc_pacct() 63 if (lseek(fd, (unsigned)bn * BUF_SIZ, 0) == -1) { in lc_pacct()
|
/titanic_50/usr/src/uts/common/fs/ufs/ |
H A D | ufs_extvnops.c | 79 daddr_t bn; in ufs_rdwr_data() local 117 if ((error = bmap_read(ip, offset1, &bn, &contig)) != 0) { in ufs_rdwr_data() 120 ASSERT(!(bn == UFS_HOLE && iswrite)); in ufs_rdwr_data() 121 if (bn == UFS_HOLE) { in ufs_rdwr_data() 167 bp->b_blkno = bn; in ufs_rdwr_data() 249 daddr_t bn; in ufs_alloc_data() local 344 error = bmap_read(ip, uoff, &bn, in ufs_alloc_data() 358 bp->b_blkno = bn; in ufs_alloc_data() 410 error = bmap_read(ip, uoff, &bn, &contig); in ufs_alloc_data() 417 if (bn != UFS_HOLE) { in ufs_alloc_data() [all …]
|
H A D | ufs_directio.c | 336 daddr_t bn; in ufs_directio_write() local 475 error = bmap_read(ip, uoff, &bn, &len); in ufs_directio_write() 476 if (error || bn == UFS_HOLE || len == 0) in ufs_directio_write() 663 error = bmap_read(ip, uoff, &bn, &len); in ufs_directio_write() 666 if (bn == UFS_HOLE || len == 0) in ufs_directio_write() 687 directio_start(ufsvfsp, ip, nbytes, ldbtob(bn), in ufs_directio_write() 807 daddr_t bn; in ufs_directio_read() local 964 error = bmap_read(ip, uoff, &bn, &len); in ufs_directio_read() 968 if (bn == UFS_HOLE) { in ufs_directio_read() 997 ldbtob(bn), iov->iov_base, in ufs_directio_read()
|
H A D | ufs_subr.c | 785 ufs_badblock(struct inode *ip, daddr_t bn) in ufs_badblock() argument 792 ASSERT(bn); in ufs_badblock() 793 if (bn <= 0 || bn > ip->i_fs->fs_size) in ufs_badblock() 794 return (bn); in ufs_badblock() 797 c = dtog(ip->i_fs, bn); in ufs_badblock() 808 if ((bn < cgbase(ip->i_fs, c)) || in ufs_badblock() 809 (bn >= cgsblock(ip->i_fs, c) && bn < cgdmin(ip->i_fs, c)+sum) || in ufs_badblock() 810 (bn >= (unsigned)cgbase(ip->i_fs, c+1))) in ufs_badblock() 811 return (bn); in ufs_badblock() 1072 ufs_fbiwrite(struct fbuf *fbp, struct inode *ip, daddr_t bn, long bsize) in ufs_fbiwrite() argument [all …]
|
/titanic_50/usr/src/uts/common/tnf/ |
H A D | tnf_buf.c | 78 ulong_t tmp_bn, bn, new_bn; in tnfw_b_alloc_block() local 105 bn = fh->next_alloc.block[gen & TNFW_B_ALLOC_LO]; in tnfw_b_alloc_block() 113 if ((new_bn = bn + 1) >= bcount) { in tnfw_b_alloc_block() 124 ((char *)fh + (bn << TNF_BLOCK_SHIFT)); in tnfw_b_alloc_block() 135 bn = fh->next_alloc.block[gen & TNFW_B_ALLOC_LO]; in tnfw_b_alloc_block() 138 if ((new_bn > bn && new_gen == gen) || new_gen > gen) { in tnfw_b_alloc_block() 140 bn = new_bn; in tnfw_b_alloc_block()
|
/titanic_50/usr/src/lib/libnsl/yp/ |
H A D | dbm.c | 345 long bn; in getbit() local 352 bn = bitno / BYTESIZ; in getbit() 353 i = bn % DBLKSIZ; in getbit() 354 b = bn / DBLKSIZ; in getbit() 373 long bn; in setbit() local 383 bn = bitno / BYTESIZ; in setbit() 384 i = bn % DBLKSIZ; in setbit() 385 b = bn / DBLKSIZ; in setbit()
|
/titanic_50/usr/src/ucblib/libdbm/ |
H A D | dbm.c | 355 long bn; in getbit() local 362 bn = bitno / BYTESIZ; in getbit() 363 i = bn % DBLKSIZ; in getbit() 364 b = bn / DBLKSIZ; in getbit() 382 long bn; in setbit() local 392 bn = bitno / BYTESIZ; in setbit() 393 i = bn % DBLKSIZ; in setbit() 394 b = bn / DBLKSIZ; in setbit()
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | ndbm.c | 612 long bn; in dbm_access() local 623 bn = my_bitno / BYTESIZ; in dbm_access() 624 i = bn % DBLKSIZ; in dbm_access() 625 b = bn / DBLKSIZ; in dbm_access() 668 long bn; in getbit() local 675 bn = db->dbm_bitno / BYTESIZ; in getbit() 676 i = bn % DBLKSIZ; in getbit() 677 b = bn / DBLKSIZ; in getbit() 691 long bn; in setbit() local 697 bn = db->dbm_bitno / BYTESIZ; in setbit() [all …]
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | ndbm.c | 720 long bn; in dbm_access() local 733 bn = my_bitno / BYTESIZ; in dbm_access() 734 i = bn % DBLKSIZ; in dbm_access() 735 b = bn / DBLKSIZ; in dbm_access() 784 long bn; in getbit() local 791 bn = db->dbm_bitno / BYTESIZ; in getbit() 792 i = bn % DBLKSIZ; in getbit() 793 b = bn / DBLKSIZ; in getbit() 809 long bn; in setbit() local 816 bn = db->dbm_bitno / BYTESIZ; in setbit() [all …]
|
/titanic_50/usr/src/uts/sun4u/sys/ |
H A D | prom_plat.h | 279 extern int prom_attach_notice(int bn); 280 extern int prom_detach_notice(int bn); 281 extern int prom_opl_switch_console(int bn);
|
/titanic_50/usr/src/uts/common/vm/ |
H A D | hat_refmod.c | 92 uint_t bn; /* bit number */ in hat_startstat() local 126 for (bn = 1, id = 2; bn < (nbits - 1); bn++, id <<= 1) in hat_startstat() 129 if (bn >= (nbits - 1)) { in hat_startstat()
|
/titanic_50/usr/src/uts/i86pc/io/dr/ |
H A D | dr_quiesce.c | 428 char *bn; in dr_resume_devices() local 448 if ((bn = ddi_binding_name(dip)) != NULL) { in dr_resume_devices() 449 major = ddi_name_to_major(bn); in dr_resume_devices() 451 bn = "<null>"; in dr_resume_devices() 453 if (!dr_bypass_device(bn) && in dr_resume_devices() 472 prom_printf("\tresuming %s@%s\n", bn, in dr_resume_devices() 485 d_name[0] ? d_name : bn, d_info); in dr_resume_devices() 496 d_name[0] ? d_name : bn, d_info); in dr_resume_devices()
|
/titanic_50/usr/src/common/fs/ |
H A D | ufsops.c | 79 static daddr32_t sbmap(fileid_t *filep, daddr32_t bn); 216 sbmap(fileid_t *filep, daddr32_t bn) in sbmap() argument 231 if (bn < NDADDR) { in sbmap() 232 nb = db[bn]; in sbmap() 241 bn -= NDADDR; in sbmap() 244 if (bn < sh) in sbmap() 246 bn -= sh; in sbmap() 271 i = (bn / sh) % NINDIR(&devp->un_fs.di_fs); in sbmap()
|
/titanic_50/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_quiesce.c | 429 char *bn; in dr_resume_devices() local 449 if ((bn = ddi_binding_name(dip)) != NULL) { in dr_resume_devices() 450 major = ddi_name_to_major(bn); in dr_resume_devices() 452 bn = "<null>"; in dr_resume_devices() 454 if (!dr_bypass_device(bn) && in dr_resume_devices() 473 prom_printf("\tresuming %s@%s\n", bn, in dr_resume_devices() 486 d_name[0] ? d_name : bn, d_info); in dr_resume_devices() 497 d_name[0] ? d_name : bn, d_info); in dr_resume_devices()
|
/titanic_50/usr/src/lib/fm/topo/modules/sun4/hostbridge/ |
H A D | hb_sun4.c | 151 topo_instance_t bi, di_node_t bn, did_t *hbdid) in hb_process() argument 155 if ((hb = pcihostbridge_declare(mod, ptn, bn, hbi)) == NULL) in hb_process() 166 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t rci, di_node_t bn) in rc_process() argument 170 if ((rc = pciexrc_declare(mod, ptn, bn, rci)) == NULL) in rc_process()
|