Home
last modified time | relevance | path

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

/freebsd-13-stable/usr.sbin/makefs/ffs/
HDffs_alloc.c95 daddr_t bno; in ffs_alloc() local
111 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg); in ffs_alloc()
112 if (bno > 0) { in ffs_alloc()
117 *bnp = bno; in ffs_alloc()
296 daddr_t bno, blkno; in ffs_alloccg() local
315 bno = ffs_alloccgblk(ip, bp, bpref); in ffs_alloccg()
317 return (bno); in ffs_alloccg()
337 bno = ffs_alloccgblk(ip, bp, bpref); in ffs_alloccg()
338 bpref = dtogd(fs, bno); in ffs_alloccg()
348 return (bno); in ffs_alloccg()
[all …]
HDmkfs.c811 ffs_rdfs(daddr_t bno, int size, void *bf, const fsinfo_t *fsopts) in ffs_rdfs() argument
816 offset = (off_t)bno * fsopts->sectorsize + fsopts->offset; in ffs_rdfs()
819 (long long)bno); in ffs_rdfs()
824 (long long)bno, size); in ffs_rdfs()
828 (long long)bno); in ffs_rdfs()
835 ffs_wtfs(daddr_t bno, int size, void *bf, const fsinfo_t *fsopts) in ffs_wtfs() argument
840 offset = (off_t)bno * fsopts->sectorsize + fsopts->offset; in ffs_wtfs()
843 (long long)bno); in ffs_wtfs()
847 (long long)bno); in ffs_wtfs()
850 (long long)bno); in ffs_wtfs()
/freebsd-13-stable/sys/ufs/ffs/
HDffs_alloc.c162 ufs2_daddr_t bno; in ffs_alloc() local
203 bno = ffs_hashalloc(ip, cg, bpref, size, size, ffs_alloccg); in ffs_alloc()
204 if (bno > 0) { in ffs_alloc()
211 *bnp = bno; in ffs_alloc()
269 ufs2_daddr_t bno; in ffs_realloccg() local
336 bno = ffs_fragextend(ip, cg, bprev, osize, nsize); in ffs_realloccg()
337 if (bno) { in ffs_realloccg()
338 if (bp->b_blkno != fsbtodb(fs, bno)) in ffs_realloccg()
402 bno = ffs_hashalloc(ip, cg, bpref, request, nsize, ffs_alloccg); in ffs_realloccg()
403 if (bno > 0) { in ffs_realloccg()
[all …]
HDffs_snapshot.c89 ufs2_daddr_t bno, in ffs_snapblkfree() argument
1778 ufs2_daddr_t bno, in ffs_snapblkfree() argument
1793 lbn = fragstoblks(fs, bno); in ffs_snapblkfree()
1899 DIP_SET(ip, i_db[lbn], bno); in ffs_snapblkfree()
1901 ((ufs1_daddr_t *)(ibp->b_data))[indiroff] = bno; in ffs_snapblkfree()
1904 ((ufs2_daddr_t *)(ibp->b_data))[indiroff] = bno; in ffs_snapblkfree()
HDffs_softdep.c5329 long bno; in softdep_setup_blkmapdep() local
5334 bno = dtogd(fs, jnewblk->jn_blkno); in softdep_setup_blkmapdep()
5337 if (isset(blksfree, bno + i)) in softdep_setup_blkmapdep()
10999 long bno; in softdep_setup_blkfree() local
11040 bno = dtogd(fs, jnewblk->jn_blkno); in softdep_setup_blkfree()
11043 if (isset(blksfree, bno + i)) in softdep_setup_blkfree()
/freebsd-13-stable/lib/libufs/
HDcgroup.c55 long bno; in cgballoc() local
60 for (bno = 0; bno < fs->fs_fpg / fs->fs_frag; bno++) in cgballoc()
61 if (ffs_isblock(fs, blksfree, bno)) in cgballoc()
66 ffs_clrblock(fs, blksfree, (long)bno); in cgballoc()
67 ffs_clusteracct(fs, cgp, bno, -1); in cgballoc()
71 return (cgbase(fs, cgp->cg_cgx) + blkstofrags(fs, bno)); in cgballoc()
75 cgbfree(struct uufsd *disk, ufs2_daddr_t bno, long size) in cgbfree() argument
84 cg = dtog(fs, bno); in cgbfree()
88 cgbno = dtogd(fs, bno); in cgbfree()
/freebsd-13-stable/sys/fs/ext2fs/
HDext2_alloc.c107 e4fs_daddr_t bno; in ext2_alloc() local
134 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize, in ext2_alloc()
136 if (bno > 0) { in ext2_alloc()
139 ip->i_next_alloc_goal = bno; in ext2_alloc()
143 *bnp = bno; in ext2_alloc()
1006 daddr_t bno, runstart, runlen; in ext2_alloccg() local
1055 bno = bpref; in ext2_alloccg()
1095 bno = runstart; in ext2_alloccg()
1107 bno = runstart; in ext2_alloccg()
1116 bno = ext2_mapsearch(fs, bbp, bpref); in ext2_alloccg()
[all …]
HDext2_subr.c102 ext2_clusteracct(struct m_ext2fs *fs, char *bbp, int cg, e4fs_daddr_t bno, int cnt) in ext2_clusteracct() argument
144 start = bno + 1; in ext2_clusteracct()
163 start = bno - 1; in ext2_clusteracct()
/freebsd-13-stable/stand/libsa/
HDcd9660read.c228 daddr_t bno, boff; in cd9660_lookup() local
232 for (bno = 16;; bno++) { in cd9660_lookup()
233 rc = read_iso_block(blkbuf, bno); in cd9660_lookup()
251 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_lookup()
258 rc = read_iso_block(blkbuf, bno + boff); in cd9660_lookup()
HDcd9660.c130 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE) argument
300 daddr_t bno; in cd9660_read_dr() local
309 for (bno = 16;; bno++) { in cd9660_read_dr()
311 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), in cd9660_read_dr()
342 daddr_t bno, boff; in cd9660_open() local
380 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
390 cdb2devb(bno + boff), in cd9660_open()
469 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
471 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), in cd9660_open()
/freebsd-13-stable/sys/geom/cache/
HDg_cache.c110 #define BNO2OFF(bno, sc) ((bno) << (sc)->sc_bshift) argument
248 g_cache_lookup(struct g_cache_softc *sc, off_t bno) in g_cache_lookup() argument
254 LIST_FOREACH(dp, &sc->sc_desclist[G_CACHE_BUCKET(bno)], d_next) in g_cache_lookup()
255 if (dp->d_bno == bno) in g_cache_lookup()
318 off_t bno, lim; in g_cache_invalidate() local
321 bno = OFF2BNO(bp->bio_offset, sc); in g_cache_invalidate()
324 if ((dp = g_cache_lookup(sc, bno)) != NULL) { in g_cache_invalidate()
337 bno++; in g_cache_invalidate()
338 } while (bno <= lim); in g_cache_invalidate()
HDg_cache.h48 #define G_CACHE_BUCKET(bno) ((bno) & (G_CACHE_BUCKETS - 1)) argument
/freebsd-13-stable/sbin/growfs/
HDgrowfs.c1076 rdfs(ufs2_daddr_t bno, size_t size, void *bf, int fsi) in rdfs() argument
1083 if (bno < 0) in rdfs()
1085 if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) in rdfs()
1086 err(33, "rdfs: seek error: %jd", (intmax_t)bno); in rdfs()
1089 err(34, "rdfs: read error: %jd", (intmax_t)bno); in rdfs()
1099 wtfs(ufs2_daddr_t bno, size_t size, void *bf, int fso, unsigned int Nflag) in wtfs() argument
1110 if (lseek(fso, (off_t)bno * DEV_BSIZE, SEEK_SET) < 0) in wtfs()
1111 err(35, "wtfs: seek error: %ld", (long)bno); in wtfs()
1114 err(36, "wtfs: write error: %ld", (long)bno); in wtfs()
/freebsd-13-stable/sbin/quotacheck/
HDquotacheck.c673 blkread(ufs2_daddr_t bno, char *buf, long cnt) in blkread() argument
676 if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 || in blkread()
678 errx(1, "blkread failed on block %ld", (long)bno); in blkread()
/freebsd-13-stable/sbin/fsck_ffs/
HDsuj.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()
HDinode.c837 snapblkfree(struct fs *fs, ufs2_daddr_t bno, long size, ino_t inum, in snapblkfree() argument
852 (intmax_t)inum, (intmax_t)bno, (intmax_t)size); in snapblkfree()
853 relblkno = blknum(fs, bno); in snapblkfree()
/freebsd-13-stable/sbin/fsdb/
HDfsdb.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-13-stable/sys/dev/sound/usb/
HDuaudio.c154 #define BIT_TEST(bm,bno) (((bm)[(bno) / 8] >> (7 - ((bno) % 8))) & 1) argument
3292 uint32_t bno; /* bit number */ in uaudio_mixer_add_mixer() local
3337 bno = ((p + c) * ochs) + o; in uaudio_mixer_add_mixer()
3338 if (BIT_TEST(d1->bmControls, bno)) in uaudio_mixer_add_mixer()
3350 bno = ((p + c) * ochs) + o; in uaudio_mixer_add_mixer()
3351 if (BIT_TEST(d1->bmControls, bno)) in uaudio_mixer_add_mixer()
3369 uint32_t bno; /* bit number */ in uaudio20_mixer_add_mixer() local
3414 bno = ((p + c) * ochs) + o; in uaudio20_mixer_add_mixer()
3415 if (BIT_TEST(d1->bmControls, bno)) in uaudio20_mixer_add_mixer()
3427 bno = ((p + c) * ochs) + o; in uaudio20_mixer_add_mixer()
[all …]
/freebsd-13-stable/stand/common/
HDpart.c518 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / table->sectorsize) argument
/freebsd-13-stable/sbin/newfs/
HDmkfs.c1100 wtfs(ufs2_daddr_t bno, int size, char *bf) in wtfs() argument
1104 if (bwrite(&disk, part_ofs + bno, bf, size) < 0) in wtfs()
1105 err(36, "wtfs: %d bytes at sector %jd", size, (intmax_t)bno); in wtfs()
/freebsd-13-stable/contrib/file/magic/Magdir/
HDriff213 >1 byte 0xFF \bno number