/freebsd-11-stable/stand/mips/beri/common/ |
H A D | cfi.c | 54 cfi_read(void *buf, unsigned lba, unsigned nblk) argument 57 if ((lba << 9) + (nblk << 9) > CHERI_BOOTFS_LENGTH) 59 memcpy(buf, (void *)(CHERI_BOOTFS_BASE + (lba << 9)), nblk << 9);
|
H A D | sdcard.h | 36 int altera_sdcard_read(void *buf, unsigned lba, unsigned nblk);
|
H A D | sdcard.c | 240 * Public interface: load 'nblk' blocks from block #lba into *buf. 243 altera_sdcard_read(void *buf, unsigned lba, unsigned nblk) argument 248 for (i = 0; i < nblk; i++) {
|
/freebsd-11-stable/stand/i386/common/ |
H A D | drv.h | 42 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 D | drv.c | 53 drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) argument 60 packet.count = nblk; 81 drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) argument 85 packet.count = nblk;
|
/freebsd-11-stable/sys/fs/cd9660/ |
H A D | cd9660_bmap.c | 89 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-11-stable/stand/common/ |
H A D | bcache.c | 191 daddr_t i, nblk; local 193 nblk = size / bcache_blksize; 196 for (i = 0; i < nblk; i++) { 215 size_t i, nblk, p_size, r_size, complete, ra; local 228 nblk = size / bcache_blksize; 229 if (nblk == 0 && size != 0) 230 nblk++; 235 for (i = 0; i < nblk; i++) { 237 bcache_misses += (nblk - i); 239 if (nblk 361 int nblk, cblk, ret; local [all...] |
/freebsd-11-stable/sys/fs/nandfs/ |
H A D | nandfs_bmap.c | 215 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-11-stable/sys/dev/scd/ |
H A D | scdvar.h | 7 short nblk; member in struct:scd_mbx
|
H A D | scd.c | 750 mbx->nblk = howmany(bp->bio_bcount, mbx->sz); 933 if (--mbx->nblk > 0) {
|
/freebsd-11-stable/sys/dev/mcd/ |
H A D | mcdvar.h | 7 short nblk; member in struct:mcd_mbx
|
H A D | mcd.c | 924 mbx->nblk = howmany(bp->bio_bcount, mbx->sz); 983 if (--mbx->nblk > 0) {
|
/freebsd-11-stable/sys/fs/ext2fs/ |
H A D | ext2_extents.c | 174 daddr_t nblk; local 194 nblk = (daddr_t)path->ep_index->ei_leaf_hi << 32 | 196 size = blksize(fs, ip, nblk); 201 error = bread(ip->i_devvp, fsbtodb(fs, nblk), size, NOCRED,
|
/freebsd-11-stable/sbin/tunefs/ |
H A D | tunefs.c | 763 dir_extend(ufs2_daddr_t blk, ufs2_daddr_t nblk, off_t size, ino_t ino) argument 773 if (bwrite(&disk, fsbtodb(&sblock, nblk), block, sblock.fs_bsize) 779 return (dir_insert(nblk, size, ino)); 792 ufs2_daddr_t nblk; local 808 nblk = journal_balloc(); 809 if (nblk <= 0) 829 if (dir_extend(blk, nblk, off, ino) == -1) 833 if (dir_insert(nblk, 0, ino) == -1) 838 dp1->di_db[lbn] = nblk; 842 dp2->di_db[lbn] = nblk; 870 ufs2_daddr_t nblk; local [all...] |
/freebsd-11-stable/usr.sbin/quot/ |
H A D | quot.c | 171 off_t nblk, sz; local 176 nblk = blkroundup(super,sz); 177 if (sz == nblk) 178 nblk += super->fs_bsize; 186 nblk = blkroundup(super,sz); 187 sz = lblkno(super,nblk); 190 nblk += sz * super->fs_bsize; 195 nblk = fragroundup(super,sz); 197 return nblk / 512;
|
/freebsd-11-stable/stand/mips/beri/boot2/ |
H A D | boot2.c | 530 drvread(void *buf, unsigned lba, unsigned nblk) argument 536 return (cfi_read(buf, lba, nblk)); 539 return (altera_sdcard_read(buf, lba, nblk)); 547 dskread(void *buf, unsigned lba, unsigned nblk) argument 612 return drvread(buf, dsk.start + lba, nblk); 614 return drvread(buf, lba, nblk);
|
/freebsd-11-stable/stand/efi/boot1/ |
H A D | ufs_module.c | 51 dskread(void *buf, uint64_t lba, int nblk) argument 58 size = nblk * DEV_BSIZE;
|
/freebsd-11-stable/stand/i386/boot2/ |
H A D | boot2.c | 470 dskread(void *buf, unsigned lba, unsigned nblk) argument 530 return (drvread(buf, dsk.start + lba, nblk)); 584 drvread(void *buf, unsigned lba, unsigned nblk) argument 598 v86.edx = nblk << 8 | dsk.drive;
|
/freebsd-11-stable/sbin/fsck_ffs/ |
H A D | suj.c | 809 ufs2_daddr_t nblk; local 815 nblk = ino_blkatoff(ip, ino, lbn, frags); 817 return (nblk == blk); 968 ufs2_daddr_t nblk; local 997 nblk = *bap1++; 999 nblk = *bap2++; 1000 if (nblk == 0) 1005 visitor(ino, nlbn, nblk, fs->fs_frag); 1008 indir_visit(ino, nlbn, nblk, frags, visitor, flags); 1452 ufs2_daddr_t nblk; local [all...] |
/freebsd-11-stable/stand/pc98/boot2/ |
H A D | boot2.c | 604 dskread(void *buf, unsigned lba, unsigned nblk) argument 659 for (p = buf; nblk; p += 512, lba++, nblk--) {
|
/freebsd-11-stable/stand/sparc64/boot1/ |
H A D | boot1.c | 64 static int dskread(void *buf, uint64_t lba, int nblk); 518 dskread(void *buf, uint64_t lba, int nblk) argument 527 ofw_read(bootdev, buf, nblk * DEV_BSIZE);
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | dmu.c | 1206 dmu_xuio_init(xuio_t *xuio, int nblk) argument 1211 uio->uio_iovcnt = nblk; 1212 uio->uio_iov = kmem_zalloc(nblk * sizeof (iovec_t), KM_SLEEP); 1215 priv->cnt = nblk; 1216 priv->bufs = kmem_zalloc(nblk * sizeof (arc_buf_t *), KM_SLEEP); 1221 XUIOSTAT_INCR(xuiostat_onloan_rbuf, nblk); 1223 XUIOSTAT_INCR(xuiostat_onloan_wbuf, nblk); 1232 int nblk = priv->cnt; local 1234 kmem_free(priv->iovp, nblk * sizeof (iovec_t)); 1235 kmem_free(priv->bufs, nblk * sizeo [all...] |
/freebsd-11-stable/stand/i386/gptboot/ |
H A D | gptboot.c | 602 dskread(void *buf, daddr_t lba, unsigned nblk) argument 606 err = drvread(&gdsk.dsk, buf, lba + gdsk.dsk.start, nblk); 612 nblk * DEV_BSIZE))
|
/freebsd-11-stable/sys/fs/udf/ |
H A D | udf_vnops.c | 1057 int nblk; local 1093 nblk = (max_size >> node->udfmp->bshift) - 1; 1094 if (nblk <= 0) 1096 else if (nblk >= (MAXBSIZE >> node->udfmp->bshift)) 1099 *a->a_runp = nblk;
|
/freebsd-11-stable/stand/powerpc/boot1.chrp/ |
H A D | boot1.c | 544 dskread(void *buf, uint64_t lba, int nblk) argument 552 ofw_read(bootdev, buf, nblk * DEV_BSIZE);
|