Searched refs:btodb (Results 1 - 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Ddefs.h42 #define btodb(byte_offset) ((byte_offset) >> 9) macro
/illumos-gate/usr/src/boot/lib/libstand/
H A Dwrite.c85 btodb(f->f_offset), 0, bcount, dest, &resid);
H A Dread.c82 btodb(f->f_offset), 0, bcount, dest, &resid);
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dlufs_log.c198 lblkno += btodb(pbcount);
422 bp->b_blkno = btodb(ul->un_tail_lof);
429 * 2. b_blkno + btodb(b_bufsize) may > un_eol_lof
673 bp->b_blkno = btodb(lof);
1250 if (btodb(new_lof) != btodb(data_lof))
1256 new_lof -= dbtob(btodb(new_lof));
1277 end_blkno = btodb(new_lof);
1278 beg_blkno = btodb(ul->un_head_lof);
1285 end_blkno = btodb(u
[all...]
H A Dufs_bmap.c134 *(bnp) = fsbtodb(fs, *dp) + btodb(boff); \
377 btodb(bsize - osize)) > INT_MAX) {
417 ip->i_blocks += btodb(bsize - osize);
460 btodb(nsize - osize)) > INT_MAX) {
495 btodb(nsize - osize)) > INT_MAX) {
546 -(long)btodb(nsize - osize),
554 ip->i_blocks += btodb(nsize - osize);
620 if (((unsigned)ip->i_blocks + btodb(bsize))
669 added_sectors += btodb(bsize);
670 ip->i_blocks += btodb(bsiz
[all...]
H A Dufs_alloc.c129 err = chkdq(ip, (long)btodb(size), 0, cr, &errmsg, &len);
158 (void) chkdq(ip, -(long)btodb(size), 0, cr, (char **)NULL,
214 err = chkdq(ip, (long)btodb(nsize - osize), 0, cr, &errmsg, &len);
262 (void) chkdq(ip, -(long)btodb(nsize - osize), 0, cr, (char **)NULL,
696 btodb(fs->fs_bsize);
732 btodb(i * fs->fs_fsize);
H A Dufs_inode.c1067 nblocks = btodb(fs->fs_bsize);
1390 nblocks = btodb(fs->fs_bsize);
1447 blocksreleased += btodb(bsize);
1479 blocksreleased += btodb(oldspace - newspace);
/illumos-gate/usr/src/boot/sys/sys/
H A Dparam.h198 * btodb() is messy and perhaps slow because `bytes' may be an off_t. We
203 #ifndef btodb
204 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ macro
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dparam.h143 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ macro
/illumos-gate/usr/src/ucbhead/sys/
H A Dparam.h216 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ macro
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dutilities.c397 for (cp = buf, i = 0; i < btodb(size); i++, cp += DEV_BSIZE) {
429 for (cp = buf, i = 0; i < btodb(size); i++, cp += DEV_BSIZE) {
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass1.c619 idesc->id_entryno = btodb(new_size);
740 idesc->id_entryno += btodb(sblock.fs_fsize);
H A Ddir.c1004 frag2blks = btodb(frag2blks);
1009 dp->di_blocks += btodb(sblock.fs_bsize);
1019 dp->di_blocks += btodb(sblock.fs_bsize);
1021 dp->di_blocks += btodb(sblock.fs_bsize);
H A Dutilities.c487 for (cp = buf, i = 0; i < btodb(size); i++, cp += DEV_BSIZE) {
530 for (cp = buf, i = 0; i < btodb(size); i++, cp += DEV_BSIZE) {
H A Dinode.c1234 dp->di_blocks = btodb(sblock.fs_fsize);
/illumos-gate/usr/src/uts/common/sys/
H A Dparam.h256 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ macro
261 /* 64 bit versions of btodb and dbtob */
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dlufsboot.c383 * pbno = btodb(addr) - extents[0].lbno;
387 lblk = btodb(addr);
868 odi.od_tail_lof = dbtob(btodb(odi.od_head_lof)) - DEV_BSIZE;
/illumos-gate/usr/src/uts/common/sys/lvm/
H A Dmd_mddb.h302 #define MDDB_DT_BLOCKS (btodb(MDDB_DT_BYTES))
358 #define MDDB_DID_BLOCKS (btodb(MDDB_DID_BYTES))
/illumos-gate/usr/src/uts/common/io/lvm/softpart/
H A Dsp.c635 if (voff + btodb(bcount) > ext_endblk) {
1061 current_blkno += (sp_ext_offset_t)(btodb(child_buf->b_bcount));
1204 current_blkno += (sp_ext_offset_t)(btodb(child_buf->b_bcount));
1713 nblk = (int)(btodb(bp->b_bcount));
/illumos-gate/usr/src/uts/common/io/lvm/trans/
H A Dtrans_ioctl.c937 ((bp->b_blkno + btodb(bp->b_bcount)) <=
1187 un->un_l_head = (daddr32_t)btodb(ul->un_head_lof);
1190 un->un_l_maxtransfer = (uint_t)btodb(ul->un_maxtransfer);
1193 un->un_l_tail = (daddr32_t)btodb(ul->un_tail_lof);
1210 if (un->un_l_nblks > btodb(LDL_MAXLOGSIZE))
1211 un->un_l_nblks = btodb(LDL_MAXLOGSIZE);
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_nameinfo.c155 mdvp->parts[i].label = btodb(DK_LABEL_SIZE);
466 mdvp->parts[i].label = btodb(DK_LABEL_SIZE);
H A Dmeta_stripe.c1669 interlace = btodb(512 * 1024);
1670 if (interlace < btodb(MININTERLACE))
1685 if ((interlace < btodb(MININTERLACE)) ||
1686 (interlace > btodb(MAXINTERLACE))) {
H A Dmeta_raid.c1892 interlace = btodb(512 * 1024);
1908 if ((interlace < btodb(RAID_MIN_INTERLACE)) ||
1909 (interlace > btodb(MAXINTERLACE))) {
/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/cpr/
H A Dcpr_dump.c149 cpr_buf_blocks = btodb(cpr_buf_size);

Completed in 152 milliseconds

12