Searched refs:nblk (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-10-stable/sys/boot/i386/common/
H A Ddrv.h42 int drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
44 int drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
H A Ddrv.c60 drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) argument
68 packet.count = nblk;
85 v86.edx = nblk << 8 | dskp->drive;
98 drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) argument
102 packet.count = nblk;
/freebsd-10-stable/sys/fs/cd9660/
H A Dcd9660_bmap.c89 int nblk; local
91 nblk = (ip->i_size >> bshift) - (lblkno + 1);
92 if (nblk <= 0)
94 else if (nblk >= (MAXBSIZE >> bshift))
97 *ap->a_runp = nblk;
/freebsd-10-stable/sys/boot/arm/at91/boot2/
H A Dcentipad_board.c65 drvread(void *buf, unsigned lba, unsigned nblk) argument
67 return (MCI_read((char *)buf, lba << 9, nblk << 9));
H A Dkb920x_board.c63 drvread(void *buf, unsigned lba, unsigned nblk) argument
65 return (MCI_read((char *)buf, lba << 9, nblk << 9));
H A Dbwct_board.c122 drvread(void *buf, unsigned lba, unsigned nblk) argument
124 return (MCI_read((char *)buf, lba << 9, nblk << 9));
H A Dboot2.c246 dskread(void *buf, unsigned lba, unsigned nblk) argument
288 return drvread(buf, dsk_start + lba, nblk);
/freebsd-10-stable/sys/boot/common/
H A Dbcache.c132 daddr_t i, nblk; local
135 nblk = size / bcache_blksize;
138 for (i = 0; i < nblk; i++) {
147 for (i = 0; i < nblk; i++) {
166 daddr_t p_blk, i, j, nblk; local
169 nblk = size / bcache_blksize;
173 for (i = 0; i < nblk; i++) {
187 for (i = 0; i < nblk; i++) {
/freebsd-10-stable/sys/fs/ext2fs/
H A Dext2_extents.c137 daddr_t nblk; local
151 nblk = (daddr_t)path->ep_index->ei_leaf_hi << 32 |
153 size = blksize(fs, ip, nblk);
158 error = bread(ip->i_devvp, fsbtodb(fs, nblk), size, NOCRED,
/freebsd-10-stable/sys/fs/nandfs/
H A Dnandfs_bmap.c215 nandfs_lbn_t nblk)
220 todo = oblk - nblk;
222 DPRINTF(BMAP, ("%s: node %p oblk %jx nblk %jx truncate by %jx\n",
223 __func__, node, oblk, nblk, todo));
214 nandfs_bmap_truncate_mapping(struct nandfs_node *node, nandfs_lbn_t oblk, nandfs_lbn_t nblk) argument
/freebsd-10-stable/sys/boot/efi/boot1/
H A Dufs_module.c47 dskread(void *buf, u_int64_t lba, int nblk) argument
53 size = nblk * DEV_BSIZE;
/freebsd-10-stable/sbin/tunefs/
H A Dtunefs.c761 dir_extend(ufs2_daddr_t blk, ufs2_daddr_t nblk, off_t size, ino_t ino) argument
771 if (bwrite(&disk, fsbtodb(&sblock, nblk), block, sblock.fs_bsize)
777 return (dir_insert(nblk, size, ino));
790 ufs2_daddr_t nblk; local
806 nblk = journal_balloc();
807 if (nblk <= 0)
827 if (dir_extend(blk, nblk, off, ino) == -1)
831 if (dir_insert(nblk, 0, ino) == -1)
836 dp1->di_db[lbn] = nblk;
840 dp2->di_db[lbn] = nblk;
868 ufs2_daddr_t nblk; local
[all...]
/freebsd-10-stable/sys/dev/mcd/
H A Dmcdvar.h7 short nblk; member in struct:mcd_mbx
/freebsd-10-stable/sys/dev/scd/
H A Dscdvar.h7 short nblk; member in struct:scd_mbx
H A Dscd.c736 mbx->nblk = (bp->bio_bcount + (mbx->sz-1)) / mbx->sz;
921 if (--mbx->nblk > 0) {
/freebsd-10-stable/usr.sbin/quot/
H A Dquot.c169 off_t nblk, sz; local
174 nblk = blkroundup(super,sz);
175 if (sz == nblk)
176 nblk += super->fs_bsize;
184 nblk = blkroundup(super,sz);
185 sz = lblkno(super,nblk);
188 nblk += sz * super->fs_bsize;
193 nblk = fragroundup(super,sz);
195 return nblk / 512;
/freebsd-10-stable/sys/boot/arm/ixp425/boot2/
H A Dboot2.c295 dskread(void *buf, unsigned lba, unsigned nblk) argument
366 return drvread(buf, dsk_start + lba, nblk);
370 drvread(void *buf, unsigned lba, unsigned nblk) argument
375 return (avila_read((char *)buf, lba, nblk));
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddmu.c965 dmu_xuio_init(xuio_t *xuio, int nblk) argument
970 uio->uio_iovcnt = nblk;
971 uio->uio_iov = kmem_zalloc(nblk * sizeof (iovec_t), KM_SLEEP);
974 priv->cnt = nblk;
975 priv->bufs = kmem_zalloc(nblk * sizeof (arc_buf_t *), KM_SLEEP);
980 XUIOSTAT_INCR(xuiostat_onloan_rbuf, nblk);
982 XUIOSTAT_INCR(xuiostat_onloan_wbuf, nblk);
991 int nblk = priv->cnt; local
993 kmem_free(priv->iovp, nblk * sizeof (iovec_t));
994 kmem_free(priv->bufs, nblk * sizeo
[all...]
/freebsd-10-stable/sys/boot/i386/boot2/
H A Dboot2.c454 dskread(void *buf, unsigned lba, unsigned nblk) argument
513 return drvread(buf, dsk.start + lba, nblk);
563 drvread(void *buf, unsigned lba, unsigned nblk) argument
575 v86.edx = nblk << 8 | dsk.drive;
/freebsd-10-stable/sbin/fsck_ffs/
H A Dsuj.c807 ufs2_daddr_t nblk; local
813 nblk = ino_blkatoff(ip, ino, lbn, frags);
815 return (nblk == blk);
966 ufs2_daddr_t nblk; local
995 nblk = *bap1++;
997 nblk = *bap2++;
998 if (nblk == 0)
1003 visitor(ino, nlbn, nblk, fs->fs_frag);
1006 indir_visit(ino, nlbn, nblk, frags, visitor, flags);
1448 ufs2_daddr_t nblk; local
[all...]
/freebsd-10-stable/sys/boot/sparc64/boot1/
H A Dboot1.c64 static int dskread(void *buf, u_int64_t lba, int nblk);
518 dskread(void *buf, u_int64_t lba, int nblk) argument
527 ofw_read(bootdev, buf, nblk * DEV_BSIZE);
/freebsd-10-stable/sys/boot/pc98/boot2/
H A Dboot2.c593 dskread(void *buf, unsigned lba, unsigned nblk) argument
647 for (p = buf; nblk; p += 512, lba++, nblk--) {
/freebsd-10-stable/sys/boot/i386/gptboot/
H A Dgptboot.c431 dskread(void *buf, daddr_t lba, unsigned nblk) argument
434 return drvread(&dsk, buf, lba + dsk.start, nblk);
/freebsd-10-stable/sys/fs/udf/
H A Dudf_vnops.c1046 int nblk; local
1082 nblk = (max_size >> node->udfmp->bshift) - 1;
1083 if (nblk <= 0)
1085 else if (nblk >= (MAXBSIZE >> node->udfmp->bshift))
1088 *a->a_runp = nblk;
/freebsd-10-stable/sys/boot/powerpc/boot1.chrp/
H A Dboot1.c534 dskread(void *buf, u_int64_t lba, int nblk) argument
542 ofw_read(bootdev, buf, nblk * DEV_BSIZE);

Completed in 235 milliseconds

12