/freebsd/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 92 daddr_t bno; in ffs_alloc() local 108 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg); in ffs_alloc() 109 if (bno > 0) { in ffs_alloc() 114 *bnp = bno; in ffs_alloc() 293 daddr_t bno, blkno; in ffs_alloccg() local 312 bno = ffs_alloccgblk(ip, bp, bpref); in ffs_alloccg() 314 return (bno); in ffs_alloccg() 334 bno = ffs_alloccgblk(ip, bp, bpref); in ffs_alloccg() 335 bpref = dtogd(fs, bno); in ffs_alloccg() 345 return (bno); in ffs_alloccg() [all …]
|
H A D | mkfs.c | 810 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 D | ffs_alloc.c | 160 ufs2_daddr_t bno; in ffs_alloc() local 201 bno = ffs_hashalloc(ip, cg, bpref, size, size, ffs_alloccg); in ffs_alloc() 202 if (bno > 0) { in ffs_alloc() 209 *bnp = bno; in ffs_alloc() 267 ufs2_daddr_t bno; in ffs_realloccg() local 334 bno = ffs_fragextend(ip, cg, bprev, osize, nsize); in ffs_realloccg() 335 if (bno) { in ffs_realloccg() 336 if (bp->b_blkno != fsbtodb(fs, bno)) in ffs_realloccg() 400 bno = ffs_hashalloc(ip, cg, bpref, request, nsize, ffs_alloccg); in ffs_realloccg() 401 if (bno > 0) { in ffs_realloccg() [all …]
|
H A D | ffs_snapshot.c | 87 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()
|
H A D | ffs_softdep.c | 5334 long bno; in softdep_setup_blkmapdep() local 5339 bno = dtogd(fs, jnewblk->jn_blkno); in softdep_setup_blkmapdep() 5342 if (isset(blksfree, bno + i)) in softdep_setup_blkmapdep() 11002 long bno; in softdep_setup_blkfree() local 11043 bno = dtogd(fs, jnewblk->jn_blkno); in softdep_setup_blkfree() 11046 if (isset(blksfree, bno + i)) in softdep_setup_blkfree()
|
/freebsd/lib/libufs/ |
H A D | cgroup.c | 56 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 D | ext2_alloc.c | 105 e4fs_daddr_t bno; in ext2_alloc() local 132 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize, in ext2_alloc() 134 if (bno > 0) { in ext2_alloc() 137 ip->i_next_alloc_goal = bno; in ext2_alloc() 141 *bnp = bno; in ext2_alloc() 1005 daddr_t bno, runstart, runlen; in ext2_alloccg() local 1054 bno = bpref; in ext2_alloccg() 1094 bno = runstart; in ext2_alloccg() 1106 bno = runstart; in ext2_alloccg() 1115 bno = ext2_mapsearch(fs, bbp, bpref); in ext2_alloccg() [all …]
|
H A D | ext2_subr.c | 100 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 D | cd9660read.c | 227 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 D | cd9660.c | 129 #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 D | g_cache.c | 109 #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 D | g_cache.h | 48 #define G_CACHE_BUCKET(bno) ((bno) & (G_CACHE_BUCKETS - 1)) argument
|
/freebsd/sbin/growfs/ |
H A D | growfs.c | 1068 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 D | quotacheck.c | 661 blkread(ufs2_daddr_t bno, char *buf, long cnt) 664 if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 || 666 errx(1, "blkread failed on block %ld", (long)bno); in blkread() 665 blkread(ufs2_daddr_t bno,char * buf,long cnt) blkread() argument
|
/freebsd/sbin/fsck_ffs/ |
H A D | suj.c | 464 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 D | inode.c | 830 snapblkfree(struct fs *fs, ufs2_daddr_t bno, long size, ino_t inum, in snapblkfree() argument 845 (intmax_t)inum, (intmax_t)bno, (intmax_t)size); in snapblkfree() 846 relblkno = blknum(fs, bno); in snapblkfree()
|
/freebsd/sbin/fsdb/ |
H A D | fsdb.c | 1063 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 D | uaudio.c | 157 #define BIT_TEST(bm,bno) (((bm)[(bno) / 8] >> (7 - ((bno) % 8))) & 1) argument 3338 uint32_t bno; /* bit number */ in uaudio_mixer_add_mixer() local 3383 bno = ((p + c) * ochs) + o; in uaudio_mixer_add_mixer() 3384 if (BIT_TEST(d1->bmControls, bno)) in uaudio_mixer_add_mixer() 3396 bno = ((p + c) * ochs) + o; in uaudio_mixer_add_mixer() 3397 if (BIT_TEST(d1->bmControls, bno)) in uaudio_mixer_add_mixer() 3415 uint32_t bno; /* bit number */ in uaudio20_mixer_add_mixer() local 3460 bno = ((p + c) * ochs) + o; in uaudio20_mixer_add_mixer() 3461 if (BIT_TEST(d1->bmControls, bno)) in uaudio20_mixer_add_mixer() 3473 bno = ((p + c) * ochs) + o; in uaudio20_mixer_add_mixer() [all …]
|
/freebsd/stand/common/ |
H A D | part.c | 517 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / table->sectorsize) argument
|
/freebsd/sbin/newfs/ |
H A D | mkfs.c | 1097 wtfs(ufs2_daddr_t bno, int size, char *bf) 1101 if (bwrite(&disk, part_ofs + bno, bf, size) < 0) in wtfs() argument 1102 err(36, "wtfs: %d bytes at sector %jd", size, (intmax_t)bno); in wtfs()
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | riff | 213 >1 byte 0xFF \bno number
|