/freebsd-13-stable/tools/tools/find-sb/ |
H A D | find-sb.c | 50 offset -= offset % DEV_BSIZE; 78 justread = read(fd, &u.buf[len], DEV_BSIZE); 79 if (justread != DEV_BSIZE) { 88 (intmax_t)justread, DEV_BSIZE, (intmax_t)end); 90 len += DEV_BSIZE; 91 end += DEV_BSIZE; 99 offset / DEV_BSIZE); 102 fsbegin / DEV_BSIZE); 105 fsbegin / DEV_BSIZE - last1); 107 last1 = fsbegin / DEV_BSIZE; [all...] |
H A D | mini_ufs.h | 21 #define DEV_BSIZE (1<<9) macro
|
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/ |
H A D | param.h | 43 * Note that the blocked devices are assumed to have DEV_BSIZE 47 #define DEV_BSIZE 512 macro 48 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/get_diff/ |
H A D | get_diff.c | 48 char buf1[DEV_BSIZE], buf2[DEV_BSIZE]; 68 while ((bytes = pread(fd1, buf1, DEV_BSIZE, off)) > 0) { 69 if (pread(fd2, buf2, DEV_BSIZE, off) < 0) {
|
/freebsd-13-stable/stand/libsa/geli/ |
H A D | geliboot.h | 37 #ifndef DEV_BSIZE 38 #define DEV_BSIZE 512 macro
|
H A D | geliboot.c | 155 alignsector = rounddown2(lastsector * DEV_BSIZE, DEV_GELIBOOT_BSIZE); 156 if (alignsector + DEV_GELIBOOT_BSIZE > ((lastsector + 1) * DEV_BSIZE)) { 158 alignsector = (lastsector * DEV_BSIZE) + DEV_BSIZE - 181 (DEV_GELIBOOT_BSIZE - DEV_BSIZE), &md); 207 eli_metadata_softc(&gdev->sc, &md, DEV_BSIZE, 208 (lastsector + DEV_BSIZE) * DEV_BSIZE);
|
H A D | gelidev.c | 92 return (ddev->dd.d_dev->dv_strategy(ddev, F_READ, offbytes / DEV_BSIZE, 122 * units of DEV_BSIZE blocks, while size is in bytes. Convert 131 reqstart = blk * DEV_BSIZE; 154 alnstart / DEV_BSIZE, alnsize, iobuf, NULL); 176 F_READ, alnstart / DEV_BSIZE, alnsize, iobuf, NULL); 193 rw, alnstart / DEV_BSIZE, alnsize, iobuf, NULL); 305 hlastblk = (hmediasize / DEV_BSIZE) - 1;
|
/freebsd-13-stable/lib/geom/journal/ |
H A D | geom_journal_ufs.c | 76 psize = g_get_mediasize(prov) / DEV_BSIZE;
|
/freebsd-13-stable/stand/efi/boot1/ |
H A D | ufs_module.c | 45 #define BSD_LABEL_OFFSET DEV_BSIZE 57 lba = lba / (devinfo->dev->Media->BlockSize / DEV_BSIZE); 58 size = nblk * DEV_BSIZE; 112 if (dskread(ufs_buffer, 0, BSD_LABEL_BUFFER / DEV_BSIZE) != 0)
|
/freebsd-13-stable/stand/libsa/ |
H A D | gpt.c | 69 entries_per_sec = DEV_BSIZE / hdr->hdr_entsz; 72 bcopy(&table[firstent], secbuf, DEV_BSIZE); 85 bzero(secbuf, DEV_BSIZE); 199 hdr->hdr_entries > MAXTBLENTS || DEV_BSIZE % hdr->hdr_entsz != 0) { 244 entries_per_sec = DEV_BSIZE / hdr->hdr_entsz; 264 bcopy(&table[nent], secbuf, DEV_BSIZE); 278 bzero(secbuf, DEV_BSIZE); 296 entries_per_sec = DEV_BSIZE / hdr->hdr_entsz;
|
H A D | ufsread.c | 70 #define DBPERVBLK (VBLKSIZE / DEV_BSIZE) 86 char secbuf[DEV_BSIZE]; /* for MBR/disklabel */ 99 static char buf[DEV_BSIZE]; 105 while ((n = fsread(*ino, buf, DEV_BSIZE)) > 0) 106 for (s = buf; s < buf + DEV_BSIZE;) { 204 if (dskread(dmadat->sbbuf, sblock_try[n] / DEV_BSIZE, 205 SBLOCKSIZE / DEV_BSIZE))
|
/freebsd-13-stable/usr.bin/du/ |
H A D | du.c | 119 cblocksize = DEV_BSIZE; 238 if (!Aflag && (cblocksize % DEV_BSIZE) != 0) 239 cblocksize = howmany(cblocksize, DEV_BSIZE) * DEV_BSIZE; 256 cblocksize /= DEV_BSIZE; 257 blocksize /= DEV_BSIZE; 261 threshold = howmany(threshold / DEV_BSIZE * cblocksize, 499 bytes *= DEV_BSIZE;
|
/freebsd-13-stable/stand/i386/gptboot/ |
H A D | gptboot.c | 613 if (geli_io(gdsk.gdev, GELI_DECRYPT, lba * DEV_BSIZE, buf, 614 nblk * DEV_BSIZE)) 637 if ((off & (DEV_BSIZE - 1)) || (bytes & (DEV_BSIZE - 1))) 641 lba = off / DEV_BSIZE; 645 nb = bytes / DEV_BSIZE; 646 if (nb > VBLKSIZE / DEV_BSIZE) 647 nb = VBLKSIZE / DEV_BSIZE; 650 memcpy(p, dmadat->blkbuf, nb * DEV_BSIZE); 651 p += nb * DEV_BSIZE; [all...] |
/freebsd-13-stable/sys/ufs/ufs/ |
H A D | dir.h | 76 #define DIRBLKSIZ DEV_BSIZE
|
/freebsd-13-stable/stand/efi/gptboot/ |
H A D | proto.c | 65 lba = lba / (dev->Media->BlockSize / DEV_BSIZE); 66 size = nblk * DEV_BSIZE; 95 lba = lba / (dev->Media->BlockSize / DEV_BSIZE); 96 size = nblk * DEV_BSIZE;
|
/freebsd-13-stable/sys/ufs/ffs/ |
H A D | ffs_rawread.c | 220 blockoff = (offset % bsize) / DEV_BSIZE; 233 if (bp->b_bcount + blockoff * DEV_BSIZE > bsize) 234 bp->b_bcount = bsize - blockoff * DEV_BSIZE; 249 bp->b_offset = bp->b_iooffset = (blkno + blockoff) * DEV_BSIZE; 251 if (bp->b_bcount + blockoff * DEV_BSIZE > bsize * (1 + bforwards)) 252 bp->b_bcount = bsize * (1 + bforwards) - blockoff * DEV_BSIZE;
|
/freebsd-13-stable/usr.bin/mkuzip/ |
H A D | mkuzip.c | 250 if (cfs.blksz % DEV_BSIZE != 0) 251 errx(1, "cluster size should be multiple of %d", DEV_BSIZE); 386 if ((offset % DEV_BSIZE) == 0) 388 oblk = mkuz_blk_ctor(DEV_BSIZE - (offset % DEV_BSIZE)); 394 (u_long)oblk->alen, DEV_BSIZE);
|
/freebsd-13-stable/sys/fs/fdescfs/ |
H A D | fdesc_vfsops.c | 224 sbp->f_bsize = DEV_BSIZE; 225 sbp->f_iosize = DEV_BSIZE;
|
/freebsd-13-stable/tests/sys/fs/fusefs/ |
H A D | bmap.cc | 152 EXPECT_EQ(arg.bn, lbn * m_maxbcachebuf / DEV_BSIZE); 162 EXPECT_EQ(arg.bn, lbn * m_maxbcachebuf / DEV_BSIZE);
|
/freebsd-13-stable/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zvol_os.c | 574 if (g_handleattr_off_t(bp, "blocksavail", avail / DEV_BSIZE)) 579 if (g_handleattr_off_t(bp, "blocksused", refd / DEV_BSIZE)) 585 avail / DEV_BSIZE)) 589 if (g_handleattr_off_t(bp, "poolblocksused", refd / DEV_BSIZE)) 1050 *(uint32_t *)data = DEV_BSIZE; 1067 if ((offset % DEV_BSIZE) != 0 || (length % DEV_BSIZE) != 0 || 1112 arg->value.off = avail / DEV_BSIZE; 1116 arg->value.off = refd / DEV_BSIZE; 1121 arg->value.off = avail / DEV_BSIZE; [all...] |
/freebsd-13-stable/sys/dev/ata/chipsets/ |
H A D | ata-cyrix.c | 94 ch->dma.max_iosize = 64 * DEV_BSIZE;
|
H A D | ata-national.c | 96 ch->dma.max_iosize = 64 * DEV_BSIZE;
|
/freebsd-13-stable/sys/fs/msdosfs/ |
H A D | msdosfs_vfsops.c | 489 if (pmp->pm_BytesPerSec < DEV_BSIZE) { 502 /* calculate the ratio of sector size to DEV_BSIZE */ 503 pmp->pm_BlkPerSec = pmp->pm_BytesPerSec / DEV_BSIZE; 553 || (pmp->pm_BytesPerSec < DEV_BSIZE) 557 || (SecPerClust * pmp->pm_BlkPerSec > MAXBSIZE / DEV_BSIZE) 579 sizeof(struct direntry), DEV_BSIZE); /* in blocks */ 585 pmp->pm_fatsize = pmp->pm_FATsecs * DEV_BSIZE; /* XXX not used? */ 620 pmp->pm_fatblocksec = pmp->pm_fatblocksize / DEV_BSIZE; 621 pmp->pm_bnshift = ffs(DEV_BSIZE) - 1; 627 pmp->pm_bpcluster = SecPerClust * DEV_BSIZE; [all...] |
/freebsd-13-stable/sys/fs/devfs/ |
H A D | devfs_vfsops.c | 230 sbp->f_bsize = DEV_BSIZE; 231 sbp->f_iosize = DEV_BSIZE;
|
/freebsd-13-stable/sys/kern/ |
H A D | subr_disk.c | 61 if (bp->bio_bcount <= DEV_BSIZE) { 70 (intmax_t)(bp->bio_pblkno + (bp->bio_bcount - 1) / DEV_BSIZE));
|