/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | defs.h | 37 #define DEV_BSIZE 512 macro 81 * Note that the disk devices are assumed to have DEV_BSIZE "sectors"
|
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 | 36 /* sizes are always in bytes, BLOCK values are always in DEV_BSIZE (sectors) */ 37 #define DEV_BSIZE 512 macro 46 #define SBLOCK (WHICH_SUPER * BLOCK_SIZE / DEV_BSIZE) /* = 2 */ 169 (sizeof (struct minix_super_block) / DEV_BSIZE))) 195 return devread (fsblock * (BLOCK_SIZE / DEV_BSIZE), 0, 273 devread (map * (BLOCK_SIZE / DEV_BSIZE),
|
H A D | fsys_ext2fs.c | 27 /* sizes are always in bytes, BLOCK values are always in DEV_BSIZE (sectors) */ 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)) 326 return devread (fsblock * (EXT2_BLOCK_SIZE (SUPERBLOCK) / DEV_BSIZE), 0, 488 devread (map * (EXT2_BLOCK_SIZE (SUPERBLOCK) / DEV_BSIZE), 534 ea_blocks = INODE->i_file_acl ? EXT2_BLOCK_SIZE (SUPERBLOCK) / DEV_BSIZE : 0;
|
H A D | ufs2.h | 71 #define DEV_BSIZE 512 macro
|
/illumos-gate/usr/src/ucbhead/sys/ |
H A D | dir.h | 64 #if !defined(KERNEL) && !defined(DEV_BSIZE) 65 #define DEV_BSIZE 512 macro
|
H A D | param.h | 196 * Note that the blocked devices are assumed to have DEV_BSIZE 200 #define DEV_BSIZE 512 macro 201 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ 216 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ 218 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \
|
/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | pcfs_glue.c | 47 #define DEV_BSIZE 512 macro 67 if (i >= DEV_BSIZE / 8) { 90 diskread_callback(blocknum, filep->fi_count / DEV_BSIZE); 94 diskloc = blocknum * DEV_BSIZE; 167 char buf[DEV_BSIZE]; 187 size = pcfs_glue_read(fd, buf, DEV_BSIZE); 188 if (size != DEV_BSIZE)
|
/illumos-gate/usr/src/lib/libbc/inc/include/sys/ |
H A D | param.h | 135 * Note that the blocked devices are assumed to have DEV_BSIZE 139 #define DEV_BSIZE 512 macro 140 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ 143 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ 145 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ 153 #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
|
/illumos-gate/usr/src/cmd/du/ |
H A D | du.c | 84 * convert DEV_BSIZE blocks to K blocks 86 #define DEV_BSIZE 512 macro 602 number_to_scaled_string(numbuf, blocks, DEV_BSIZE, scale),
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | param.h | 141 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ 143 #define DEV_BSIZE (1<<DEV_BSHIFT) macro 204 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ 211 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | fsck.c | 44 #define DEV_BSIZE 512 macro 481 DEV_BSIZE) && 482 lbs != DEV_BSIZE) {
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | restore.h | 178 #if !defined(DEV_BSIZE) 179 #define DEV_BSIZE 512 macro 181 #define DIRBLKSIZ DEV_BSIZE
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | ocfile.c | 278 howmany(svfsb.f_frsize, DEV_BSIZE) : 279 howmany(svfsb.f_bsize, DEV_BSIZE)) * svfsb.f_bfree; 311 DEV_BSIZE); local 339 * completely right but <some value + * 1.5 * map_blks * DEV_BSIZE> 343 cdiff_alloc = map_blks * DEV_BSIZE;
|
/illumos-gate/usr/src/cmd/fs.d/ufs/df/ |
H A D | df.c | 945 (void) llseek(fi, (offset_t)bno * DEV_BSIZE, 0); local
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_inode.c | 984 (caddr_t)P2ALIGN((uintptr_t)dp, DEV_BSIZE), 985 DEV_BSIZE); local
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | param.h | 234 * Note that the blocked devices are assumed to have DEV_BSIZE 238 #define DEV_BSIZE 512 macro 239 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ 256 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ 258 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ 262 #define lbtodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ 264 #define ldbtob(db) /* calculates (db * DEV_BSIZE) */ \ 319 * an architecture. Must be included after definition of DEV_BSIZE. 445 #define NDPP (PAGESIZE/DEV_BSIZE) /* # of disk blocks per page */
|
/illumos-gate/usr/src/cmd/sendmail/include/sm/ |
H A D | conf.h | 1973 # define DEV_BSIZE 512 /* device block size not defined */ macro
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsdb/ |
H A D | fsdb.c | 498 if (llseek(fd, (offset_t)(SBLOCK * DEV_BSIZE), 0) == -1) { 4103 addr = SBLOCK * DEV_BSIZE; 4875 (void) llseek(f, (offset_t)SBLOCK * DEV_BSIZE, 0); local 4888 off = (u_offset_t)fsbtodb(&sblock, itod(&sblock, inum)) * DEV_BSIZE; 4900 (void) llseek(f, (offset_t)(SBLOCK * DEV_BSIZE), 0); 4909 off = (u_offset_t)fsbtodb(&sblock, itod(&sblock, inum)) * DEV_BSIZE; 5209 if ((a & (DEV_BSIZE - 1)) == 0)
|