dev                53 bio.c              b->dev = -1;
dev                63 bio.c          bget(uint dev, uint blockno)
dev                72 bio.c              if(b->dev == dev && b->blockno == blockno){
dev                88 bio.c                b->dev = dev;
dev               100 bio.c          bread(uint dev, uint blockno)
dev               104 bio.c            b = bget(dev, blockno);
dev                 3 buf.h            uint dev;
dev                37 defs.h         void            readsb(int dev, struct superblock *sb);
dev                42 defs.h         void            iinit(int dev);
dev                84 defs.h         void            initlog(int dev);
dev                14 file.h           uint dev;           // Device number
dev                29 fs.c           readsb(int dev, struct superblock *sb)
dev                33 fs.c             bp = bread(dev, 1);
dev                40 fs.c           bzero(int dev, int bno)
dev                44 fs.c             bp = bread(dev, bno);
dev                54 fs.c           balloc(uint dev)
dev                61 fs.c               bp = bread(dev, BBLOCK(b, sb));
dev                68 fs.c                   bzero(dev, b + bi);
dev                79 fs.c           bfree(int dev, uint b)
dev                84 fs.c             readsb(dev, &sb);
dev                85 fs.c             bp = bread(dev, BBLOCK(b, sb));
dev               163 fs.c           iinit(int dev)
dev               166 fs.c             readsb(dev, &sb);
dev               171 fs.c           static struct inode* iget(uint dev, uint inum);
dev               177 fs.c           ialloc(uint dev, short type)
dev               184 fs.c               bp = bread(dev, IBLOCK(inum, sb));
dev               191 fs.c                 return iget(dev, inum);
dev               205 fs.c             bp = bread(ip->dev, IBLOCK(ip->inum, sb));
dev               221 fs.c           iget(uint dev, uint inum)
dev               230 fs.c               if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
dev               244 fs.c             ip->dev = dev;
dev               282 fs.c               bp = bread(ip->dev, IBLOCK(ip->inum, sb));
dev               364 fs.c                 ip->addrs[bn] = addr = balloc(ip->dev);
dev               372 fs.c                 ip->addrs[NDIRECT] = addr = balloc(ip->dev);
dev               373 fs.c               bp = bread(ip->dev, addr);
dev               376 fs.c                 a[bn] = addr = balloc(ip->dev);
dev               400 fs.c                 bfree(ip->dev, ip->addrs[i]);
dev               406 fs.c               bp = bread(ip->dev, ip->addrs[NDIRECT]);
dev               410 fs.c                   bfree(ip->dev, a[j]);
dev               413 fs.c               bfree(ip->dev, ip->addrs[NDIRECT]);
dev               425 fs.c             st->dev = ip->dev;
dev               452 fs.c               bp = bread(ip->dev, bmap(ip, off/BSIZE));
dev               480 fs.c               bp = bread(ip->dev, bmap(ip, off/BSIZE));
dev               524 fs.c                 return iget(dp->dev, inum);
dev                89 ide.c            outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f));
dev               142 ide.c            if(b->dev != 0 && !havedisk1)
dev                44 log.c            int dev;
dev                53 log.c          initlog(int dev)
dev                60 log.c            readsb(dev, &sb);
dev                63 log.c            log.dev = dev;
dev                74 log.c              struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block
dev                75 log.c              struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst
dev                87 log.c            struct buf *buf = bread(log.dev, log.start);
dev               103 log.c            struct buf *buf = bread(log.dev, log.start);
dev               180 log.c              struct buf *to = bread(log.dev, log.start+tail+1); // log block
dev               181 log.c              struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block
dev                46 memide.c         if(b->dev != 1)
dev                 7 stat.h           int dev;     // File system's disk device
dev               144 sysfile.c        if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){
dev               258 sysfile.c        if((ip = ialloc(dp->dev, type)) == 0)