/original-bsd/sys/pmax/stand/ |
H A D | mkboottape.c | 58 char block[DEV_BSIZE]; 170 n = DEV_BSIZE; 175 if (write(ofd, block, DEV_BSIZE) != DEV_BSIZE) 182 bzero(block, DEV_BSIZE); 184 ((length + DEV_BSIZE - 1) & ~(DEV_BSIZE - 1)); 185 n = DEV_BSIZE; 195 if (read(rfd, block, DEV_BSIZE) != DEV_BSIZE) 197 if (write(ofd, block, DEV_BSIZE) != DEV_BSIZE)
|
H A D | rz.c | 40 offset = bn * DEV_BSIZE; 44 if (reqcnt & (DEV_BSIZE - 1)) { 49 offset += pp->p_offset * DEV_BSIZE; 69 char buf[DEV_BSIZE]; 91 lp->d_secsize = DEV_BSIZE; 96 i = rzstrategy(sc, F_READ, (daddr_t)LABELSECTOR, DEV_BSIZE, buf, &cnt); 97 if (i || cnt != DEV_BSIZE) {
|
H A D | mkboot.c | 29 char block[DEV_BSIZE]; 89 (length + DEV_BSIZE - 1) >> DEV_BSHIFT; 103 if (length < DEV_BSIZE) { 105 bzero(block, DEV_BSIZE); 107 n = DEV_BSIZE; 113 if (write(ofd2, block, DEV_BSIZE) != DEV_BSIZE) {
|
/original-bsd/sys/vax/mdec/ |
H A D | installboot.c | 37 read(fd, bootimage, DEV_BSIZE); 44 read(fd, &bootimage[DEV_BSIZE], BBSIZE - DEV_BSIZE);
|
/original-bsd/sys/news3400/iodev/ |
H A D | scsi.c | 273 scinit(sc, slave, DEV_BSIZE); 290 scinit(sc, slave, DEV_BSIZE); 307 scinit(sc, slave, DEV_BSIZE); 327 scinit(sc, slave, DEV_BSIZE); 351 scinit(sc, slave, DEV_BSIZE); 375 scinit(sc, slave, DEV_BSIZE); 394 scinit(sc, slave, DEV_BSIZE); 419 scinit(sc, slave, DEV_BSIZE); 445 scinit(sc, slave, DEV_BSIZE); 467 scinit(sc, slave, DEV_BSIZE); [all …]
|
/original-bsd/sys/luna68k/stand/ |
H A D | ufs_disksubr.c | 54 if (scsi_immed_command(0, dev, 0, &cdb, bp, DEV_BSIZE) != 0) { 58 dlp <= (struct disklabel *)(bp + DEV_BSIZE - sizeof(*dlp));
|
H A D | sd.c | 140 if (sc->sc_blksize != DEV_BSIZE) { 141 if (sc->sc_blksize < DEV_BSIZE) { 143 unit, DEV_BSIZE); 146 for (i = sc->sc_blksize; i > DEV_BSIZE; i >>= 1) 150 sc->sc_wpms = 32 * (60 * DEV_BSIZE / 2); /* XXX */ 180 lp->d_secsize = DEV_BSIZE;
|
/original-bsd/sys/vax/include/ |
H A D | param.h | 32 #define DEV_BSIZE 512 macro 106 #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
|
/original-bsd/sys/hp300/stand/ |
H A D | label.c | 47 liob.i_cc = lp->d_secsize ? lp->d_secsize : DEV_BSIZE; 52 dlp <= (struct disklabel *)(liob.i_buf+DEV_BSIZE-sizeof(*dlp));
|
H A D | sd.c | 72 if (capbuf[1] > DEV_BSIZE) 73 for (; capbuf[1] > DEV_BSIZE; capbuf[1] >>= 1) 102 lp->d_secsize = (DEV_BSIZE << ss->sc_blkshift);
|
/original-bsd/sys/tahoe/include/ |
H A D | param.h | 35 #define DEV_BSIZE 1024 macro 113 #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
|
/original-bsd/sys/hp300/include/ |
H A D | param.h | 43 #define DEV_BSIZE 512 macro 94 #define LABELSECTOR (1024/DEV_BSIZE) 108 #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
|
/original-bsd/sys/sparc/include/ |
H A D | param.h | 47 #define DEV_BSIZE 512 macro 108 #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE / DEV_BSIZE))
|
/original-bsd/sbin/clri/ |
H A D | clri.c | 59 if (lseek(fd, (off_t)(SBLOCK * DEV_BSIZE), SEEK_SET) < 0) 80 offset *= DEV_BSIZE; /* disk blk to bytes */
|
/original-bsd/sys/stand.att/ |
H A D | read.c | 46 file->i_bn = file->i_boff + (file->i_offset / DEV_BSIZE); 129 io->i_bn = io->i_offset / DEV_BSIZE + io->i_boff; 131 size = DEV_BSIZE;
|
H A D | lseek.c | 36 io->i_bn = addr / DEV_BSIZE;
|
/original-bsd/sys/tahoe/stand/vdformat/ |
H A D | util.c | 81 pp->p_fsize = DEV_BSIZE; 103 pp->p_fsize = DEV_BSIZE;
|
/original-bsd/sys/i386/include/ |
H A D | param.h | 40 #define DEV_BSIZE 512 macro 108 #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
|
/original-bsd/sys/pmax/include/ |
H A D | param.h | 43 #define DEV_BSIZE 512 macro 108 #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
|
/original-bsd/sys/ufs/ffs/ |
H A D | ufs_disksubr.c | 157 DEV_BSIZE - sizeof(*dlp)); 318 if (bp->b_bcount <= DEV_BSIZE) 326 bp->b_blkno + (bp->b_bcount - 1) / DEV_BSIZE); 330 sn *= DEV_BSIZE / lp->d_secsize; /* XXX */
|
/original-bsd/sys/ufs/ufs/ |
H A D | ufs_disksubr.c | 157 DEV_BSIZE - sizeof(*dlp)); 318 if (bp->b_bcount <= DEV_BSIZE) 326 bp->b_blkno + (bp->b_bcount - 1) / DEV_BSIZE); 330 sn *= DEV_BSIZE / lp->d_secsize; /* XXX */
|
/original-bsd/sys/luna68k/dev/ |
H A D | sd.c | 113 lp->d_secsize = DEV_BSIZE; 216 if (sc->sc_blksize != DEV_BSIZE) { 217 printf("sd%d: need %d byte blocks - drive ignored\n", unit, DEV_BSIZE); 221 sc->sc_wpms = 32 * (60 * DEV_BSIZE / 2); /* XXX */ 281 sz = howmany(bp->b_bcount, DEV_BSIZE); 338 *(u_short *)(&cmd->cdb[7]) = howmany(bp->b_bcount, DEV_BSIZE); 627 dlp <= (struct disklabel *)(bp->b_un.b_addr+DEV_BSIZE-sizeof(*dlp));
|
/original-bsd/sys/luna68k/include/ |
H A D | param.h | 46 #define DEV_BSIZE 512 macro 108 #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
|
/original-bsd/sys/news3400/include/ |
H A D | param.h | 44 #define DEV_BSIZE 512 macro 109 #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
|
/original-bsd/sbin/newfs/ |
H A D | newfs.c | 462 if (sectorsize != DEV_BSIZE) { /* XXX */ 463 int secperblk = DEV_BSIZE / sectorsize; 465 sectorsize = DEV_BSIZE; 475 if (realsectorsize != DEV_BSIZE) 476 pp->p_size *= DEV_BSIZE / realsectorsize;
|