Searched defs:DEV_BSIZE (Results 1 - 19 of 19) sorted by last modified time

/illumos-gate/usr/src/cmd/fs.d/ufs/df/
H A Ddf.c945 (void) llseek(fi, (offset_t)bno * DEV_BSIZE, 0); local
/illumos-gate/usr/src/cmd/fs.d/ufs/fsdb/
H A Dfsdb.c488 if (llseek(fd, (offset_t)(SBLOCK * DEV_BSIZE), 0) == -1) {
4093 addr = SBLOCK * DEV_BSIZE;
4865 (void) llseek(f, (offset_t)SBLOCK * DEV_BSIZE, 0); local
4878 off = (u_offset_t)fsbtodb(&sblock, itod(&sblock, inum)) * DEV_BSIZE;
4890 (void) llseek(f, (offset_t)(SBLOCK * DEV_BSIZE), 0);
4899 off = (u_offset_t)fsbtodb(&sblock, itod(&sblock, inum)) * DEV_BSIZE;
5199 if ((a & (DEV_BSIZE - 1)) == 0)
/illumos-gate/usr/src/cmd/backup/restore/
H A Drestore.h176 #if !defined(DEV_BSIZE)
177 #define DEV_BSIZE 512 macro
179 #define DIRBLKSIZ DEV_BSIZE
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dpcfs_glue.c47 #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/uts/common/sys/
H A Dparam.h246 * Note that the blocked devices are assumed to have DEV_BSIZE
250 #define DEV_BSIZE 512 macro
251 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
268 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \
270 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \
274 #define lbtodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \
276 #define ldbtob(db) /* calculates (db * DEV_BSIZE) */ \
331 * an architecture. Must be included after definition of DEV_BSIZE.
457 #define NDPP (PAGESIZE/DEV_BSIZE) /* # of disk blocks per page */
/illumos-gate/usr/src/cmd/du/
H A Ddu.c82 * convert DEV_BSIZE blocks to K blocks
84 #define DEV_BSIZE 512 macro
534 bsize = Aflg ? 1 : DEV_BSIZE;
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Docfile.c281 howmany(svfsb.f_frsize, DEV_BSIZE) :
282 howmany(svfsb.f_bsize, DEV_BSIZE)) * svfsb.f_bfree;
314 DEV_BSIZE); local
342 * completely right but <some value + * 1.5 * map_blks * DEV_BSIZE>
346 cdiff_alloc = map_blks * DEV_BSIZE;
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_inode.c985 (caddr_t)P2ALIGN((uintptr_t)dp, DEV_BSIZE),
986 DEV_BSIZE); local
/illumos-gate/usr/src/boot/sys/sys/
H A Dparam.h141 #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/ucbhead/sys/
H A Dparam.h196 * 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) */ \
H A Ddir.h64 #if !defined(KERNEL) && !defined(DEV_BSIZE)
65 #define DEV_BSIZE 512 macro
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dparam.h135 * 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/grub/grub-0.97/stage2/
H A Ddefs.h37 #define DEV_BSIZE 512 macro
81 * Note that the disk devices are assumed to have DEV_BSIZE "sectors"
H A Ddir.h74 #define DIRBLKSIZ DEV_BSIZE
120 #ifndef DEV_BSIZE
121 #define DEV_BSIZE 512 macro
H A Dfsys_ext2fs.c27 /* 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 Dfsys_minix.c36 /* 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 Dufs2.h71 #define DEV_BSIZE 512 macro
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dconf.h1973 # define DEV_BSIZE 512 /* device block size not defined */ macro
/illumos-gate/usr/src/cmd/fs.d/
H A Dfsck.c44 #define DEV_BSIZE 512 macro
481 DEV_BSIZE) &&
482 lbs != DEV_BSIZE) {

Completed in 359 milliseconds