Home
last modified time | relevance | path

Searched refs:bno (Results 1 – 21 of 21) sorted by relevance

/freebsd/usr.sbin/makefs/ffs/
H A Dffs_alloc.c92 daddr_t bno; in ffs_alloc() local
109 if (bno > 0) { in ffs_alloc()
114 *bnp = bno; in ffs_alloc()
293 daddr_t bno, blkno; in ffs_alloccg() local
314 return (bno); in ffs_alloccg()
345 return (bno); in ffs_alloccg()
378 int32_t bno; in ffs_alloccgblk() local
400 if (bno < 0) in ffs_alloccgblk()
437 cg = dtog(fs, bno); in ffs_blkfree()
529 int32_t bno; in ffs_mapsearch() local
[all …]
H A Dmkfs.c810 ffs_rdfs(daddr_t bno, int size, void *bf, const fsinfo_t *fsopts) in ffs_rdfs() argument
815 offset = (off_t)bno * fsopts->sectorsize + fsopts->offset; in ffs_rdfs()
818 (long long)bno); in ffs_rdfs()
823 (long long)bno, size); in ffs_rdfs()
827 (long long)bno); in ffs_rdfs()
834 ffs_wtfs(daddr_t bno, int size, void *bf, const fsinfo_t *fsopts) in ffs_wtfs() argument
839 offset = (off_t)bno * fsopts->sectorsize + fsopts->offset; in ffs_wtfs()
842 (long long)bno); in ffs_wtfs()
846 (long long)bno); in ffs_wtfs()
849 (long long)bno); in ffs_wtfs()
/freebsd/sys/ufs/ffs/
H A Dffs_alloc.c202 if (bno > 0) { in ffs_alloc()
209 *bnp = bno; in ffs_alloc()
335 if (bno) { in ffs_realloccg()
1706 long bno; in ffs_fragextend() local
2537 ntp->bno = bno; in trim_lookup()
2687 blkelm->bno = bno; in ffs_blkfree()
2722 tp->bno = bno; in ffs_blkfree()
2739 if (bno + numfrags(fs, size) == tp->bno) { in ffs_blkfree()
2741 tp->bno = bno; in ffs_blkfree()
2744 } else if (bno == tp->bno + numfrags(fs, tp->size)) { in ffs_blkfree()
[all …]
H A Dffs_snapshot.c87 ufs2_daddr_t bno, in ffs_snapblkfree() argument
1769 ufs2_daddr_t bno, in ffs_snapblkfree() argument
1784 lbn = fragstoblks(fs, bno); in ffs_snapblkfree()
1890 DIP_SET(ip, i_db[lbn], bno); in ffs_snapblkfree()
1892 ((ufs1_daddr_t *)(ibp->b_data))[indiroff] = bno; in ffs_snapblkfree()
1895 ((ufs2_daddr_t *)(ibp->b_data))[indiroff] = bno; in ffs_snapblkfree()
H A Dffs_softdep.c5321 long bno; in softdep_setup_blkmapdep() local
5326 bno = dtogd(fs, jnewblk->jn_blkno); in softdep_setup_blkmapdep()
5329 if (isset(blksfree, bno + i)) in softdep_setup_blkmapdep()
10991 long bno; in softdep_setup_blkfree() local
11032 bno = dtogd(fs, jnewblk->jn_blkno); in softdep_setup_blkfree()
11035 if (isset(blksfree, bno + i)) in softdep_setup_blkfree()
/freebsd/lib/libufs/
H A Dcgroup.c56 long bno; in cgballoc() local
61 for (bno = 0; bno < fs->fs_fpg / fs->fs_frag; bno++) in cgballoc()
62 if (ffs_isblock(fs, blksfree, bno)) in cgballoc()
67 ffs_clrblock(fs, blksfree, (long)bno); in cgballoc()
68 ffs_clusteracct(fs, cgp, bno, -1); in cgballoc()
72 return (cgbase(fs, cgp->cg_cgx) + blkstofrags(fs, bno)); in cgballoc()
76 cgbfree(struct uufsd *disk, ufs2_daddr_t bno, long size) in cgbfree() argument
85 cg = dtog(fs, bno); in cgbfree()
89 cgbno = dtogd(fs, bno); in cgbfree()
/freebsd/sys/fs/ext2fs/
H A Dext2_alloc.c105 e4fs_daddr_t bno; in ext2_alloc() local
134 if (bno > 0) { in ext2_alloc()
141 *bnp = bno; in ext2_alloc()
1054 bno = bpref; in ext2_alloccg()
1106 bno = runstart; in ext2_alloccg()
1116 if (bno < 0) in ext2_alloccg()
1127 setbit(bbp, bno); in ext2_alloccg()
1158 daddr_t bno; in ext2_clusteralloc() local
1247 + bno); in ext2_clusteralloc()
1442 bno = dtogd(fs, bno); in ext2_blkfree()
[all …]
H A Dext2_subr.c100 ext2_clusteracct(struct m_ext2fs *fs, char *bbp, int cg, e4fs_daddr_t bno, int cnt) in ext2_clusteracct() argument
142 start = bno + 1; in ext2_clusteracct()
161 start = bno - 1; in ext2_clusteracct()
/freebsd/stand/libsa/
H A Dcd9660read.c227 daddr_t bno, boff; in cd9660_lookup() local
231 for (bno = 16;; bno++) { in cd9660_lookup()
232 rc = read_iso_block(blkbuf, bno); in cd9660_lookup()
250 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_lookup()
257 rc = read_iso_block(blkbuf, bno + boff); in cd9660_lookup()
H A Dcd9660.c129 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE) argument
299 daddr_t bno; in cd9660_read_dr() local
308 for (bno = 16;; bno++) { in cd9660_read_dr()
310 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), in cd9660_read_dr()
341 daddr_t bno, boff; in cd9660_open() local
379 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
389 cdb2devb(bno + boff), in cd9660_open()
468 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
470 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), in cd9660_open()
/freebsd/sys/geom/cache/
H A Dg_cache.c109 #define BNO2OFF(bno, sc) ((bno) << (sc)->sc_bshift) argument
247 g_cache_lookup(struct g_cache_softc *sc, off_t bno) in g_cache_lookup() argument
253 LIST_FOREACH(dp, &sc->sc_desclist[G_CACHE_BUCKET(bno)], d_next) in g_cache_lookup()
254 if (dp->d_bno == bno) in g_cache_lookup()
317 off_t bno, lim; in g_cache_invalidate() local
320 bno = OFF2BNO(bp->bio_offset, sc); in g_cache_invalidate()
323 if ((dp = g_cache_lookup(sc, bno)) != NULL) { in g_cache_invalidate()
336 bno++; in g_cache_invalidate()
337 } while (bno <= lim); in g_cache_invalidate()
H A Dg_cache.h48 #define G_CACHE_BUCKET(bno) ((bno) & (G_CACHE_BUCKETS - 1)) argument
/freebsd/sbin/growfs/
H A Dgrowfs.c1068 rdfs(ufs2_daddr_t bno, size_t size, void *bf, int fsi) in rdfs() argument
1075 if (bno < 0) in rdfs()
1077 if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) in rdfs()
1078 err(33, "rdfs: seek error: %jd", (intmax_t)bno); in rdfs()
1081 err(34, "rdfs: read error: %jd", (intmax_t)bno); in rdfs()
1091 wtfs(ufs2_daddr_t bno, size_t size, void *bf, int fso, unsigned int Nflag) in wtfs() argument
1102 if (lseek(fso, (off_t)bno * DEV_BSIZE, SEEK_SET) < 0) in wtfs()
1103 err(35, "wtfs: seek error: %ld", (long)bno); in wtfs()
1106 err(36, "wtfs: write error: %ld", (long)bno); in wtfs()
/freebsd/sbin/quotacheck/
H A Dquotacheck.c665 blkread(ufs2_daddr_t bno, char *buf, long cnt) in blkread() argument
668 if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 || in blkread()
670 errx(1, "blkread failed on block %ld", (long)bno); in blkread()
/freebsd/sbin/fsck_ffs/
H A Dsuj.c464 blk_free(ino_t ino, ufs2_daddr_t bno, int mask, int frags) in blk_free() argument
474 frags, bno, mask); in blk_free()
479 if (snapblkfree(fs, bno, lfragtosize(fs, frags), ino, in blk_free()
482 cg = dtog(fs, bno); in blk_free()
485 cgbno = dtogd(fs, bno); in blk_free()
516 blk_isfree(ufs2_daddr_t bno) in blk_isfree() argument
520 sc = cg_lookup(dtog(fs, bno)); in blk_isfree()
521 return ffs_isblock(fs, cg_blksfree(sc->sc_cgp), dtogd(fs, bno)); in blk_isfree()
H A Dinode.c806 snapblkfree(struct fs *fs, ufs2_daddr_t bno, long size, ino_t inum, in snapblkfree() argument
821 (intmax_t)inum, (intmax_t)bno, (intmax_t)size); in snapblkfree()
822 relblkno = blknum(fs, bno); in snapblkfree()
/freebsd/sbin/fsdb/
H A Dfsdb.c1063 daddr_t bno; in CMDFUNC() local
1074 bno = strtoll(argv[2], &cp, 0); in CMDFUNC()
1084 DIP_SET(curinode, di_db[idx], bno); in CMDFUNC()
/freebsd/sys/dev/sound/usb/
H A Duaudio.c157 #define BIT_TEST(bm,bno) (((bm)[(bno) / 8] >> (7 - ((bno) % 8))) & 1) argument
3368 uint32_t bno; /* bit number */ in uaudio_mixer_add_mixer() local
3413 bno = ((p + c) * ochs) + o; in uaudio_mixer_add_mixer()
3414 if (BIT_TEST(d1->bmControls, bno)) in uaudio_mixer_add_mixer()
3426 bno = ((p + c) * ochs) + o; in uaudio_mixer_add_mixer()
3427 if (BIT_TEST(d1->bmControls, bno)) in uaudio_mixer_add_mixer()
3445 uint32_t bno; /* bit number */ in uaudio20_mixer_add_mixer() local
3490 bno = ((p + c) * ochs) + o; in uaudio20_mixer_add_mixer()
3491 if (BIT_TEST(d1->bmControls, bno)) in uaudio20_mixer_add_mixer()
3503 bno = ((p + c) * ochs) + o; in uaudio20_mixer_add_mixer()
[all …]
/freebsd/stand/common/
H A Dpart.c517 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / table->sectorsize) argument
/freebsd/sbin/newfs/
H A Dmkfs.c1101 wtfs(ufs2_daddr_t bno, int size, char *bf) in wtfs() argument
1105 if (bwrite(&disk, part_ofs + bno, bf, size) < 0) in wtfs()
1106 err(36, "wtfs: %d bytes at sector %jd", size, (intmax_t)bno); in wtfs()
/freebsd/contrib/file/magic/Magdir/
H A Driff198 >1 byte 0xFF \bno number