lib/libc/gen/disklabel.c
81
getnumdflt(dp->d_secsize, "se", DEV_BSIZE);
lib/libc/gen/disktab.c
117
getnumdflt(dt->d_media_blksize, "se", DEV_BSIZE);
libexec/rpc.rquotad/rquotad.c
156
getq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize = DEV_BSIZE;
sbin/clri/clri.c
98
offset *= DEV_BSIZE; /* disk blk to bytes */
sbin/disklabel32/disklabel.c
536
dp->d_secsize = DEV_BSIZE;
sbin/disklabel32/disklabel.c
908
if (v == 0 || (v % DEV_BSIZE) != 0) {
sbin/dump/main.c
118
if (TP_BSIZE / DEV_BSIZE == 0 || TP_BSIZE % DEV_BSIZE != 0)
sbin/dump/main.c
61
#define SBOFF (SBLOCK * DEV_BSIZE)
sbin/dump/tape.c
448
prev->count * (TP_BSIZE / DEV_BSIZE);
sbin/ffsinfo/ffsinfo.c
103
if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) {
sbin/ffsinfo/ffsinfo.c
255
pinfo.media_blksize = DEV_BSIZE;
sbin/ffsinfo/ffsinfo.c
256
pinfo.media_blocks = pinfo.media_size / DEV_BSIZE;
sbin/ffsinfo/ffsinfo.c
270
rdfs((daddr_t)(SBOFF/DEV_BSIZE), (size_t)SBSIZE, &sblock, fsi);
sbin/fsck/setup.c
133
dev_bsize = secsize = DEV_BSIZE;
sbin/fsirand/fsirand.c
112
u_int32_t bsize = DEV_BSIZE;
sbin/growfs/growfs.c
1545
if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) {
sbin/growfs/growfs.c
1572
if (lseek(fso, (off_t)bno * DEV_BSIZE, SEEK_SET) < 0) {
sbin/growfs/growfs.c
2021
pinfo.media_blocks = st.st_size / DEV_BSIZE;
sbin/growfs/growfs.c
2022
pinfo.media_blksize = DEV_BSIZE;
sbin/growfs/growfs.c
2035
rdfs((daddr_t)(SBOFF/DEV_BSIZE), (size_t)SBSIZE, &osblock, fsi);
sbin/growfs/growfs.c
2103
wtfs((daddr_t)pinfo.media_blocks-1, (size_t)DEV_BSIZE, &sblock, fso,
sbin/growfs/growfs.c
285
wtfs((daddr_t)(SBOFF / DEV_BSIZE), (size_t)SBSIZE, &sblock,
sbin/newfs/mkfs.c
246
wtfs(fssize - (realsectorsize / DEV_BSIZE), realsectorsize,
sbin/newfs/newfs.c
614
if (sectorsize != DEV_BSIZE) { /* XXX */
sbin/newfs/newfs.c
615
int secperblk = sectorsize / DEV_BSIZE;
sbin/newfs/newfs.c
617
sectorsize = DEV_BSIZE;
sbin/vinum/list.c
1319
drivelength = ((u_int64_t) label.d_partitions[partition].p_size) * DEV_BSIZE;
sbin/vinum/list.c
1350
drivelength = ((u_int64_t) label.d_partitions[partition].p_size) * DEV_BSIZE;
sbin/vinum/list.c
1373
char vinumlabel[DEV_BSIZE]; /* one sector for label */
sbin/vinum/list.c
1389
if (read(fd, vinumlabel, DEV_BSIZE) != DEV_BSIZE) {
sbin/vinum/list.c
174
* DEV_BSIZE),
sbin/vinum/list.c
176
* DEV_BSIZE) / MEGABYTE,
sbin/vinum/list.c
177
(long long) drive.sectors_available * DEV_BSIZE,
sbin/vinum/list.c
178
(int) (drive.sectors_available * DEV_BSIZE / MEGABYTE));
sbin/vinum/list.c
219
(long long) drive.sectors_available * DEV_BSIZE / MEGABYTE,
sbin/vinum/list.c
223
(int) ((drive.sectors_available * 100 * DEV_BSIZE)
sbin/vinum/list.c
224
/ (drive.label.drive_size - (DATASTART * DEV_BSIZE))));
sbin/vinum/list.c
307
((long long) vol.size) * DEV_BSIZE,
sbin/vinum/list.c
308
((long long) vol.size) * DEV_BSIZE / MEGABYTE,
sbin/vinum/list.c
431
(long long) plex.length * DEV_BSIZE,
sbin/vinum/list.c
432
(long long) plex.length * DEV_BSIZE / MEGABYTE,
sbin/vinum/list.c
438
printf("\tStripe size: %s\n", roughlength(plex.stripesize * DEV_BSIZE, 1));
sbin/vinum/list.c
545
(long long) sd.sectors * DEV_BSIZE,
sbin/vinum/list.c
546
(long long) sd.sectors * DEV_BSIZE / MEGABYTE);
sbin/vinum/list.c
601
(long long) sd.sectors * DEV_BSIZE,
sbin/vinum/list.c
602
(long long) sd.sectors / (MEGABYTE / DEV_BSIZE),
sbin/vinum/list.c
610
(long long) sd.plexoffset * DEV_BSIZE,
sbin/vinum/list.c
611
roughlength((long long) sd.plexoffset * DEV_BSIZE, 1));
sbin/vinum/list.c
667
(long long) (sd.driveoffset * DEV_BSIZE),
sbin/vinum/list.c
668
roughlength(sd.driveoffset * DEV_BSIZE, 1));
sbin/vinum/list.c
672
(long long) (sd.driveoffset * DEV_BSIZE),
sbin/vinum/list.c
673
roughlength(sd.driveoffset * DEV_BSIZE, 1));
stand/boot/common/boot2.h
73
char secbuf[DEV_BSIZE*4];
stand/boot/common/ufsread.c
100
char buf[DEV_BSIZE];
stand/boot/common/ufsread.c
106
while ((n = boot2_ufs_read(*ino, buf, DEV_BSIZE)) > 0)
stand/boot/common/ufsread.c
107
for (s = buf; s < buf + DEV_BSIZE;) {
stand/boot/common/ufsread.c
181
if (dskread(fs, sblock_try[n] / DEV_BSIZE,
stand/boot/common/ufsread.c
182
SBLOCKSIZE / DEV_BSIZE)) {
stand/boot/common/ufsread.c
56
#define DBPERVBLK (VBLKSIZE / DEV_BSIZE)
stand/boot/common/ufsread.c
72
char secbuf[DEV_BSIZE*4]; /* for MBR/disklabel */
stand/boot/efi/boot1/ufs_module.c
100
if (dskread(label, 0, label_size / DEV_BSIZE) == 0 &&
stand/boot/efi/boot1/ufs_module.c
55
lba += label_off / DEV_BSIZE; /* adjust for disklabel partition */
stand/boot/efi/boot1/ufs_module.c
56
lba = lba / (devinfo->dev->Media->BlockSize / DEV_BSIZE);
stand/boot/efi/boot1/ufs_module.c
57
size = nblk * DEV_BSIZE;
stand/boot/efi/libefi/efipart.c
309
blk += dev->d_kind.efidisk.label_offset / DEV_BSIZE;
stand/boot/pc32/libi386/bioscd.c
235
if (dblk % (BIOSCD_SECSIZE / DEV_BSIZE) != 0)
stand/boot/pc32/libi386/bioscd.c
237
dblk /= (BIOSCD_SECSIZE / DEV_BSIZE);
stand/lib/cd9660.c
117
#define cdb2devb(bno) ((bno) * (ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE))
stand/lib/ext2fs.c
115
#define EXT2_SBLOCK (1024 / DEV_BSIZE) /* block offset of superblock */
stand/lib/ext2fs.c
380
fs->fs_fsbtodb = (fs->fs_bsize / DEV_BSIZE) - 1;
stand/lib/ext2fs.c
393
EXT2_SBLOCK + EXT2_SBSIZE / DEV_BSIZE, len,
stand/lib/ufs.c
424
SBOFF / DEV_BSIZE, SBSIZE, (char *)fs, &buf_size);
sys/cpu/x86_64/include/param.h
116
#define DEV_BMASK (DEV_BSIZE - 1)
sys/dev/disk/ccd/ccd.c
306
info.d_media_blksize = DEV_BSIZE;
sys/dev/disk/ccd/ccd.c
515
(cs->sc_ileave % (maxsecsize / DEV_BSIZE))) {
sys/dev/disk/ccd/ccd.c
519
ccd->ccd_unit, (maxsecsize / DEV_BSIZE));
sys/dev/disk/dm/crypt/dm_target_crypt.c
1032
priv->block_offset * DEV_BSIZE;
sys/dev/disk/dm/crypt/dm_target_crypt.c
680
if (((bp->b_bcount % DEV_BSIZE) != 0) ||
sys/dev/disk/dm/crypt/dm_target_crypt.c
697
priv->block_offset * DEV_BSIZE;
sys/dev/disk/dm/crypt/dm_target_crypt.c
705
priv->block_offset * DEV_BSIZE;
sys/dev/disk/dm/crypt/dm_target_crypt.c
963
int sectors = bytes / DEV_BSIZE; /* Number of sectors */
sys/dev/disk/dm/crypt/dm_target_crypt.c
964
off_t isector = offset / DEV_BSIZE; /* ivgen salt base? */
sys/dev/disk/dm/crypt/dm_target_crypt.c
967
KKASSERT((sectors * DEV_BSIZE) == bytes);
sys/dev/disk/dm/crypt/dm_target_crypt.c
979
data_buf + i * DEV_BSIZE,
sys/dev/disk/dm/crypt/dm_target_crypt.c
980
DEV_BSIZE, iv, sizeof(iv), mode);
sys/dev/disk/dm/delay/dm_target_delay.c
266
bp->b_bio1.bio_offset += di->offset * DEV_BSIZE;
sys/dev/disk/dm/device-mapper.c
341
dpart->media_size = size * DEV_BSIZE;
sys/dev/disk/dm/device-mapper.c
343
dpart->media_blksize = DEV_BSIZE;
sys/dev/disk/dm/device-mapper.c
400
bounds_check_with_mediasize(bio, DEV_BSIZE,
sys/dev/disk/dm/device-mapper.c
420
table_start = table_en->start * DEV_BSIZE;
sys/dev/disk/dm/device-mapper.c
421
table_end = table_start + table_en->length * DEV_BSIZE;
sys/dev/disk/dm/device-mapper.c
497
table_start = table_en->start * DEV_BSIZE;
sys/dev/disk/dm/device-mapper.c
498
table_end = table_start + table_en->length * DEV_BSIZE;
sys/dev/disk/dm/device-mapper.c
559
info.d_media_blksize = DEV_BSIZE;
sys/dev/disk/dm/device-mapper.c
563
info.d_media_size = dmp_size * DEV_BSIZE;
sys/dev/disk/dm/dm_dev.c
247
devstat_add_entry(&dmv->stats, name, 0, DEV_BSIZE,
sys/dev/disk/dm/dm_pdev.c
108
noffset *= DEV_BSIZE;
sys/dev/disk/dm/dmirror/dm_target_dmirror.c
320
if (((bp->b_bcount % DEV_BSIZE) != 0) || (bp->b_bcount == 0)) {
sys/dev/disk/dm/dmirror/dm_target_dmirror.c
341
priv->block_offset*DEV_BSIZE;
sys/dev/disk/dm/dmirror/dm_target_dmirror.c
347
priv->block_offset*DEV_BSIZE;
sys/dev/disk/dm/dmirror/dm_target_dmirror.c
358
bio->bio_offset = bp->b_bio1.bio_offset + priv->block_offset*DEV_BSIZE;
sys/dev/disk/dm/dmirror/dm_target_dmirror.c
369
bio->bio_offset = bp->b_bio1.bio_offset + priv->block_offset*DEV_BSIZE;
sys/dev/disk/dm/flakey/dm_target_flakey.c
254
bio->bio_offset += tfc->offset * DEV_BSIZE;
sys/dev/disk/dm/linear/dm_target_linear.c
114
bp->b_bio1.bio_offset += tlc->offset * DEV_BSIZE;
sys/dev/disk/dm/linear/dm_target_linear.c
129
offset += tlc->offset * DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
101
(intmax_t)chunksize * DEV_BSIZE / 1024);
sys/dev/disk/dm/striped/dm_target_striped.c
244
blkno = bio->bio_offset / DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
297
KKASSERT(bp->b_resid % DEV_BSIZE == 0);
sys/dev/disk/dm/striped/dm_target_striped.c
306
blkno = bio->bio_offset / DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
308
num_blks = bp->b_resid / DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
330
issue_blks * DEV_BSIZE, NULL);
sys/dev/disk/dm/striped/dm_target_striped.c
336
nbio->bio_offset *= DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
341
blkoff += issue_blks * DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
387
KKASSERT(length % DEV_BSIZE == 0);
sys/dev/disk/dm/striped/dm_target_striped.c
389
blkno = offset / DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
391
num_blks = length / DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
424
issue_blks * DEV_BSIZE);
sys/dev/disk/dm/striped/dm_target_striped.c
426
len2 = issue_blks * DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
431
off2 *= DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
442
blkoff += issue_blks * DEV_BSIZE;
sys/dev/disk/dm/striped/dm_target_striped.c
99
if (chunksize < 1 || chunksize * DEV_BSIZE > MAXPHYS) {
sys/dev/disk/md/md.c
283
bcopy(secp, dst, DEV_BSIZE);
sys/dev/disk/md/md.c
285
for (i = 0; i < DEV_BSIZE; i++)
sys/dev/disk/md/md.c
288
bzero(dst, DEV_BSIZE);
sys/dev/disk/md/md.c
293
for (i = 1; i < DEV_BSIZE; i++)
sys/dev/disk/md/md.c
296
if (i == DEV_BSIZE && !uc) {
sys/dev/disk/md/md.c
312
if (i == DEV_BSIZE) {
sys/dev/disk/md/md.c
318
secp = kmalloc(DEV_BSIZE,
sys/dev/disk/md/md.c
321
bcopy(dst, secp, DEV_BSIZE);
sys/dev/disk/md/md.c
332
dst += DEV_BSIZE;
sys/dev/disk/md/md.c
412
devstat_add_entry(&sc->stats, "md", sc->unit, DEV_BSIZE,
sys/dev/disk/md/md.c
422
info.d_media_blksize = DEV_BSIZE; /* mandatory */
sys/dev/disk/md/md.c
423
info.d_media_blocks = length / DEV_BSIZE;
sys/dev/disk/md/md.c
443
sc->nsect = length / DEV_BSIZE;
sys/dev/disk/md/md.c
456
sc = mdcreate(MD_NSECT*DEV_BSIZE);
sys/dev/disk/nata/ata-all.c
583
atadev->max_iosize = DEV_BSIZE;
sys/dev/disk/nata/ata-all.c
615
request->transfersize = DEV_BSIZE;
sys/dev/disk/nata/ata-all.c
760
if (request->transfersize > DEV_BSIZE)
sys/dev/disk/nata/ata-all.c
771
if (request->transfersize > DEV_BSIZE)
sys/dev/disk/nata/ata-all.c
788
if (request->transfersize > DEV_BSIZE)
sys/dev/disk/nata/ata-all.c
799
if (request->transfersize > DEV_BSIZE)
sys/dev/disk/nata/ata-disk.c
129
devstat_add_entry(&adp->stats, "ad", device_get_unit(dev), DEV_BSIZE,
sys/dev/disk/nata/ata-disk.c
142
info.d_media_blksize = DEV_BSIZE; /* mandatory */
sys/dev/disk/nata/ata-disk.c
316
request->u.ata.count = request->bytecount / DEV_BSIZE;
sys/dev/disk/nata/ata-disk.c
326
else if (request->transfersize > DEV_BSIZE)
sys/dev/disk/nata/ata-disk.c
337
else if (request->transfersize > DEV_BSIZE)
sys/dev/disk/nata/ata-disk.c
417
} else if (request.transfersize > DEV_BSIZE)
sys/dev/disk/nata/ata-disk.c
421
request.u.ata.lba = ap->a_offset / DEV_BSIZE;
sys/dev/disk/nata/ata-disk.c
422
request.u.ata.count = request.bytecount / DEV_BSIZE;
sys/dev/disk/nata/ata-disk.c
455
atadev->max_iosize = secsperint * DEV_BSIZE;
sys/dev/disk/nata/ata-disk.c
458
atadev->max_iosize = DEV_BSIZE;
sys/dev/disk/nata/ata-disk.c
532
adp->total_secs / (1048576 / DEV_BSIZE),
sys/dev/disk/nata/ata-disk.c
541
adp->heads, adp->sectors, atadev->max_iosize / DEV_BSIZE,
sys/dev/disk/nata/ata-dma.c
77
ch->dma->max_iosize = 128 * DEV_BSIZE;
sys/dev/disk/nata/ata-raid.c
160
(rdp->interleave * DEV_BSIZE) / 1024);
sys/dev/disk/nata/ata-raid.c
166
DEV_BSIZE, DEVSTAT_NO_ORDERED_TAGS,
sys/dev/disk/nata/ata-raid.c
172
cdev->si_iosize_max = 128 * DEV_BSIZE;
sys/dev/disk/nata/ata-raid.c
176
info.d_media_blksize = DEV_BSIZE; /* mandatory */
sys/dev/disk/nata/ata-raid.c
185
rdp->total_sectors / ((1024L * 1024L) / DEV_BSIZE),
sys/dev/disk/nata/ata-raid.c
334
for (count = howmany(bbp->b_bcount, DEV_BSIZE),
sys/dev/disk/nata/ata-raid.c
339
count -= chunk, blkno += chunk, data += (chunk * DEV_BSIZE)) {
sys/dev/disk/nata/ata-raid.c
391
request->bytecount = chunk * DEV_BSIZE;
sys/dev/disk/nata/ata-raid.c
393
request->u.ata.count = request->bytecount / DEV_BSIZE;
sys/dev/disk/nata/ata-raid.c
4061
else if (atadev->max_iosize > DEV_BSIZE)
sys/dev/disk/nata/ata-raid.c
4071
else if (atadev->max_iosize > DEV_BSIZE)
sys/dev/disk/nata/ata-raid.c
4093
if (bcount % DEV_BSIZE) {
sys/dev/disk/nata/ata-raid.c
4109
request->transfersize = DEV_BSIZE;
sys/dev/disk/nata/ata-raid.c
4111
request->u.ata.count = request->bytecount / DEV_BSIZE;
sys/dev/disk/nata/atapi-cd.c
151
devstat_add_entry(&cdp->stats, "acd", device_get_unit(dev), DEV_BSIZE,
sys/dev/disk/nata/atapi-fd.c
117
devstat_add_entry(&fdp->stats, "afd", device_get_unit(dev), DEV_BSIZE,
sys/dev/disk/nata/atapi-tape.c
144
devstat_add_entry(&stp->stats, "ast", device_get_unit(dev), DEV_BSIZE,
sys/dev/disk/nata/atapi-tape.c
704
kprintf("%dKB buffer, ", (stp->cap.buffer_size * DEV_BSIZE) / 1024);
sys/dev/disk/nata/chipsets/ata-cyrix.c
86
ch->dma->max_iosize = 64 * DEV_BSIZE;
sys/dev/disk/nata/chipsets/ata-marvell.c
563
ch->dma->max_iosize = 64 * DEV_BSIZE;
sys/dev/disk/nata/chipsets/ata-national.c
78
ch->dma->max_iosize = 64 * DEV_BSIZE;
sys/dev/disk/nata/chipsets/ata-serverworks.c
162
ch->dma->max_iosize = 64 * DEV_BSIZE;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
317
ch->dma->segsize = 15 * DEV_BSIZE;
sys/dev/disk/nata/chipsets/ata-via.c
153
pci_write_config(dev, 0x60, DEV_BSIZE, 2);
sys/dev/disk/nata/chipsets/ata-via.c
154
pci_write_config(dev, 0x68, DEV_BSIZE, 2);
sys/dev/disk/vn/vn.c
551
vn->sc_secsize = DEV_BSIZE;
sys/dev/disk/vn/vn.c
581
info.d_nheads = 64 / (vn->sc_secsize / DEV_BSIZE);
sys/dev/disk/vn/vn.c
655
info.d_nheads = 64 / (vn->sc_secsize / DEV_BSIZE);
sys/dev/disk/xdisk/xdisk.c
477
DEV_BSIZE,
sys/dev/raid/ida/ida.c
345
hwqcb->req.bcount = howmany(datasize, DEV_BSIZE);
sys/dev/raid/ida/ida.c
411
hwqcb->req.bcount = howmany(bp->b_bcount, DEV_BSIZE);
sys/dev/raid/ida/ida.c
414
KKASSERT(bio->bio_offset < 0x100000000ULL * DEV_BSIZE);
sys/dev/raid/ida/ida_disk.c
206
ap->a_length, drv->drive, ap->a_offset / DEV_BSIZE, DMA_DATA_OUT);
sys/dev/raid/ips/ips_disk.c
179
devstat_add_entry(&dsc->stats, "ipsd", dsc->unit, DEV_BSIZE,
sys/dev/raid/vinum/vinumconfig.c
1162
if ((size % DEV_BSIZE) != 0)
sys/dev/raid/vinum/vinumconfig.c
1168
sd->plexoffset = size / DEV_BSIZE;
sys/dev/raid/vinum/vinumconfig.c
1176
if ((size % DEV_BSIZE) != 0)
sys/dev/raid/vinum/vinumconfig.c
1182
sd->driveoffset = size / DEV_BSIZE;
sys/dev/raid/vinum/vinumconfig.c
1190
if ((size % DEV_BSIZE) != 0)
sys/dev/raid/vinum/vinumconfig.c
1193
sd->sectors = size / DEV_BSIZE;
sys/dev/raid/vinum/vinumconfig.c
1372
if (stripesize % DEV_BSIZE != 0) /* not a multiple of block size, */
sys/dev/raid/vinum/vinumconfig.c
1377
plex->stripesize = stripesize / DEV_BSIZE;
sys/dev/raid/vinum/vinumconfig.c
1386
if (stripesize % DEV_BSIZE != 0) /* not a multiple of block size, */
sys/dev/raid/vinum/vinumconfig.c
1391
plex->stripesize = stripesize / DEV_BSIZE;
sys/dev/raid/vinum/vinumconfig.c
1400
if (stripesize % DEV_BSIZE != 0) /* not a multiple of block size, */
sys/dev/raid/vinum/vinumconfig.c
1405
plex->stripesize = stripesize / DEV_BSIZE;
sys/dev/raid/vinum/vinumconfig.c
926
vol->blocksize = DEV_BSIZE; /* block size of this volume */
sys/dev/raid/vinum/vinuminterrupt.c
175
length = urqe->grouplen * (DEV_BSIZE / sizeof(int)); /* and number of ints */
sys/dev/raid/vinum/vinuminterrupt.c
365
length = rqe->datalen * (DEV_BSIZE / sizeof(int)); /* and number of ints */
sys/dev/raid/vinum/vinumio.c
132
drive->sectors_available = drive->label.drive_size / DEV_BSIZE - DATASTART;
sys/dev/raid/vinum/vinumioctl.c
352
dpart->media_size = (u_int64_t)vol->size * DEV_BSIZE;
sys/dev/raid/vinum/vinumioctl.c
354
dpart->media_blksize = DEV_BSIZE;
sys/dev/raid/vinum/vinumrequest.c
1005
int size = (bp->b_bcount + DEV_BSIZE - 1) >> DEV_BSHIFT; /* size of this request (sectors) */
sys/dev/raid/vinum/vinumrequest.c
206
if ((bp->b_bcount % DEV_BSIZE) != 0) { /* bad length */
sys/dev/raid/vinum/vinumrequest.c
264
diskaddr + (bp->b_bcount / DEV_BSIZE));
sys/dev/raid/vinum/vinumrequest.c
290
diskend = diskstart + bp->b_bcount / DEV_BSIZE;
sys/dev/raid/vinum/vinumrequest.c
701
diskend = diskaddr + (bp->b_bcount / DEV_BSIZE); /* and end offset of transfer */
sys/dev/raid/vinum/vinumrequest.c
776
diskend = (vinum_off_t)(bio->bio_offset >> DEV_BSHIFT) + (bp->b_bcount / DEV_BSIZE); /* end offset of transfer */
sys/dev/raid/vinum/vinumrequest.c
845
bp->b_data = ubp->b_data + rqe->useroffset * DEV_BSIZE;
sys/dev/raid/vinum/vinumrequest.c
952
endoffset = (vinum_off_t)(bio->bio_offset >> DEV_BSHIFT) + sbp->b.b_bcount / DEV_BSIZE; /* final sector offset */
sys/dev/raid/vinum/vinumrequest.c
954
sbp->b.b_bcount -= (endoffset - sd->sectors) * DEV_BSIZE; /* trim */
sys/dev/raid/vinum/vinumvar.h
387
DATASTART = (MAXCONFIG * 2 + VINUM_CONFIG_OFFSET) / DEV_BSIZE
sys/dev/virtual/virtio/block/virtio_blk.c
744
DEV_BSIZE, DEVSTAT_ALL_SUPPORTED,
sys/dev/virtual/virtio/block/virtio_blk.c
831
req->vbr_hdr.sector = bio->bio_offset / DEV_BSIZE;
sys/dev/virtual/virtio/block/virtio_blk.c
835
req->vbr_hdr.sector = bio->bio_offset / DEV_BSIZE;
sys/dev/virtual/vkernel/disk/vdisk.c
122
devstat_add_entry(&sc->stats, "vkd", sc->unit, DEV_BSIZE,
sys/dev/virtual/vkernel/disk/vdisk.c
151
info.d_media_blksize = DEV_BSIZE;
sys/kern/subr_disk.c
1289
size *= DEV_BSIZE;
sys/kern/subr_disk.c
1290
offset = ap->a_blkno * DEV_BSIZE;
sys/kern/subr_disk.c
1465
if (bio->bio_offset/DEV_BSIZE + sz > mediasize) {
sys/kern/subr_disk.c
1466
sz = mediasize - bio->bio_offset/DEV_BSIZE;
sys/kern/subr_disk.c
935
di.mediaoffset = blkno * DEV_BSIZE;
sys/kern/subr_disk.c
936
di.mediasize = size * DEV_BSIZE;
sys/kern/subr_diskiocom.c
354
if (msg->any.blk_read.bytes < DEV_BSIZE ||
sys/kern/subr_diskiocom.c
412
if (msg->any.blk_write.bytes < DEV_BSIZE ||
sys/kern/subr_diskslice.c
698
ssp->dss_secmult = info->d_media_blksize / DEV_BSIZE;
sys/kern/vfs_bio.c
2933
bsize = DEV_BSIZE;
sys/kern/vfs_bio.c
3044
newbsize = roundup2(size, DEV_BSIZE);
sys/kern/vfs_bio.c
4208
mask = (1 << (bp->b_bufsize / DEV_BSIZE)) - 1;
sys/kern/vfs_bio.c
4222
int j = ((vm_offset_t)sa & PAGE_MASK) / DEV_BSIZE;
sys/kern/vfs_bio.c
4227
mask = ((1 << ((ea - sa) / DEV_BSIZE)) - 1) << j;
sys/kern/vfs_bio.c
4233
for (; sa < ea; sa += DEV_BSIZE, j++) {
sys/kern/vfs_bio.c
4236
bzero(sa, DEV_BSIZE);
sys/kern/vfs_cache.c
2768
blksize = DEV_BSIZE;
sys/platform/pc64/x86_64/dump_machdep.c
116
len = DEV_BSIZE - fragsz;
sys/platform/pc64/x86_64/dump_machdep.c
123
if (fragsz == DEV_BSIZE) {
sys/platform/pc64/x86_64/dump_machdep.c
125
DEV_BSIZE);
sys/platform/pc64/x86_64/dump_machdep.c
128
dumplo += DEV_BSIZE;
sys/platform/pc64/x86_64/dump_machdep.c
144
error = dev_ddump(di->priv, buffer, 0, dumplo, DEV_BSIZE);
sys/platform/pc64/x86_64/dump_machdep.c
145
dumplo += DEV_BSIZE;
sys/platform/pc64/x86_64/dump_machdep.c
59
#define DEV_ALIGN(x) roundup2((off_t)(x), DEV_BSIZE)
sys/platform/pc64/x86_64/dump_machdep.c
72
static char buffer[DEV_BSIZE];
sys/platform/pc64/x86_64/minidump_machdep.c
58
#define DEV_ALIGN(x) roundup2((off_t)(x), DEV_BSIZE)
sys/vfs/devfs/devfs_vfsops.c
185
sbp->f_bsize = DEV_BSIZE;
sys/vfs/devfs/devfs_vfsops.c
186
sbp->f_iosize = DEV_BSIZE;
sys/vfs/devfs/devfs_vnops.c
1049
dev->si_bsize_phys = DEV_BSIZE;
sys/vfs/devfs/devfs_vnops.c
1897
chunksize = DEV_BSIZE;
sys/vfs/devfs/devfs_vnops.c
2139
blksiz = DEV_BSIZE;
sys/vfs/devfs/devfs_vnops.c
578
vap->va_blocksize = DEV_BSIZE;
sys/vfs/ext2fs/ext2_vnops.c
1249
#define DIRBLKSIZ DEV_BSIZE
sys/vfs/hpfs/hpfs.h
133
#define D_BSIZE (DEV_BSIZE*4)
sys/vfs/hpfs/hpfs.h
183
#define FNODESIZE DEV_BSIZE
sys/vfs/hpfs/hpfs.h
41
#define SUSIZE DEV_BSIZE
sys/vfs/hpfs/hpfs.h
43
#define SPSIZE DEV_BSIZE
sys/vfs/hpfs/hpfs.h
44
#define BMSIZE (4 * DEV_BSIZE)
sys/vfs/hpfs/hpfs_alsubr.c
178
bp = getblk(hpmp->hpm_devvp, dbtodoff(lsn), DEV_BSIZE, 0, 0);
sys/vfs/hpfs/hpfs_alsubr.c
344
al.al_off = (hp->h_fn.fn_size + DEV_BSIZE - 1) >> DEV_BSHIFT;
sys/vfs/hpfs/hpfs_alsubr.c
91
DEV_BSIZE, &bp);
sys/vfs/hpfs/hpfs_subr.c
220
error = bread(hpmp->hpm_devvp, dbtodoff(cpibp->b_cpdsec), DEV_BSIZE, &bp);
sys/vfs/hpfs/hpfs_subr.c
283
error = bread(hpmp->hpm_devvp, dbtodoff(lsn), DEV_BSIZE, &bp);
sys/vfs/hpfs/hpfs_subr.c
767
newblen = (size + DEV_BSIZE - 1) >> DEV_BSHIFT;
sys/vfs/hpfs/hpfs_subr.c
769
oldblen = (hp->h_fn.fn_size + DEV_BSIZE - 1) >> DEV_BSHIFT;
sys/vfs/hpfs/hpfs_subr.c
811
newblen = (size + DEV_BSIZE - 1) >> DEV_BSHIFT;
sys/vfs/hpfs/hpfs_subr.c
812
oldblen = (hp->h_fn.fn_size + DEV_BSIZE - 1) >> DEV_BSHIFT;
sys/vfs/hpfs/hpfs_subr.h
77
hpfs_breadstruct(hpmp, lsn, DEV_BSIZE, AS_MAGIC, bpp)
sys/vfs/hpfs/hpfs_vfsops.c
406
sbp->f_bsize = DEV_BSIZE;
sys/vfs/hpfs/hpfs_vfsops.c
407
sbp->f_iosize = DEV_BSIZE;
sys/vfs/hpfs/hpfs_vnops.c
319
off = uio->uio_offset & (DEV_BSIZE - 1);
sys/vfs/hpfs/hpfs_vnops.c
326
toread = min(off + resid, min(64*1024, (runl+1)*DEV_BSIZE));
sys/vfs/hpfs/hpfs_vnops.c
327
xfersz = roundup2(toread, DEV_BSIZE);
sys/vfs/hpfs/hpfs_vnops.c
387
off = uio->uio_offset & (DEV_BSIZE - 1);
sys/vfs/hpfs/hpfs_vnops.c
395
min(64*1024, (runl+1)*DEV_BSIZE));
sys/vfs/hpfs/hpfs_vnops.c
396
xfersz = roundup2(towrite, DEV_BSIZE);
sys/vfs/hpfs/hpfs_vnops.c
464
vap->va_bytes = roundup2(hp->h_fn.fn_size, DEV_BSIZE) + DEV_BSIZE;
sys/vfs/hpfs/hpfs_vnops.c
477
vap->va_blocksize = DEV_BSIZE;
sys/vfs/hpfs/hpfs_vnops.c
561
error = vtruncbuf(vp, vap->va_size, DEV_BSIZE);
sys/vfs/isofs/cd9660/cd9660_vfsops.c
401
if (logical_block_size < DEV_BSIZE || logical_block_size > MAXBSIZE
sys/vfs/mfs/mfs_vfsops.c
335
dev->si_bsize_phys = DEV_BSIZE;
sys/vfs/msdosfs/msdosfs_denode.c
346
ldep->de_FileSize = pmp->pm_rootdirsize * DEV_BSIZE;
sys/vfs/msdosfs/msdosfs_fat.c
86
size = min(pmp->pm_fatblocksec, pmp->pm_FATsecs - bn) * DEV_BSIZE;
sys/vfs/msdosfs/msdosfs_vfsops.c
364
if (pmp->pm_BytesPerSec < DEV_BSIZE) {
sys/vfs/msdosfs/msdosfs_vfsops.c
378
pmp->pm_BlkPerSec = pmp->pm_BytesPerSec / DEV_BSIZE;
sys/vfs/msdosfs/msdosfs_vfsops.c
424
pmp->pm_BytesPerSec < DEV_BSIZE ||
sys/vfs/msdosfs/msdosfs_vfsops.c
427
SecPerClust * pmp->pm_BlkPerSec > MAXBSIZE / DEV_BSIZE) {
sys/vfs/msdosfs/msdosfs_vfsops.c
455
sizeof(struct direntry), DEV_BSIZE); /* in blocks */
sys/vfs/msdosfs/msdosfs_vfsops.c
484
clusters = ((pmp->pm_FATsecs * DEV_BSIZE) / pmp->pm_fatmult) *
sys/vfs/msdosfs/msdosfs_vfsops.c
498
pmp->pm_fatblocksec = pmp->pm_fatblocksize / DEV_BSIZE;
sys/vfs/msdosfs/msdosfs_vfsops.c
505
pmp->pm_bpcluster = SecPerClust * DEV_BSIZE;
sys/vfs/nfs/nfs_vfsops.c
692
nd->swap_nblks * DEV_BSIZE ;
sys/vfs/procfs/procfs_vnops.c
623
vap->va_size = vap->va_bytes = DEV_BSIZE;
sys/vfs/procfs/procfs_vnops.c
639
vap->va_size = vap->va_bytes = DEV_BSIZE;
sys/vfs/smbfs/smbfs_io.c
492
int nvalid = rounddown2((size + DEV_BSIZE - 1) - toff,
sys/vfs/smbfs/smbfs_io.c
493
DEV_BSIZE);
sys/vfs/ufs/dir.h
75
#define DIRBLKSIZ DEV_BSIZE
sys/vm/vm_page.c
3955
if ((frag = rounddown2(base, DEV_BSIZE)) != base &&
sys/vm/vm_page.c
3973
if ((frag = rounddown2(endoff, DEV_BSIZE)) != endoff &&
sys/vm/vm_page.c
3979
DEV_BSIZE - (endoff & (DEV_BSIZE - 1))
sys/vm/vm_page.c
4136
for (b = i = 0; i <= PAGE_SIZE / DEV_BSIZE; ++i) {
sys/vm/vm_page.c
4137
if (i == (PAGE_SIZE / DEV_BSIZE) ||
sys/vm/vm_swap.c
227
error = swaponvp(td, vp, attr.va_size / DEV_BSIZE);
usr.bin/du/du.c
450
bytes *= DEV_BSIZE;
usr.bin/quota/quota.c
612
gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE;
usr.bin/quota/quota.c
615
gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE;
usr.bin/quota/quota.c
618
gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE;
usr.sbin/makefs/ffs/ffs_alloc.c
116
ip->i_ffs1_blocks += size / DEV_BSIZE;
usr.sbin/makefs/ffs/ffs_alloc.c
119
ip->i_ffs2_blocks += size / DEV_BSIZE;
usr.sbin/makefs/hammer2.c
133
fsopts->sectorsize = DEV_BSIZE;
usr.sbin/makefs/hammer2/hammer2_buf.c
50
blkno = loffset / DEV_BSIZE; /* fsopts->sectorsize */
usr.sbin/makefs/hammer2/hammer2_buf.c
73
assert(bp->b_blkno * DEV_BSIZE == bp->b_loffset);
usr.sbin/makefs/msdos/msdosfs_denode.c
139
ldep->de_FileSize = pmp->pm_rootdirsize * DEV_BSIZE;
usr.sbin/makefs/msdos/msdosfs_fat.c
102
* DEV_BSIZE;