Searched refs:dbtob (Results 1 - 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Ddefs.h43 #define dbtob(block_number) ((block_number) << 9) macro
/illumos-gate/usr/src/boot/sys/sys/
H A Dparam.h210 #ifndef dbtob
211 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ macro
/illumos-gate/usr/src/uts/common/io/lvm/raid/
H A Draid_resync.c282 copysize = dbtob(bsize);
293 buf.b_bcount = dbtob(bsize);
486 dbtob(copysize));
487 readb1->b_bcount = dbtob(tcopysize);
512 bzero(cs->cs_pbuffer, dbtob(tcopysize));
523 dbtob(copysize));
524 readb1->b_bcount = dbtob(tcopysize);
543 dbtob(tcopysize));
548 dbtob(copysize));
549 writeb->b_bcount = dbtob(tcopysiz
[all...]
H A Draid_replay.c98 kmem_free(rwbuf1->rpl_data, dbtob(un->un_iosize));
106 kmem_free(rwbuf2->rpl_data, dbtob(un->un_iosize));
150 rwbuf1->rpl_data = kmem_zalloc(dbtob(un->un_iosize), KM_SLEEP);
154 rwbuf2->rpl_data = kmem_zalloc(dbtob(un->un_iosize), KM_SLEEP);
396 bp->b_bufsize = dbtob(pwhp->rpw_blkcnt);
397 bp->b_bcount = dbtob(pwhp->rpw_blkcnt);
519 dbtob(pwhp1->rpw_blkcnt));
533 dbtob(pwhp2->rpw_blkcnt));
573 dbtob(pwhp1->rpw_blkcnt));
623 dbtob(pwhdr
[all...]
H A Draid_ioctl.c380 cur->ci_buf.b_bufsize = dbtob(cur->ci_zerosize);
381 cur->ci_buf.b_bcount = dbtob(cur->ci_zerosize);
494 zero_addr = kmem_zalloc(dbtob(zerosize), KM_SLEEP);
524 cur->ci_buf.b_bufsize = dbtob(zerosize);
525 cur->ci_buf.b_bcount = dbtob(zerosize);
599 kmem_free(zero_addr, dbtob(zerosize));
730 iosize = dbtob(un->un_segsize);
H A Draid.c694 kmem_free(cbuf_to_free->cbuf_buffer, dbtob(un->un_iosize));
1022 un->un_pbuffer = kmem_alloc(dbtob(iosize), KM_SLEEP);
1023 un->un_dbuffer = kmem_alloc(dbtob(iosize), KM_SLEEP);
1062 kmem_free(un->un_pbuffer, dbtob(un->un_iosize));
1066 kmem_free(un->un_dbuffer, dbtob(un->un_iosize));
2183 cs->cs_bcount = dbtob(cs->cs_blkcnt);
2199 cbuf->cbuf_bcount = dbtob(un->un_segsize);
2222 cs->cs_bcount = dbtob((uint_t)blkcnt);
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dlufs_log.c135 *pbcount = MIN(bcount, dbtob(ext[i].ic_nbno - bno_off));
369 buflof = dbtob(bp->b_blkno);
423 ASSERT(dbtob(bp->b_blkno) == ul->un_tail_lof);
578 off_t blof = dbtob(blkno);
624 rlof = dbtob(bp->b_blkno);
674 lof = dbtob(bp->b_blkno);
828 off_t src_lof = dbtob(bp->b_blkno);
916 ul->un_tail_lof = dbtob(bp->b_blkno) + bcount;
1256 new_lof -= dbtob(btodb(new_lof));
1335 ul->un_tail_lof = dbtob(btod
[all...]
H A Dlufs.c349 tbp = ngeteblk(dbtob(LS_SECTORS));
515 bp = UFS_GETBLK(ufsvfsp, ufsvfsp->vfs_dev, bno, dbtob(LS_SECTORS));
526 ud->od_statesize = dbtob(LS_SECTORS);
535 ud->od_bol_lof = dbtob(ud->od_statebno) + ud->od_statesize;
H A Dlufs_debug.c306 newtrimc = mtm->mtm_trimclof = dbtob(btod(lof));
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dparam.h145 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ macro
/illumos-gate/usr/src/uts/common/io/lvm/md/
H A Dmd_mddb.c962 dbp->db_ptr = (caddr_t)kmem_zalloc(dbtob(blk_cnt), KM_SLEEP);
974 len, (dbtob(blk_cnt) - len));
1198 dbtob(lbp->lb_didblkcnt));
1207 dbtob(did_dbp1->db_blkcnt));
1508 dbtob(lbp->lb_didblkcnt), NULL);
1510 crcgen(lbp, &lbp->lb_checksum, dbtob(lbp->lb_blkcnt), NULL);
1961 lnp = (mddb_ln_t *)kmem_zalloc(dbtob(ln_blkcnt), KM_SLEEP);
1983 if (crcchk(lnp, &lnp->ln_checksum, dbtob(ln_blkcnt), NULL)) {
1993 kmem_free((caddr_t)lnp, dbtob(ln_blkcnt));
3804 crcgen(lnp, &lnp->ln_checksum, dbtob(lb
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/trans/
H A Dtrans_log.c456 ul->un_bol_lof = (off32_t)dbtob(un->un_l_sblk);
457 ul->un_eol_lof = ul->un_bol_lof + (off32_t)dbtob(un->un_l_nblks);
462 ul->un_maxtransfer = (uint_t)dbtob(un->un_l_maxtransfer);
570 bufsize = dbtob(btod(bufsize));
/illumos-gate/usr/src/ucbhead/sys/
H A Dparam.h218 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ macro
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_import.c1260 if (lseek(fd, (off_t)dbtob(16), SEEK_SET) < 0)
1305 if (lseek(fd, (off_t)dbtob(mbp->mb_blkmap.m_firstblk), SEEK_SET) < 0)
1330 if (lseek(fd, (off_t)dbtob(pblk), SEEK_SET) < 0)
1556 tmpnm = (char *)Zalloc(dbtob(dep->de_blkcount));
1567 if (lseek(fd, (off_t)dbtob(pblk), SEEK_SET) < 0) {
1902 did_info_length = dbtob(did_info->info_blkcnt);
2513 char lb[dbtob(MDDB_LBCNT)];
2610 lbdid_size = dbtob(lbp->lb_didblkcnt);
2660 lnsize = dbtob(lbp->lb_lnblkcnt);
2903 if (lseek(fd, (off_t)dbtob(offse
[all...]
H A Dmeta_set_tkr.c390 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET) < 0)
460 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET)
H A Dmeta_statconcise.c1563 rbp = (void *)Zalloc(dbtob(dep->de_blkcount));
1575 if (lseek(fd, (off_t)dbtob(pblk), SEEK_SET) < 0) {
/illumos-gate/usr/src/uts/common/sys/
H A Dparam.h258 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ macro
261 /* 64 bit versions of btodb and dbtob */
/illumos-gate/usr/src/cmd/fs.d/ufs/fstyp/
H A Dfstyp.c489 tb += dbtob(ep->nbno);
496 if (read(h->fd, &h->eg, dbtob(LS_SECTORS)) != dbtob(LS_SECTORS)) {
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_dump.c125 error = nd_send_data(tiptr, addr, (int)dbtob(bn + i),
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_dump.c147 size = PAGE_ROUNDUP(dbtob(4) + cpr_bitmap_size);
988 wbytes = dbtob(cpr_file_bn + cpr_buf_blocks);
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dlufsboot.c868 odi.od_tail_lof = dbtob(btodb(odi.od_head_lof)) - DEV_BSIZE;
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_log.h122 #define NB_LEFT_IN_SECTOR(off) (LDL_USABLE_BSIZE - ((off) - dbtob(btodb(off))))
/illumos-gate/usr/src/uts/common/io/lvm/softpart/
H A Dsp.c636 new_bcount = dbtob(ext_endblk - voff);
1709 nb = (sp_ext_length_t)dbtob(nblk);
/illumos-gate/usr/src/uts/common/sys/lvm/
H A Dmd_trans.h47 #define NB_LEFT_IN_SECTOR(off) (LDL_USABLE_BSIZE - ((off) - dbtob(btodb(off))))
/illumos-gate/usr/src/uts/sun4u/os/
H A Dcpr_impl.c1826 bytes = dbtob(*blkno);

Completed in 156 milliseconds

12