Home
last modified time | relevance | path

Searched refs:nblk (Results 1 – 16 of 16) sorted by relevance

/freebsd/stand/common/
H A Dbcache.c192 daddr_t i, nblk; in write_strategy() local
194 nblk = size / bcache_blksize; in write_strategy()
197 for (i = 0; i < nblk; i++) { in write_strategy()
216 size_t i, nblk, p_size, r_size, complete, ra; in read_strategy() local
229 nblk = size / bcache_blksize; in read_strategy()
230 if (nblk == 0 && size != 0) in read_strategy()
231 nblk++; in read_strategy()
236 for (i = 0; i < nblk; i++) { in read_strategy()
238 bcache_misses += (nblk - i); in read_strategy()
256 if (nblk - i > BCACHE_MINREADAHEAD && bc->ralen > 0 && in read_strategy()
[all …]
/freebsd/sys/fs/cd9660/
H A Dcd9660_bmap.c78 int nblk; in cd9660_bmap() local
80 nblk = (ip->i_size >> bshift) - (lblkno + 1); in cd9660_bmap()
81 if (nblk <= 0) in cd9660_bmap()
83 else if (nblk >= (MAXBSIZE >> bshift)) in cd9660_bmap()
86 *ap->a_runp = nblk; in cd9660_bmap()
/freebsd/stand/i386/common/
H A Ddrv.c50 drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) in drvread() argument
57 packet.count = nblk; in drvread()
78 drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) in drvwrite() argument
82 packet.count = nblk; in drvwrite()
H A Ddrv.h40 int drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
42 int drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
/freebsd/sys/fs/tarfs/
H A Dtarfs_subr.c220 tnp->nblk = 1; in tarfs_alloc_node()
267 size_t nmap = 0, nblk = 0; in tarfs_load_blockmap() local
297 if (nblk == 0) { in tarfs_load_blockmap()
301 nblk = n; in tarfs_load_blockmap()
309 } while (n < nblk * 2 + 1); in tarfs_load_blockmap()
310 TARFS_DPF(MAP, "%s: block map length %zu\n", __func__, nblk); in tarfs_load_blockmap()
311 blk = malloc(sizeof(*blk) * nblk, M_TARFSBLK, M_WAITOK | M_ZERO); in tarfs_load_blockmap()
313 for (i = 0; i < nblk; i++) { in tarfs_load_blockmap()
366 tnp->nblk = nblk; in tarfs_load_blockmap()
428 for (i = 0; i < tnp->nblk && resid > 0; ++i) { in tarfs_read_file()
H A Dtarfs.h80 size_t nblk; member
/freebsd/sbin/tunefs/
H A Dtunefs.c741 dir_extend(ufs2_daddr_t blk, ufs2_daddr_t nblk, off_t size, ino_t ino) in dir_extend() argument
751 if (bwrite(&disk, fsbtodb(&sblock, nblk), block, sblock.fs_bsize) in dir_extend()
757 return (dir_insert(nblk, size, ino)); in dir_extend()
768 ufs2_daddr_t nblk; in journal_insertfile() local
781 nblk = journal_balloc(); in journal_insertfile()
782 if (nblk <= 0) in journal_insertfile()
802 if (dir_extend(blk, nblk, off, ino) == -1) in journal_insertfile()
806 if (dir_insert(nblk, 0, ino) == -1) in journal_insertfile()
811 dp.dp1->di_db[lbn] = nblk; in journal_insertfile()
815 dp.dp2->di_db[lbn] = nblk; in journal_insertfile()
[all …]
/freebsd/usr.sbin/quot/
H A Dquot.c169 off_t nblk, sz; in virtualblocks() local
174 nblk = blkroundup(super,sz); in virtualblocks()
175 if (sz == nblk) in virtualblocks()
176 nblk += super->fs_bsize; in virtualblocks()
184 nblk = blkroundup(super,sz); in virtualblocks()
185 sz = lblkno(super,nblk); in virtualblocks()
188 nblk += sz * super->fs_bsize; in virtualblocks()
193 nblk = fragroundup(super,sz); in virtualblocks()
195 return nblk / 512; in virtualblocks()
/freebsd/stand/efi/gptboot/
H A Ddrv.h35 int drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
36 int drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
H A Dproto.c55 drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) in drvread() argument
63 size = nblk * DEV_BSIZE; in drvread()
82 drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) in drvwrite() argument
93 size = nblk * DEV_BSIZE; in drvwrite()
/freebsd/stand/efi/boot1/
H A Dufs_module.c49 dskread(void *buf, uint64_t lba, int nblk) in dskread() argument
56 size = nblk * DEV_BSIZE; in dskread()
/freebsd/stand/i386/boot2/
H A Dboot2.c467 dskread(void *buf, unsigned lba, unsigned nblk) in dskread() argument
527 return (drvread(buf, dsk.start + lba, nblk)); in dskread()
581 drvread(void *buf, unsigned lba, unsigned nblk) in drvread() argument
595 v86.edx = nblk << 8 | dsk.drive; in drvread()
/freebsd/sbin/fsck_ffs/
H A Dsuj.c534 ufs2_daddr_t nblk; in blk_isat() local
542 nblk = ino_blkatoff(dp, ino, lbn, frags, NULL); in blk_isat()
544 return (nblk == blk); in blk_isat()
710 ufs2_daddr_t nblk; in indir_visit() local
739 if ((nblk = IBLK(bp, i)) == 0) in indir_visit()
744 visitor(ino, nlbn, nblk, fs->fs_frag); in indir_visit()
747 indir_visit(ino, nlbn, nblk, frags, visitor, flags); in indir_visit()
1220 ufs2_daddr_t nblk; in indir_trunc() local
1240 if ((nblk = IBLK(bp, i)) == 0) in indir_trunc()
1252 indir_trunc(ino, nlbn, nblk, lastlbn, dp); in indir_trunc()
[all …]
/freebsd/stand/i386/gptboot/
H A Dgptboot.c601 dskread(void *buf, daddr_t lba, unsigned nblk) in dskread() argument
605 err = drvread(&gdsk.dsk, buf, lba + gdsk.dsk.start, nblk); in dskread()
611 nblk * DEV_BSIZE)) in dskread()
/freebsd/sys/fs/udf/
H A Dudf_vnops.c1054 int nblk; in udf_bmap() local
1090 nblk = (max_size >> node->udfmp->bshift) - 1; in udf_bmap()
1091 if (nblk <= 0) in udf_bmap()
1093 else if (nblk >= (MAXBSIZE >> node->udfmp->bshift)) in udf_bmap()
1096 *a->a_runp = nblk; in udf_bmap()
/freebsd/stand/powerpc/boot1.chrp/
H A Dboot1.c632 dskread(void *buf, uint64_t lba, int nblk) in dskread() argument
640 ofw_read(bootdev, buf, nblk * DEV_BSIZE); in dskread()