Searched refs:DEV_BSIZE (Results 1 - 25 of 90) sorted by relevance

1234

/freebsd-13-stable/tools/tools/find-sb/
H A Dfind-sb.c50 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 Dmini_ufs.h21 #define DEV_BSIZE (1<<9) macro
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dparam.h43 * 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 Dget_diff.c48 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 Dgeliboot.h37 #ifndef DEV_BSIZE
38 #define DEV_BSIZE 512 macro
H A Dgeliboot.c155 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 Dgelidev.c92 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 Dgeom_journal_ufs.c76 psize = g_get_mediasize(prov) / DEV_BSIZE;
/freebsd-13-stable/stand/efi/boot1/
H A Dufs_module.c45 #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 Dgpt.c69 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 Dufsread.c70 #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 Ddu.c119 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 Dgptboot.c613 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 Ddir.h76 #define DIRBLKSIZ DEV_BSIZE
/freebsd-13-stable/stand/efi/gptboot/
H A Dproto.c65 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 Dffs_rawread.c220 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 Dmkuzip.c250 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 Dfdesc_vfsops.c224 sbp->f_bsize = DEV_BSIZE;
225 sbp->f_iosize = DEV_BSIZE;
/freebsd-13-stable/tests/sys/fs/fusefs/
H A Dbmap.cc152 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 Dzvol_os.c574 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 Data-cyrix.c94 ch->dma.max_iosize = 64 * DEV_BSIZE;
H A Data-national.c96 ch->dma.max_iosize = 64 * DEV_BSIZE;
/freebsd-13-stable/sys/fs/msdosfs/
H A Dmsdosfs_vfsops.c489 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 Ddevfs_vfsops.c230 sbp->f_bsize = DEV_BSIZE;
231 sbp->f_iosize = DEV_BSIZE;
/freebsd-13-stable/sys/kern/
H A Dsubr_disk.c61 if (bp->bio_bcount <= DEV_BSIZE) {
70 (intmax_t)(bp->bio_pblkno + (bp->bio_bcount - 1) / DEV_BSIZE));

Completed in 420 milliseconds

1234