/titanic_41/usr/src/uts/common/io/lvm/raid/ |
H A D | raid_replay.c | 98 kmem_free(rwbuf1->rpl_data, dbtob(un->un_iosize)); in raid_rply_dealloc() 106 kmem_free(rwbuf2->rpl_data, dbtob(un->un_iosize)); in raid_rply_dealloc() 150 rwbuf1->rpl_data = kmem_zalloc(dbtob(un->un_iosize), KM_SLEEP); in raid_rply_alloc() 154 rwbuf2->rpl_data = kmem_zalloc(dbtob(un->un_iosize), KM_SLEEP); in raid_rply_alloc() 396 bp->b_bufsize = dbtob(pwhp->rpw_blkcnt); in raid_pw_write() 397 bp->b_bcount = dbtob(pwhp->rpw_blkcnt); in raid_pw_write() 519 dbtob(pwhp1->rpw_blkcnt)); in raid_rplyeach() 533 dbtob(pwhp2->rpw_blkcnt)); in raid_rplyeach() 573 dbtob(pwhp1->rpw_blkcnt)); in raid_rplyeach() 623 dbtob(pwhdr1->rpw_blkcnt)); in replay_line() [all …]
|
H A D | raid_resync.c | 282 copysize = dbtob(bsize); in init_pw_area() 293 buf.b_bcount = dbtob(bsize); in init_pw_area() 486 dbtob(copysize)); in raid_resync_region() 487 readb1->b_bcount = dbtob(tcopysize); in raid_resync_region() 512 bzero(cs->cs_pbuffer, dbtob(tcopysize)); in raid_resync_region() 523 dbtob(copysize)); in raid_resync_region() 524 readb1->b_bcount = dbtob(tcopysize); in raid_resync_region() 543 dbtob(tcopysize)); in raid_resync_region() 548 dbtob(copysize)); in raid_resync_region() 549 writeb->b_bcount = dbtob(tcopysize); in raid_resync_region() [all …]
|
H A D | raid_ioctl.c | 380 cur->ci_buf.b_bufsize = dbtob(cur->ci_zerosize); in init_col_nextio() 381 cur->ci_buf.b_bcount = dbtob(cur->ci_zerosize); in init_col_nextio() 494 zero_addr = kmem_zalloc(dbtob(zerosize), KM_SLEEP); in raid_init_columns() 524 cur->ci_buf.b_bufsize = dbtob(zerosize); in raid_init_columns() 525 cur->ci_buf.b_bcount = dbtob(zerosize); in raid_init_columns() 599 kmem_free(zero_addr, dbtob(zerosize)); in raid_init_columns() 730 iosize = dbtob(un->un_segsize); in regen_unit()
|
H A D | raid.c | 694 kmem_free(cbuf_to_free->cbuf_buffer, dbtob(un->un_iosize)); in raid_free_pwinvalidate() 1022 un->un_pbuffer = kmem_alloc(dbtob(iosize), KM_SLEEP); in raid_build_incore() 1023 un->un_dbuffer = kmem_alloc(dbtob(iosize), KM_SLEEP); in raid_build_incore() 1062 kmem_free(un->un_pbuffer, dbtob(un->un_iosize)); in reset_raid() 1066 kmem_free(un->un_dbuffer, dbtob(un->un_iosize)); in reset_raid() 2183 cs->cs_bcount = dbtob(cs->cs_blkcnt); in raid_iosetup() 2199 cbuf->cbuf_bcount = dbtob(un->un_segsize); in raid_iosetup() 2222 cs->cs_bcount = dbtob((uint_t)blkcnt); in raid_iosetup()
|
/titanic_41/usr/src/uts/common/fs/ufs/ |
H A D | lufs_log.c | 135 *pbcount = MIN(bcount, dbtob(ext[i].ic_nbno - bno_off)); in map_frag() 369 buflof = dbtob(bp->b_blkno); in inval_range() 423 ASSERT(dbtob(bp->b_blkno) == ul->un_tail_lof); in get_write_bp() 578 off_t blof = dbtob(blkno); in within_range() 624 rlof = dbtob(bp->b_blkno); in find_read_lof() 674 lof = dbtob(bp->b_blkno); in get_read_bp() 828 off_t src_lof = dbtob(bp->b_blkno); in fetchbuf() 916 ul->un_tail_lof = dbtob(bp->b_blkno) + bcount; in ldl_round_commit() 1256 new_lof -= dbtob(btodb(new_lof)); in ldl_sethead() 1335 ul->un_tail_lof = dbtob(btodb(ul->un_head_lof)); in ldl_settail() [all …]
|
H A D | lufs.c | 349 tbp = ngeteblk(dbtob(LS_SECTORS)); in lufs_snarf() 515 bp = UFS_GETBLK(ufsvfsp, ufsvfsp->vfs_dev, bno, dbtob(LS_SECTORS)); in lufs_initialize() 526 ud->od_statesize = dbtob(LS_SECTORS); in lufs_initialize() 535 ud->od_bol_lof = dbtob(ud->od_statebno) + ud->od_statesize; in lufs_initialize()
|
H A D | lufs_debug.c | 306 newtrimc = mtm->mtm_trimclof = dbtob(btod(lof)); in logmap_logscan_commit_debug()
|
/titanic_41/usr/src/grub/grub-0.97/stage2/ |
H A D | defs.h | 43 #define dbtob(block_number) ((block_number) << 9) macro
|
/titanic_41/usr/src/uts/common/io/lvm/md/ |
H A D | md_mddb.c | 962 dbp->db_ptr = (caddr_t)kmem_zalloc(dbtob(blk_cnt), KM_SLEEP); in mddb_devid_free_get() 974 len, (dbtob(blk_cnt) - len)); in mddb_devid_free_get() 1198 dbtob(lbp->lb_didblkcnt)); in mddb_devid_icp_free() 1207 dbtob(did_dbp1->db_blkcnt)); in mddb_devid_icp_free() 1508 dbtob(lbp->lb_didblkcnt), NULL); in writelocall() 1510 crcgen(lbp, &lbp->lb_checksum, dbtob(lbp->lb_blkcnt), NULL); in writelocall() 1961 lnp = (mddb_ln_t *)kmem_zalloc(dbtob(ln_blkcnt), KM_SLEEP); in readlocnames() 1983 if (crcchk(lnp, &lnp->ln_checksum, dbtob(ln_blkcnt), NULL)) { in readlocnames() 1993 kmem_free((caddr_t)lnp, dbtob(ln_blkcnt)); in readlocnames() 3804 crcgen(lnp, &lnp->ln_checksum, dbtob(lbp->lb_lnblkcnt), NULL); in writestart() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/trans/ |
H A D | trans_log.c | 456 ul->un_bol_lof = (off32_t)dbtob(un->un_l_sblk); in ldl_create() 457 ul->un_eol_lof = ul->un_bol_lof + (off32_t)dbtob(un->un_l_nblks); in ldl_create() 462 ul->un_maxtransfer = (uint_t)dbtob(un->un_l_maxtransfer); in ldl_create() 570 bufsize = dbtob(btod(bufsize)); in md_ldl_bufsize()
|
/titanic_41/usr/src/lib/libbc/inc/include/sys/ |
H A D | param.h | 145 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ macro
|
/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_import.c | 1260 if (lseek(fd, (off_t)dbtob(16), SEEK_SET) < 0) in read_master_block() 1305 if (lseek(fd, (off_t)dbtob(mbp->mb_blkmap.m_firstblk), SEEK_SET) < 0) in read_locator_block() 1330 if (lseek(fd, (off_t)dbtob(pblk), SEEK_SET) < 0) in phys_read() 1556 tmpnm = (char *)Zalloc(dbtob(dep->de_blkcount)); in read_nm_rec() 1567 if (lseek(fd, (off_t)dbtob(pblk), SEEK_SET) < 0) { in read_nm_rec() 1902 did_info_length = dbtob(did_info->info_blkcnt); in build_did_list() 2513 char lb[dbtob(MDDB_LBCNT)]; in meta_get_and_report_set_info() 2610 lbdid_size = dbtob(lbp->lb_didblkcnt); in meta_get_and_report_set_info() 2660 lnsize = dbtob(lbp->lb_lnblkcnt); in meta_get_and_report_set_info() 2903 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET) < 0) in meta_update_mb_did() [all …]
|
H A D | meta_set_tkr.c | 390 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET) < 0) in meta_update_mb() 460 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET) in meta_update_mb()
|
H A D | meta_statconcise.c | 1565 rbp = (void *)Zalloc(dbtob(dep->de_blkcount)); in read_mdrecord() 1577 if (lseek(fd, (off_t)dbtob(pblk), SEEK_SET) < 0) { in read_mdrecord()
|
/titanic_41/usr/src/ucbhead/sys/ |
H A D | param.h | 226 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ macro
|
/titanic_41/usr/src/cmd/fs.d/ufs/fstyp/ |
H A D | fstyp.c | 489 tb += dbtob(ep->nbno); in dumplog() 496 if (read(h->fd, &h->eg, dbtob(LS_SECTORS)) != dbtob(LS_SECTORS)) { in dumplog()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | param.h | 265 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ macro
|
/titanic_41/usr/src/uts/common/cpr/ |
H A D | cpr_dump.c | 147 size = PAGE_ROUNDUP(dbtob(4) + cpr_bitmap_size); in cpr_alloc_bufs() 988 wbytes = dbtob(cpr_file_bn + cpr_buf_blocks); in cpr_write()
|
/titanic_41/usr/src/uts/common/fs/nfs/ |
H A D | nfs_dump.c | 120 error = nd_send_data(tiptr, addr, (int)dbtob(bn + i), in nfs_dump()
|
/titanic_41/usr/src/uts/common/sys/fs/ |
H A D | ufs_log.h | 122 #define NB_LEFT_IN_SECTOR(off) (LDL_USABLE_BSIZE - ((off) - dbtob(btodb(off))))
|
/titanic_41/usr/src/uts/common/io/lvm/softpart/ |
H A D | sp.c | 636 new_bcount = dbtob(ext_endblk - voff); in sp_mapbuf() 1709 nb = (sp_ext_length_t)dbtob(nblk); in sp_dump()
|
/titanic_41/usr/src/stand/lib/fs/ufs/ |
H A D | lufsboot.c | 868 odi.od_tail_lof = dbtob(btodb(odi.od_head_lof)) - DEV_BSIZE; in lufs_logscan_prescan()
|
/titanic_41/usr/src/uts/common/sys/lvm/ |
H A D | md_trans.h | 47 #define NB_LEFT_IN_SECTOR(off) (LDL_USABLE_BSIZE - ((off) - dbtob(btodb(off))))
|
/titanic_41/usr/src/uts/common/io/lvm/mirror/ |
H A D | mirror_resync.c | 977 bp->b_bcount = dbtob(cnt); in resync_read_buffer() 2380 rs_buffer = kmem_zalloc(dbtob(rs_copysize), KM_SLEEP); in resync_unit() 2642 kmem_free(un->un_rs_buffer, dbtob(un->un_rs_copysize)); in resync_unit()
|
/titanic_41/usr/src/uts/sun4u/os/ |
H A D | cpr_impl.c | 1826 bytes = dbtob(*blkno); in i_cpr_blockzero()
|