/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | defs.h | 42 #define btodb(byte_offset) ((byte_offset) >> 9) macro
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | write.c | 85 btodb(f->f_offset), 0, bcount, dest, &resid);
|
H A D | read.c | 82 btodb(f->f_offset), 0, bcount, dest, &resid);
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | lufs_log.c | 198 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 D | ufs_bmap.c | 134 *(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 D | ufs_alloc.c | 129 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 D | ufs_inode.c | 1067 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 D | param.h | 198 * 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 D | param.h | 143 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ macro
|
/illumos-gate/usr/src/ucbhead/sys/ |
H A D | param.h | 216 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ macro
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | utilities.c | 397 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 D | pass1.c | 619 idesc->id_entryno = btodb(new_size); 740 idesc->id_entryno += btodb(sblock.fs_fsize);
|
H A D | dir.c | 1004 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 D | utilities.c | 487 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 D | inode.c | 1234 dp->di_blocks = btodb(sblock.fs_fsize);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | param.h | 256 #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 D | lufsboot.c | 383 * 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 D | md_mddb.h | 302 #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 D | sp.c | 635 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 D | trans_ioctl.c | 937 ((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 D | meta_nameinfo.c | 155 mdvp->parts[i].label = btodb(DK_LABEL_SIZE); 466 mdvp->parts[i].label = btodb(DK_LABEL_SIZE);
|
H A D | meta_stripe.c | 1669 interlace = btodb(512 * 1024); 1670 if (interlace < btodb(MININTERLACE)) 1685 if ((interlace < btodb(MININTERLACE)) || 1686 (interlace > btodb(MAXINTERLACE))) {
|
H A D | meta_raid.c | 1892 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 D | ufs_log.h | 122 #define NB_LEFT_IN_SECTOR(off) (LDL_USABLE_BSIZE - ((off) - dbtob(btodb(off))))
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_dump.c | 149 cpr_buf_blocks = btodb(cpr_buf_size);
|