/titanic_41/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_fdio.c | 182 uchar_t blk[DEV_BSIZE]; in fdio_bdev_read() 192 off64_t devoff = off & ~(DEV_BSIZE - 1); in fdio_bdev_read() 193 size_t blkoff = off & (DEV_BSIZE - 1); in fdio_bdev_read() 194 size_t len = MIN(resid, DEV_BSIZE - blkoff); in fdio_bdev_read() 196 if (pread64(fdp->fd_fd, blk, DEV_BSIZE, devoff) != DEV_BSIZE) in fdio_bdev_read() 223 uchar_t blk[DEV_BSIZE]; in fdio_bdev_write() 233 off64_t devoff = off & ~(DEV_BSIZE - 1); in fdio_bdev_write() 234 size_t blkoff = off & (DEV_BSIZE - 1); in fdio_bdev_write() 235 size_t len = MIN(resid, DEV_BSIZE - blkoff); in fdio_bdev_write() 237 if (pread64(fdp->fd_fd, blk, DEV_BSIZE, devoff) != DEV_BSIZE) in fdio_bdev_write() [all …]
|
/titanic_41/usr/src/cmd/boot/installgrub/ |
H A D | pcfs_glue.c | 47 #define DEV_BSIZE 512 macro 67 if (i >= DEV_BSIZE / 8) { in add_stage2_block() 90 diskread_callback(blocknum, filep->fi_count / DEV_BSIZE); in diskread() 94 diskloc = blocknum * DEV_BSIZE; in diskread() 173 char buf[DEV_BSIZE]; in read_stage2_blocklist() 193 size = pcfs_glue_read(fd, buf, DEV_BSIZE); in read_stage2_blocklist() 194 if (size != DEV_BSIZE) in read_stage2_blocklist()
|
/titanic_41/usr/src/cmd/fs.d/ufs/newfs/ |
H A D | newfs.c | 72 #define GBSEC ((1024 * 1024 * 1024) / DEV_BSIZE) /* sectors in a GB */ 73 #define MINFREESEC ((64 * 1024 * 1024) / DEV_BSIZE) /* sectors in 64 MB */ 265 if (fsize < DEV_BSIZE) in main() 302 if (density < DEV_BSIZE) in main() 532 max_possible_fssize = ((uint64_t)fsize)/DEV_BSIZE * INT_MAX; in main() 801 maxcontig = ci.dki_maxtransfer * DEV_BSIZE; in getdiskbydev() 909 char buf[DEV_BSIZE]; in brute_force_get_device_size() 918 ((read(fd, buf, DEV_BSIZE)) == -1)) in brute_force_get_device_size() 935 if (((llseek(fd, (offset_t)(cur_db_off * DEV_BSIZE), in brute_force_get_device_size() 937 ((read(fd, buf, DEV_BSIZE)) != DEV_BSIZE)) in brute_force_get_device_size() [all …]
|
/titanic_41/usr/src/grub/grub-0.97/stage2/ |
H A D | dir.h | 74 #define DIRBLKSIZ DEV_BSIZE 120 #ifndef DEV_BSIZE 121 #define DEV_BSIZE 512 macro
|
H A D | fsys_minix.c | 37 #define DEV_BSIZE 512 macro 46 #define SBLOCK (WHICH_SUPER * BLOCK_SIZE / DEV_BSIZE) /* = 2 */ 169 (sizeof (struct minix_super_block) / DEV_BSIZE))) in minix_mount() 195 return devread (fsblock * (BLOCK_SIZE / DEV_BSIZE), 0, in minix_rdfsb() 273 devread (map * (BLOCK_SIZE / DEV_BSIZE), in minix_read()
|
H A D | fsys_ext2fs.c | 28 #define DEV_BSIZE 512 macro 35 #define SBLOCK (WHICH_SUPER * BLOCK_SIZE / DEV_BSIZE) /* = 2 */ 310 || part_length < (SBLOCK + (sizeof (struct ext2_super_block) / DEV_BSIZE)) in ext2fs_mount() 326 return devread (fsblock * (EXT2_BLOCK_SIZE (SUPERBLOCK) / DEV_BSIZE), 0, in ext2_rdfsb() 488 devread (map * (EXT2_BLOCK_SIZE (SUPERBLOCK) / DEV_BSIZE), in ext2fs_read() 534 ea_blocks = INODE->i_file_acl ? EXT2_BLOCK_SIZE (SUPERBLOCK) / DEV_BSIZE : 0; in ext2_is_fast_symlink()
|
/titanic_41/usr/src/cmd/backup/dump/ |
H A D | dumptraverse.c | 670 if (sizeof (dblk) < roundup(filesize, DEV_BSIZE)) { 684 (size_t)(roundup(filesize, DEV_BSIZE))); 766 #define INOPERDB (DEV_BSIZE / sizeof (struct dinode)) 783 lseek((fd), (((off_t)(offset))*DEV_BSIZE), (whence)) 786 llseek((fd), (((offset_t)((offset)))*DEV_BSIZE), (whence)) 816 static uchar_t bcache[DEV_BSIZE * CACHESIZE]; 821 if ((cnt >= DEV_BSIZE) && (mapfd != -1)) { 829 filoff = ((off64_t)da) * DEV_BSIZE; 869 if (cnt < DEV_BSIZE) { 873 bcopy(bcache + (i * DEV_BSIZE), [all …]
|
/titanic_41/usr/src/cmd/fs.d/ufs/clri/ |
H A D | clri.c | 161 off *= DEV_BSIZE; in main() 174 (void) llseek(f, (offset_t)(SBLOCK * DEV_BSIZE), 0); in main() 186 off *= DEV_BSIZE; in main() 216 (void) llseek(fd, (offset_t)(SBLOCK * DEV_BSIZE), 0); in read_sb()
|
/titanic_41/usr/src/uts/common/io/lvm/raid/ |
H A D | raid_replay.c | 87 kmem_free(tmp->rpl_data, DEV_BSIZE); in raid_rply_dealloc() 134 tmp->rpl_data = kmem_zalloc(DEV_BSIZE, KM_SLEEP); in raid_rply_alloc() 324 bp->b_bufsize = DEV_BSIZE; in raid_pwhdr_read() 325 bp->b_bcount = DEV_BSIZE; in raid_pwhdr_read() 346 uint_t bytecnt = blkcnt * DEV_BSIZE; in raid_pw_read() 395 bp->b_un.b_addr = bufp->rpl_data + DEV_BSIZE; in raid_pw_write() 518 dsum1 = genchecksum(rwbuf1->rpl_data + DEV_BSIZE, in raid_rplyeach() 532 dsum2 = genchecksum(rwbuf2->rpl_data + DEV_BSIZE, in raid_rplyeach() 572 dsum1 = genchecksum(rwbuf1->rpl_data + DEV_BSIZE, in raid_rplyeach() 622 dsum = genchecksum(rplybuf->rpl_data + DEV_BSIZE, in replay_line() [all …]
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsirand/ |
H A D | fsirand.c | 92 if (llseek(fd, (offset_t)SBLOCK * DEV_BSIZE, 0) == -1) { in main() 139 seekaddr = (offset_t)fsbtodb(fs, bno) * DEV_BSIZE; in main() 185 if (llseek(fd, (offset_t)SBLOCK * DEV_BSIZE, 0) == -1) { in main() 199 seekaddr = (offset_t)fsbtodb(fs, cgsblock(fs, i)) * DEV_BSIZE; in main()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | emul64_bsd.c | 205 emul64_zeros = (unsigned char *) kmem_zalloc(DEV_BSIZE, KM_SLEEP); in emul64_bsd_init() 221 kmem_free(emul64_zeros, DEV_BSIZE); in emul64_bsd_fini() 841 page3.data_bytes_sect = ushort_to_scsi_ushort(DEV_BSIZE); in bsd_mode_sense_dad_mode_format() 939 cap.lbasize = uint32_to_scsi_uint32((uint_t)DEV_BSIZE); in bsd_scsi_read_capacity_8() 962 cap.sc_lbasize = uint32_to_scsi_uint32((uint_t)DEV_BSIZE); in bsd_scsi_read_capacity_16() 1076 (void) bcopy(blk->bl_data, bufaddr, DEV_BSIZE); in bsd_readblks() 1078 (void) bzero(bufaddr, DEV_BSIZE); in bsd_readblks() 1081 bufaddr += DEV_BSIZE; in bsd_readblks() 1089 return ((nblks - i) * DEV_BSIZE); in bsd_readblks() 1173 if (bcmp(bufaddr, emul64_zeros, DEV_BSIZE) == 0) { in bsd_writeblks() [all …]
|
H A D | lofi.c | 157 if (((uio)->uio_loffset % DEV_BSIZE) != 0 || \ 158 ((uio)->uio_resid % DEV_BSIZE) != 0) { \ 181 static int lofi_taskq_maxalloc = 104857600 / DEV_BSIZE; 635 cdata.cd_length = DEV_BSIZE; in lofi_crypto() 638 wdata.cd_length = DEV_BSIZE; in lofi_crypto() 656 cdata.cd_offset += DEV_BSIZE; in lofi_crypto() 658 wdata.cd_offset += DEV_BSIZE; in lofi_crypto() 1028 offset = bp->b_lblkno * DEV_BSIZE; /* offset within file */ in lofi_strategy_task() 1140 sdiff = salign & (DEV_BSIZE - 1); in lofi_strategy_task() 1383 offset = bp->b_lblkno * DEV_BSIZE; /* offset within file */ in lofi_strategy() [all …]
|
/titanic_41/usr/src/cmd/swap/ |
H A D | swap.c | 462 swapent->ste_start, DEV_BSIZE, in list() 468 DEV_BSIZE, scale)); in list() 473 DEV_BSIZE, scale)); in list() 476 swapent->ste_start * DEV_BSIZE / 1024, in list() 478 DEV_BSIZE / 1024, in list() 480 DEV_BSIZE / 1024); in list() 761 need = roundup(length, fs.f_bsize) / DEV_BSIZE; in valid()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | driver.c | 501 DDI_PROP_NOTPROM | DDI_PROP_DONTPASS, DEV_BSIZE); in bdev_size() 503 if (blksize >= DEV_BSIZE) in bdev_size() 504 return (nblocks * (blksize / DEV_BSIZE)); in bdev_size() 506 return (nblocks / (DEV_BSIZE / blksize)); in bdev_size() 526 DDI_PROP_NOTPROM | DDI_PROP_DONTPASS, DEV_BSIZE); in bdev_Size() 528 if (blksize >= DEV_BSIZE) in bdev_Size() 529 return (nblocks * (blksize / DEV_BSIZE)); in bdev_Size() 531 return (nblocks / (DEV_BSIZE / blksize)); in bdev_Size()
|
/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_init.c | 55 if (num & (DEV_BSIZE - 1)) { in parse_interlace() 63 num *= DEV_BSIZE / DEV_BSIZE; in parse_interlace() 67 num *= 1024 / DEV_BSIZE; in parse_interlace() 71 num *= 1024 * 1024 / DEV_BSIZE; in parse_interlace()
|
H A D | meta_db.c | 209 if ((buffer = Zalloc(MDDB_VERIFY_SIZE * DEV_BSIZE)) == NULL) in mkmasterblks() 220 if (lseek(fd, (off_t)(startblk * DEV_BSIZE), SEEK_SET) < 0) { in mkmasterblks() 225 iosize = DEV_BSIZE * consecutive; in mkmasterblks() 231 if (lseek(fd, (off_t)(startblk * DEV_BSIZE), SEEK_SET) < 0) { in mkmasterblks() 245 if ((mb = Zalloc(DEV_BSIZE)) == NULL) in mkmasterblks() 295 if (len <= DEV_BSIZE - sizeof (*mb)) { in mkmasterblks() 304 crcgen((uchar_t *)mb, (uint_t *)&mb->mb_checksum, (uint_t)DEV_BSIZE, in mkmasterblks() 307 if (lseek(fd, (off_t)(firstblk * DEV_BSIZE), SEEK_SET) < 0) { in mkmasterblks() 312 if (write(fd, mb, DEV_BSIZE) != DEV_BSIZE) { in mkmasterblks() 317 if (lseek(fd, (off_t)(firstblk * DEV_BSIZE), SEEK_SET) < 0) { in mkmasterblks() [all …]
|
/titanic_41/usr/src/cmd/svr4pkg/libinst/ |
H A D | nblk.c | 80 tot *= howmany(bsize, DEV_BSIZE); in nblk() 82 tot = howmany(frags, DEV_BSIZE); in nblk()
|
/titanic_41/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 75 #if DEV_BSIZE < 1024 76 #define kb(x) ((x) / (1024 / DEV_BSIZE)) 78 #define kb(x) ((x) * (DEV_BSIZE / 1024)) 791 rquota->rq_bsize / DEV_BSIZE; in getnfsquota() 794 rquota->rq_bsize / DEV_BSIZE; in getnfsquota() 797 rquota->rq_bsize / DEV_BSIZE; in getnfsquota() 895 zq->dqb_bhardlimit = userquota / DEV_BSIZE; in getzfsquota() 896 zq->dqb_bsoftlimit = userquota / DEV_BSIZE; in getzfsquota() 897 zq->dqb_curblocks = userused / DEV_BSIZE; in getzfsquota()
|
/titanic_41/usr/src/uts/common/fs/objfs/ |
H A D | objfs_vfs.c | 178 vfsp->vfs_bsize = DEV_BSIZE; in objfs_mount() 251 sp->f_bsize = DEV_BSIZE; in objfs_statvfs() 252 sp->f_frsize = DEV_BSIZE; in objfs_statvfs()
|
/titanic_41/usr/src/uts/common/fs/sharefs/ |
H A D | sharefs_vfsops.c | 200 vfsp->vfs_bsize = DEV_BSIZE; in sharefs_mount() 283 sp->f_bsize = DEV_BSIZE; in sharefs_statvfs() 284 sp->f_frsize = DEV_BSIZE; in sharefs_statvfs()
|
/titanic_41/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_root.c | 239 vfsp->vfs_bsize = DEV_BSIZE; in ctfs_mount() 346 sp->f_bsize = DEV_BSIZE; in ctfs_statvfs() 347 sp->f_frsize = DEV_BSIZE; in ctfs_statvfs() 383 vap->va_blksize = DEV_BSIZE; in ctfs_common_getattr()
|
/titanic_41/usr/src/cmd/fs.d/ufs/volcopy/ |
H A D | volcopy.c | 1643 if (lseek(fd, SBLOCK * DEV_BSIZE, 0) != SBLOCK * DEV_BSIZE) { in getinfs() 1646 cnt = SBSIZE/DEV_BSIZE; in getinfs() 1648 if (g_read(dev, fd, (char *)buf + i*DEV_BSIZE, DEV_BSIZE) in getinfs() 1649 != DEV_BSIZE) { in getinfs() 1662 if (lseek(fd, SBLOCK * DEV_BSIZE, 0) != SBLOCK * DEV_BSIZE) { in getoutfs() 1665 cnt = SBSIZE/DEV_BSIZE; in getoutfs() 1667 if (g_read(dev, fd, (char *)buf + i*DEV_BSIZE, DEV_BSIZE) in getoutfs() 1668 != DEV_BSIZE) { in getoutfs()
|
/titanic_41/usr/src/ucbhead/sys/ |
H A D | dir.h | 64 #if !defined(KERNEL) && !defined(DEV_BSIZE) 65 #define DEV_BSIZE 512 macro
|
/titanic_41/usr/src/lib/libbc/inc/include/sys/ |
H A D | param.h | 139 #define DEV_BSIZE 512 macro 153 #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
|
/titanic_41/usr/src/uts/common/fs/mntfs/ |
H A D | mntvfsops.c | 232 vfsp->vfs_bsize = DEV_BSIZE; in mntmount() 285 sp->f_bsize = DEV_BSIZE; in mntstatvfs() 286 sp->f_frsize = DEV_BSIZE; in mntstatvfs()
|