Home
last modified time | relevance | path

Searched refs:dbtob (Results 1 – 25 of 29) sorted by relevance

12

/titanic_41/usr/src/uts/common/io/lvm/raid/
H A Draid_replay.c98 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 Draid_resync.c282 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 Draid_ioctl.c380 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 Draid.c694 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 Dlufs_log.c135 *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 Dlufs.c349 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 Dlufs_debug.c306 newtrimc = mtm->mtm_trimclof = dbtob(btod(lof)); in logmap_logscan_commit_debug()
/titanic_41/usr/src/grub/grub-0.97/stage2/
H A Ddefs.h43 #define dbtob(block_number) ((block_number) << 9) macro
/titanic_41/usr/src/uts/common/io/lvm/md/
H A Dmd_mddb.c962 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 Dtrans_log.c456 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 Dparam.h145 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ macro
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_import.c1260 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 Dmeta_set_tkr.c390 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 Dmeta_statconcise.c1565 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 Dparam.h226 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ macro
/titanic_41/usr/src/cmd/fs.d/ufs/fstyp/
H A Dfstyp.c489 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 Dparam.h265 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ macro
/titanic_41/usr/src/uts/common/cpr/
H A Dcpr_dump.c147 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 Dnfs_dump.c120 error = nd_send_data(tiptr, addr, (int)dbtob(bn + i), in nfs_dump()
/titanic_41/usr/src/uts/common/sys/fs/
H A Dufs_log.h122 #define NB_LEFT_IN_SECTOR(off) (LDL_USABLE_BSIZE - ((off) - dbtob(btodb(off))))
/titanic_41/usr/src/uts/common/io/lvm/softpart/
H A Dsp.c636 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 Dlufsboot.c868 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 Dmd_trans.h47 #define NB_LEFT_IN_SECTOR(off) (LDL_USABLE_BSIZE - ((off) - dbtob(btodb(off))))
/titanic_41/usr/src/uts/common/io/lvm/mirror/
H A Dmirror_resync.c977 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 Dcpr_impl.c1826 bytes = dbtob(*blkno); in i_cpr_blockzero()

12