/src/sys/lib/libsa/ |
cd9660.c | 61 daddr_t bno; /* Starting block number */ member in struct:file 76 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE) 142 daddr_t bno; local in function:cd9660_open 152 for (bno = 16;; bno++) { 156 rc = DEV_STRATEGY(f->f_dev)(f->f_devdata, F_READ, cdb2devb(bno), 176 bno = isonum_732(vd->type_m_path_table); 187 rc = DEV_STRATEGY(f->f_dev)(f->f_devdata, F_READ, cdb2devb(bno), 199 bno = (daddr_t)isonum_732(pp->block) + isonum_711(pp->extlen) 314 daddr_t bno; local in function:cd9660_read [all...] |
/src/usr.sbin/makefs/ffs/ |
ffs_alloc.c | 105 daddr_t bno; local in function:ffs_alloc 121 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg); 122 if (bno > 0) { 124 *bnp = bno; 303 daddr_t bno, blkno; local in function:ffs_alloccg 322 bno = ffs_alloccgblk(ip, bp, bpref); 324 return (bno); 344 bno = ffs_alloccgblk(ip, bp, bpref); 345 bpref = dtogd(fs, bno); 355 return (bno); 388 int32_t bno; local in function:ffs_alloccgblk 540 int32_t bno; local in function:ffs_mapsearch [all...] |
/src/sys/ufs/ext2fs/ |
ext2fs_alloc.c | 121 daddr_t bno; local in function:ext2fs_alloc 142 bno = (daddr_t)ext2fs_hashalloc(ip, cg, bpref, fs->e2fs_bsize, 144 if (bno > 0) { 147 *bnp = bno; 346 int error, bno, start, end, loc; local in function:ext2fs_alloccg 377 bno = bpref; 394 bno = loc * NBBY; 400 bno = loc * NBBY; 405 bno = ext2fs_mapsearch(fs, bbp, bpref); 411 if (bno < 0 [all...] |
/src/sys/arch/sandpoint/stand/altboot/ |
dsk.c | 397 lba_read(struct disk *d, int64_t bno, int bcnt, void *buf) 412 for ( ; bcnt > 0; bno += rdcnt, bcnt -= rdcnt) { 413 issue = (bno < (1ULL<<28)) ? issue28 : issue48; 415 (*issue)(chan, bno, rdcnt); 419 d->xname, (unsigned)bno, err); 435 issue48(struct dvata_chan *chan, int64_t bno, int nblk) 439 CSR_WRITE_1(chan->cmd + _LBAL, (bno >> 24) & 0xff); 440 CSR_WRITE_1(chan->cmd + _LBAM, (bno >> 32) & 0xff); 441 CSR_WRITE_1(chan->cmd + _LBAH, (bno >> 40) & 0xff); 443 CSR_WRITE_1(chan->cmd + _LBAL, (bno >> 0) & 0xff) 548 int64_t bno; local in function:dsk_strategy [all...] |
/src/usr.sbin/dumpfs/ |
dumpfs.c | 765 size_t count, blklen, bno, skip; local in function:print_journal 783 for (bno=0; bno<count; bno += skip / blklen) { 787 boff = bno * blklen; 788 if (bno * blklen >= 2 * blklen && 794 (unsigned long)bno, (long long) boff);
|
/src/sbin/newfs_ext2fs/ |
mke2fs.c | 1258 uint32_t loc, bno; local in function:alloc 1280 bno = loc * NBBY; 1293 bno = loc * NBBY; 1294 for (i = 0; i < NBBY; i++, bno++) { 1302 if (isset(bbp, bno)) 1305 setbit(bbp, bno); 1315 return sblock.e2fs.e2fs_first_dblock + bno; 1391 rdfs(daddr_t bno, int size, void *bf) 1396 offset = bno; 1400 __func__, (int64_t)bno); [all...] |
/src/sys/ufs/ffs/ |
ffs_alloc.c | 134 ffs_check_bad_allocation(const char *func, struct fs *fs, daddr_t bno, 138 ffs_fragnum(fs, bno) + ffs_numfrags(fs, size) > fs->fs_frag) { 139 panic("%s: bad size: dev = 0x%llx, bno = %" PRId64 141 (long long)dev, bno, fs->fs_bsize, size, fs->fs_fsmnt); 144 if (bno >= fs->fs_size) { 145 printf("%s: bad block %" PRId64 ", ino %llu\n", func, bno, 181 daddr_t bno; local in function:ffs_alloc 258 bno = ffs_hashalloc(ip, cg, bpref, size, 0, flags, ffs_alloccg); 259 if (bno > 0) { 265 *bnp = bno; 316 daddr_t bno; local in function:ffs_realloccg 977 daddr_t bno; local in function:ffs_fragextend 1058 int32_t bno; local in function:ffs_alloccg 1189 int32_t bno; local in function:ffs_alloccgblk 1599 daddr_t bno; member in struct:discardopdata 2162 int32_t bno; local in function:ffs_mapsearch [all...] |
/src/sys/arch/i386/stand/lib/ |
biosdisk.c | 195 #define devb2cdb(bno) (((bno) * DEV_BSIZE) / ISO_DEFAULT_BLOCK_SIZE) 622 daddr_t bno; local in function:check_cd9660 624 for (bno = 16;; bno++) { 625 if (readsects(&d->ll, bno, 1, d->buf, 0))
|
/src/sys/dev/ata/ |
wd.c | 1507 daddr_t bno; local in function:wd_discard 1526 bno = (pos + wd->sc_blksize - 1) / wd->sc_blksize; 1527 size = ((pos + len) / wd->sc_blksize) - bno; 1535 result = wd_trim(wd, bno + done, amount); 1943 wd_trim(struct wd_softc *wd, daddr_t bno, long size) 1953 req[0] = bno & 0xff; 1954 req[1] = (bno >> 8) & 0xff; 1955 req[2] = (bno >> 16) & 0xff; 1956 req[3] = (bno >> 24) & 0xff; 1957 req[4] = (bno >> 32) & 0xff [all...] |
/src/sys/dev/scsipi/ |
sd.c | 1053 uint64_t bno; local in function:sd_unmap 1057 bno = (pos + sd->params.blksize - 1) / sd->params.blksize; 1058 size = ((pos + len) / sd->params.blksize) - bno; 1066 _lto8b(bno, data.unmap_block_descriptor[0].addr);
|
/src/sbin/fsdb/ |
fsdb.c | 1421 daddr_t bno; local in function:CMDFUNC 1432 bno = strtoll(argv[2], &cp, 0); 1442 DIP_SET(curinode, db[idx], bno); 1451 daddr_t bno; local in function:CMDFUNC 1462 bno = strtoll(argv[2], &cp, 0); 1472 DIP_SET(curinode, ib[idx], bno); 1481 daddr_t bno; local in function:CMDFUNC 1492 bno = strtoll(argv[2], &cp, 0); 1502 curinode->dp2.di_extb[idx] = bno;
|
/src/sys/dev/usb/ |
uaudio.c | 1080 int c, chs, ichs, ochs, nchs, i, o, bno, p, k; local in function:uaudio_add_mixer 1135 #define _BIT(bno) ((bm[bno / 8] >> (7 - bno % 8)) & 1) 1142 bno = (p + c) * ochs + o; 1143 if (_BIT(bno))
|