Home
last modified time | relevance | path

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

/dragonfly/usr.sbin/makefs/ffs/
H A Dffs_alloc.c97 makefs_daddr_t bno; in ffs_alloc() local
114 if (bno > 0) { in ffs_alloc()
121 *bnp = bno; in ffs_alloc()
324 return (bno); in ffs_alloccg()
355 return (bno); in ffs_alloccg()
388 int32_t bno; in ffs_alloccgblk() local
410 if (bno < 0) in ffs_alloccgblk()
421 cg_blks(fs, cgp, cbtocylno(fs, bno))[cbtorpos(fs, bno)]--; in ffs_alloccgblk()
481 cg_blks(fs, cgp, cbtocylno(fs, bno))[cbtorpos(fs, bno)]++; in ffs_blkfree()
553 int32_t bno; in ffs_mapsearch() local
[all …]
H A Dmkfs.c872 ffs_rdfs(makefs_daddr_t bno, int size, void *bf, const fsinfo_t *fsopts) in ffs_rdfs() argument
877 offset = (off_t)bno * fsopts->sectorsize + fsopts->offset; in ffs_rdfs()
880 (long long)bno); in ffs_rdfs()
885 (long long)bno, size); in ffs_rdfs()
889 (long long)bno); in ffs_rdfs()
896 ffs_wtfs(makefs_daddr_t bno, int size, void *bf, const fsinfo_t *fsopts) in ffs_wtfs() argument
901 offset = (off_t)bno * fsopts->sectorsize + fsopts->offset; in ffs_wtfs()
904 (long long)bno); in ffs_wtfs()
908 (long long)bno); in ffs_wtfs()
911 (long long)bno); in ffs_wtfs()
/dragonfly/sys/vfs/ufs/
H A Dffs_alloc.c144 if (bno > 0) { in ffs_alloc()
147 *bnp = bno; in ffs_alloc()
229 if (bno) { in ffs_realloccg()
920 long bno; in ffs_fragextend() local
1186 bno = blkstofrags(fs, (bno + i)); in ffs_alloccgblk()
1204 if (bno < 0) in ffs_alloccgblk()
1531 bno = dtogd(fs, bno); in ffs_blkfree_cg()
1572 bbase = bno - fragnum(fs, bno); in ffs_blkfree_cg()
1682 tp->bno = bno; in ffs_blkfree()
1730 bno = dtogd(fs, bno); in ffs_checkblk()
[all …]
H A Dfs.h475 #define cbtocylno(fs, bno) \ argument
476 ((bno) * NSPF(fs) / (fs)->fs_spc)
477 #define cbtorpos(fs, bno) \ argument
478 (((bno) * NSPF(fs) % (fs)->fs_spc / (fs)->fs_nsect * (fs)->fs_trackskew + \
479 (bno) * NSPF(fs) % (fs)->fs_spc % (fs)->fs_nsect * (fs)->fs_interleave) % \
/dragonfly/usr.bin/monitor/
H A Dmonitor.c160 int bno; in monitor_events() local
173 while (QuietOpt == 0 && (bno = ffs(kev->fflags)) > 0) { in monitor_events()
175 --bno; in monitor_events()
176 kev->fflags &= ~(1 << bno); in monitor_events()
177 switch (1 << bno) { in monitor_events()
200 printf("%08x", 1 << bno); in monitor_events()
/dragonfly/sys/vfs/ext2fs/
H A Dext2_alloc.c109 e4fs_daddr_t bno; in ext2_alloc() local
138 if (bno > 0) { in ext2_alloc()
145 *bnp = bno; in ext2_alloc()
1037 bno = bpref; in ext2_alloccg()
1089 bno = runstart; in ext2_alloccg()
1099 if (bno < 0) in ext2_alloccg()
1110 setbit(bbp, bno); in ext2_alloccg()
1141 daddr_t bno; in ext2_clusteralloc() local
1230 + bno); in ext2_clusteralloc()
1427 bno = dtogd(fs, bno); in ext2_blkfree()
[all …]
H A Dext2_subr.c114 ext2_clusteracct(struct m_ext2fs *fs, char *bbp, int cg, e4fs_daddr_t bno, int cnt) in ext2_clusteracct() argument
156 start = bno + 1; in ext2_clusteracct()
175 start = bno - 1; in ext2_clusteracct()
/dragonfly/lib/libc/stdlib/
H A Ddmalloc.c798 int bno; in memalloc() local
880 bno = slab->free_bit; in memalloc()
883 if (*bmp & (1LU << bno)) { in memalloc()
907 bno = bsflong(*bmp); in memalloc()
924 bno = bsflong(*bmp); in memalloc()
1011 int bno; in memfree() local
1061 bmi = bno >> LONG_BITS_SHIFT; in memfree()
1062 bno &= (LONG_BITS - 1); in memfree()
1080 slab->free_bit = bno; in memfree()
1082 slab->free_bit > bno) { in memfree()
[all …]
/dragonfly/stand/lib/
H A Dcd9660.c117 #define cdb2devb(bno) ((bno) * (ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE)) argument
280 u_daddr_t bno, boff; in cd9660_open() local
288 for (bno = 16;; bno++) { in cd9660_open()
290 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), in cd9660_open()
315 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
325 cdb2devb(bno + boff), in cd9660_open()
387 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
389 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), in cd9660_open()
/dragonfly/sbin/badsect/
H A Dbadsect.c195 rdfs(daddr_t bno, int size, char *bf) in rdfs() argument
199 if (lseek(fsi, (off_t)bno * dev_bsize, SEEK_SET) < 0) { in rdfs()
200 printf("seek error: %ld\n", (long)bno); in rdfs()
205 printf("read error: %ld\n", (long)bno); in rdfs()
/dragonfly/sbin/newfs/
H A Dmkfs.c1211 rdfs(daddr_t bno, int size, char *bf) in rdfs() argument
1217 memmove(bf, membase + bno * sectorsize, size); in rdfs()
1220 if (lseek(fsi, (off_t)bno * sectorsize, 0) < 0) { in rdfs()
1221 printf("seek error: %ld\n", (long)bno); in rdfs()
1226 printf("read error: %ld\n", (long)bno); in rdfs()
1275 wtfs(daddr_t bno, int size, char *bf) in wtfs() argument
1281 memmove(membase + bno * sectorsize, bf, size); in wtfs()
1288 wc_sect = bno; in wtfs()
1306 if (lseek(fso, (off_t)bno * sectorsize, SEEK_SET) < 0) { in wtfs()
1307 printf("seek error: %ld\n", (long)bno); in wtfs()
[all …]
/dragonfly/sbin/ffsinfo/
H A Dffsinfo.c97 rdfs(daddr_t bno, size_t size, void *bf, int fsi) in rdfs() argument
103 if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) { in rdfs()
104 err(33, "rdfs: seek error: %ld", (long)bno); in rdfs()
108 err(34, "rdfs: read error: %ld", (long)bno); in rdfs()
/dragonfly/sbin/quotacheck/
H A Dquotacheck.c583 bread(daddr_t bno, char *buf, long cnt) in bread() argument
586 if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 || in bread()
588 errx(1, "block %ld", (long)bno); in bread()
/dragonfly/sbin/tunefs/
H A Dtunefs.c372 bread(daddr_t bno, char *buf, int cnt) in bread() argument
376 if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0) in bread()
/dragonfly/sbin/growfs/
H A Dgrowfs.c1544 rdfs(daddr_t bno, size_t size, void *bf, int fsi) in rdfs() argument
1550 if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) { in rdfs()
1551 err(33, "rdfs: seek error: %ld", (long)bno); in rdfs()
1555 err(34, "rdfs: read error: %ld", (long)bno); in rdfs()
1567 wtfs(daddr_t bno, size_t size, void *bf, int fso, unsigned int Nflag) in wtfs() argument
1577 if (lseek(fso, (off_t)bno * DEV_BSIZE, SEEK_SET) < 0) { in wtfs()
1578 err(35, "wtfs: seek error: %ld", (long)bno); in wtfs()
1582 err(36, "wtfs: write error: %ld", (long)bno); in wtfs()
/dragonfly/contrib/binutils-2.27/gas/doc/
H A Dc-i960.texi258 bbc chkbit; bno
265 cmpibno cmpijno cmpi; bno
282 bbc& & chkbit; bno\cr
289 cmpibno& cmpijno& cmpi; bno\cr
/dragonfly/sys/bus/u4b/audio/
H A Duaudio.c120 #define BIT_TEST(bm,bno) (((bm)[(bno) / 8] >> (7 - ((bno) % 8))) & 1) argument
3138 uint32_t bno; /* bit number */ in uaudio_mixer_add_mixer() local
3184 bno = ((p + c) * ochs) + o; in uaudio_mixer_add_mixer()
3185 if (BIT_TEST(d1->bmControls, bno)) in uaudio_mixer_add_mixer()
3198 bno = ((p + c) * ochs) + o; in uaudio_mixer_add_mixer()
3199 if (BIT_TEST(d1->bmControls, bno)) in uaudio_mixer_add_mixer()
3217 uint32_t bno; /* bit number */ in uaudio20_mixer_add_mixer() local
3263 bno = ((p + c) * ochs) + o; in uaudio20_mixer_add_mixer()
3264 if (BIT_TEST(d1->bmControls, bno)) in uaudio20_mixer_add_mixer()
3277 bno = ((p + c) * ochs) + o; in uaudio20_mixer_add_mixer()
[all …]
/dragonfly/contrib/file/magic/Magdir/
H A Driff198 >1 byte 0xFF \bno number