/freebsd-11-stable/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 95 daddr_t bno; local 111 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg); 112 if (bno > 0) { 117 *bnp = bno; 296 daddr_t bno, blkno; local 317 bno = ffs_alloccgblk(ip, bp, bpref); 319 return (bno); 339 bno = ffs_alloccgblk(ip, bp, bpref); 340 bpref = dtogd(fs, bno); 350 return (bno); 383 int32_t bno; local 428 ffs_blkfree(struct inode *ip, daddr_t bno, long size) argument 536 int32_t bno; local [all...] |
H A D | mkfs.c | 768 ffs_rdfs(daddr_t bno, int size, void *bf, const fsinfo_t *fsopts) argument 773 offset = bno; 777 (long long)bno, strerror(errno)); 781 err(1, "ffs_rdfs: read error bno %lld size %d", (long long)bno, 786 (long long)bno, strerror(errno)); 793 ffs_wtfs(daddr_t bno, int size, void *bf, const fsinfo_t *fsopts) argument 798 offset = bno; 802 (long long)bno, strerror(errno)); 806 (long long)bno, strerro [all...] |
/freebsd-11-stable/lib/libufs/ |
H A D | cgroup.c | 55 long bno; local 60 for (bno = 0; bno < fs->fs_fpg / fs->fs_frag; bno++) 61 if (ffs_isblock(fs, blksfree, bno)) 66 ffs_clrblock(fs, blksfree, (long)bno); 67 ffs_clusteracct(fs, cgp, bno, -1); 71 return (cgbase(fs, cgp->cg_cgx) + blkstofrags(fs, bno)); 75 cgbfree(struct uufsd *disk, ufs2_daddr_t bno, long size) argument 84 cg = dtog(fs, bno); [all...] |
/freebsd-11-stable/sys/fs/ext2fs/ |
H A D | ext2_alloc.c | 88 int32_t bno; local 115 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize, 117 if (bno > 0) { 120 ip->i_next_alloc_goal = bno; 124 *bnp = bno; 801 daddr_t bno, runstart, runlen; local 845 bno = bpref; 885 bno = runstart; 897 bno = runstart; 906 bno 943 daddr_t bno; local 1169 ext2_blkfree(struct inode *ip, e4fs_daddr_t bno, long size) argument [all...] |
H A D | ext2_subr.c | 135 ext2_clusteracct(struct m_ext2fs *fs, char *bbp, int cg, daddr_t bno, int cnt) argument 176 start = bno + 1; 195 start = bno - 1;
|
/freebsd-11-stable/stand/libsa/ |
H A D | cd9660read.c | 228 daddr_t bno, boff; local 232 for (bno = 16;; bno++) { 233 rc = read_iso_block(blkbuf, bno); 251 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); 258 rc = read_iso_block(blkbuf, bno + boff);
|
H A D | cd9660.c | 118 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE) 290 daddr_t bno, boff; local 299 for (bno = 16;; bno++) { 301 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), 327 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); 337 cdb2devb(bno + boff), 416 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); 418 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), [all...] |
/freebsd-11-stable/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 156 ufs2_daddr_t bno; local 199 bno = ffs_hashalloc(ip, cg, bpref, size, size, ffs_alloccg); 200 if (bno > 0) { 207 *bnp = bno; 257 ufs2_daddr_t bno; local 324 bno = ffs_fragextend(ip, cg, bprev, osize, nsize); 325 if (bno) { 326 if (bp->b_blkno != fsbtodb(fs, bno)) 390 bno = ffs_hashalloc(ip, cg, bpref, request, nsize, ffs_alloccg); 391 if (bno > 1589 long bno; local 1673 ufs1_daddr_t bno; local 1775 ufs1_daddr_t bno; local 1861 ufs2_daddr_t bno; local 2289 softdep_setup_blkfree(UFSTOVFS(ump), bp, bno, local 2298 ufs2_daddr_t bno; member in struct:ffs_blkfree_trim_params 2607 ufs1_daddr_t bno; local [all...] |
H A D | ffs_snapshot.c | 85 ffs_snapblkfree(fs, devvp, bno, size, inum, vtype, wkhd) 88 ufs2_daddr_t bno; 1743 ffs_snapblkfree(fs, devvp, bno, size, inum, vtype, wkhd) 1746 ufs2_daddr_t bno; 1761 lbn = fragstoblks(fs, bno); 1861 DIP_SET(ip, i_db[lbn], bno); 1863 ((ufs1_daddr_t *)(ibp->b_data))[indiroff] = bno; 1866 ((ufs2_daddr_t *)(ibp->b_data))[indiroff] = bno;
|
H A D | ffs_softdep.c | 5104 long bno; local 5109 bno = dtogd(fs, jnewblk->jn_blkno); 5112 if (isset(blksfree, bno + i)) 10751 long bno; local 10791 bno = dtogd(fs, jnewblk->jn_blkno); 10794 if (isset(blksfree, bno + i))
|
/freebsd-11-stable/sys/geom/cache/ |
H A D | g_cache.h | 63 #define G_CACHE_BUCKET(bno) ((bno) & (G_CACHE_BUCKETS - 1))
|
H A D | g_cache.c | 106 #define BNO2OFF(bno, sc) ((bno) << (sc)->sc_bshift) 245 g_cache_lookup(struct g_cache_softc *sc, off_t bno) argument 251 LIST_FOREACH(dp, &sc->sc_desclist[G_CACHE_BUCKET(bno)], d_next) 252 if (dp->d_bno == bno) 315 off_t bno, lim; local 318 bno = OFF2BNO(bp->bio_offset, sc); 321 if ((dp = g_cache_lookup(sc, bno)) != NULL) { 334 bno++; 335 } while (bno < [all...] |
/freebsd-11-stable/sbin/growfs/ |
H A D | growfs.c | 1071 rdfs(ufs2_daddr_t bno, size_t size, void *bf, int fsi) argument 1078 if (bno < 0) 1080 if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) 1081 err(33, "rdfs: seek error: %jd", (intmax_t)bno); 1084 err(34, "rdfs: read error: %jd", (intmax_t)bno); 1094 wtfs(ufs2_daddr_t bno, size_t size, void *bf, int fso, unsigned int Nflag) argument 1105 if (lseek(fso, (off_t)bno * DEV_BSIZE, SEEK_SET) < 0) 1106 err(35, "wtfs: seek error: %ld", (long)bno); 1109 err(36, "wtfs: write error: %ld", (long)bno);
|
/freebsd-11-stable/sbin/fsck_ffs/ |
H A D | gjournal.c | 258 blkfree(ufs2_daddr_t bno, long size) argument 266 cg = dtog(fs, bno); 270 cgbno = dtogd(fs, bno);
|
H A D | suj.c | 640 * Free 'frags' frags starting at filesystem block 'bno' skipping any frags 644 blk_free(ufs2_daddr_t bno, int mask, int frags) argument 654 frags, bno, mask); 655 cg = dtog(fs, bno); 658 cgbno = dtogd(fs, bno); 684 * Returns 1 if the whole block starting at 'bno' is marked free and 0 688 blk_isfree(ufs2_daddr_t bno) argument 692 sc = cg_lookup(dtog(fs, bno)); 693 return ffs_isblock(fs, cg_blksfree(sc->sc_cgp), dtogd(fs, bno));
|
/freebsd-11-stable/sbin/quotacheck/ |
H A D | quotacheck.c | 680 bread(ufs2_daddr_t bno, char *buf, long cnt) argument 683 if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 || 685 errx(1, "bread failed on block %ld", (long)bno);
|
/freebsd-11-stable/sys/dev/sound/usb/ |
H A D | uaudio.c | 151 #define BIT_TEST(bm,bno) (((bm)[(bno) / 8] >> (7 - ((bno) % 8))) & 1) 3315 uint32_t bno; /* bit number */ local 3360 bno = ((p + c) * ochs) + o; 3361 if (BIT_TEST(d1->bmControls, bno)) 3374 bno = ((p + c) * ochs) + o; 3375 if (BIT_TEST(d1->bmControls, bno)) 3393 uint32_t bno; /* bit number */ local 3438 bno [all...] |
/freebsd-11-stable/sbin/newfs/ |
H A D | mkfs.c | 1053 wtfs(ufs2_daddr_t bno, int size, char *bf) argument 1057 if (bwrite(&disk, part_ofs + bno, bf, size) < 0) 1058 err(36, "wtfs: %d bytes at sector %jd", size, (intmax_t)bno);
|
/freebsd-11-stable/stand/common/ |
H A D | part.c | 608 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / table->sectorsize)
|