Fork me on GitHub
dev               524 drivers/block/floppy.c int fdc_read(__dev_t dev, __blk_t block, char *buffer, int blksize)
dev               533 drivers/block/floppy.c 	minor = MINOR(dev);
dev               539 drivers/block/floppy.c 		if(!(d = get_device(BLK_DEV, dev))) {
dev               550 drivers/block/floppy.c 		printk("WARNING: %s(): fd%d: invalid block number %d on %s device %d,%d.\n", __FUNCTION__, current_fdd, block, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               560 drivers/block/floppy.c 			printk("%s(): %s disk was changed in device %d,%d!\n", __FUNCTION__, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               561 drivers/block/floppy.c 			invalidate_buffers(dev);
dev               566 drivers/block/floppy.c 			printk("WARNING: %s(): fd%d: seek error on %s device %d,%d during read operation.\n", __FUNCTION__, current_fdd, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               585 drivers/block/floppy.c 			printk("WARNING: %s(): fd%d: needs reset on %s device %d,%d during read operation.\n", __FUNCTION__, current_fdd, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               597 drivers/block/floppy.c 			printk("WARNING: %s(): fd%d: timeout on %s device %d,%d.\n", __FUNCTION__, current_fdd, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               610 drivers/block/floppy.c 		printk("WARNING: %s(): fd%d: error on %s device %d,%d during read operation,\n", __FUNCTION__, current_fdd, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               622 drivers/block/floppy.c 		printk("WARNING: %s(): fd%d: read error on %s device %d,%d (%d sectors read).\n", __FUNCTION__, current_fdd, floppy_device.name, MAJOR(dev), MINOR(dev), sectors_read);
dev               635 drivers/block/floppy.c int fdc_write(__dev_t dev, __blk_t block, char *buffer, int blksize)
dev               644 drivers/block/floppy.c 	minor = MINOR(dev);
dev               650 drivers/block/floppy.c 		if(!(d = get_device(BLK_DEV, dev))) {
dev               661 drivers/block/floppy.c 		printk("WARNING: %s(): fd%d: invalid block number %d on %s device %d,%d.\n", __FUNCTION__, current_fdd, block, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               671 drivers/block/floppy.c 			printk("%s(): %s disk was changed in device %d,%d!\n", __FUNCTION__, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               672 drivers/block/floppy.c 			invalidate_buffers(dev);
dev               677 drivers/block/floppy.c 			printk("WARNING: %s(): fd%d: seek error on %s device %d,%d during write operation.\n", __FUNCTION__, current_fdd, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               697 drivers/block/floppy.c 			printk("WARNING: %s(): fd%d: needs reset on %s device %d,%d during write operation.\n", __FUNCTION__, current_fdd, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               709 drivers/block/floppy.c 			printk("WARNING: %s(): fd%d: timeout on %s device %d,%d.\n", __FUNCTION__, current_fdd, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               727 drivers/block/floppy.c 		printk("WARNING: %s(): fd%d: error on %s device %d,%d during write operation,\n", __FUNCTION__, current_fdd, floppy_device.name, MAJOR(dev), MINOR(dev));
dev               739 drivers/block/floppy.c 		printk("WARNING: %s(): fd%d: write error on %s device %d,%d (%d sectors written).\n", __FUNCTION__, current_fdd, floppy_device.name, MAJOR(dev), MINOR(dev), sectors_written);
dev               614 drivers/block/ide.c struct ide * get_ide_controller(__dev_t dev)
dev               618 drivers/block/ide.c 	if(MAJOR(dev) == IDE0_MAJOR) {
dev               621 drivers/block/ide.c 		if(MAJOR(dev) == IDE1_MAJOR) {
dev               630 drivers/block/ide.c int get_ide_drive(__dev_t dev)
dev               634 drivers/block/ide.c 	drive = MINOR(dev);
dev               685 drivers/block/ide.c int ide_read(__dev_t dev, __blk_t block, char *buffer, int blksize)
dev               690 drivers/block/ide.c 	if(!(ide = get_ide_controller(dev))) {
dev               695 drivers/block/ide.c 	if(!get_device(BLK_DEV, dev)) {
dev               699 drivers/block/ide.c 	drive = get_ide_drive(dev);
dev               701 drivers/block/ide.c 		return ide->drive[drive].fsop->read_block(dev, block, buffer, blksize);
dev               703 drivers/block/ide.c 	printk("WARNING: %s(): device %d,%d does not have the read_block() method!\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev               707 drivers/block/ide.c int ide_write(__dev_t dev, __blk_t block, char *buffer, int blksize)
dev               712 drivers/block/ide.c 	if(!(ide = get_ide_controller(dev))) {
dev               717 drivers/block/ide.c 	if(!get_device(BLK_DEV, dev)) {
dev               721 drivers/block/ide.c 	drive = get_ide_drive(dev);
dev               723 drivers/block/ide.c 		return ide->drive[drive].fsop->write_block(dev, block, buffer, blksize);
dev               725 drivers/block/ide.c 	printk("WARNING: %s(): device %d,%d does not have the write_block() method!\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev               151 drivers/block/ide_cd.c static int atapi_read_data(__dev_t dev, char *data, struct ide *ide, int blksize, int offset)
dev               210 drivers/block/ide_cd.c 		printk("WARNING: %s(): error on cdrom device %d,%d, status=0x%x error=0x%x,\n", __FUNCTION__, MAJOR(dev), MINOR(dev), status, errno);
dev               215 drivers/block/ide_cd.c 		printk("WARNING: %s(): timeout on cdrom device %d,%d, status=0x%x.\n", __FUNCTION__, MAJOR(dev), MINOR(dev), status);
dev               298 drivers/block/ide_cd.c static int request_sense(char *buffer, __dev_t dev, struct ide *ide, int drive)
dev               308 drivers/block/ide_cd.c 	errcode = atapi_read_data(dev, buffer, ide, BLKSIZE_2K, 0);
dev               425 drivers/block/ide_cd.c int ide_cd_read(__dev_t dev, __blk_t block, char *buffer, int blksize)
dev               433 drivers/block/ide_cd.c 	if(!(ide = get_ide_controller(dev))) {
dev               437 drivers/block/ide_cd.c 	drive = get_ide_drive(dev);
dev               462 drivers/block/ide_cd.c 			if(atapi_read_data(dev, buffer, ide, blksize, n * IDE_CD_SECTSIZE)) {
dev               126 drivers/block/ide_hd.c int ide_hd_read(__dev_t dev, __blk_t block, char *buffer, int blksize)
dev               139 drivers/block/ide_hd.c 	if(!(ide = get_ide_controller(dev))) {
dev               143 drivers/block/ide_hd.c 	minor = MINOR(dev);
dev               144 drivers/block/ide_hd.c 	if((drive = get_ide_drive(dev))) {
dev               201 drivers/block/ide_hd.c 				printk("WARNING: %s(): %s: timeout on hard disk dev %d,%d during read.\n", __FUNCTION__, ide->drive[drive].dev_name, MAJOR(dev), MINOR(dev));
dev               215 drivers/block/ide_hd.c 				printk("WARNING: %s(): %s: timeout on hard disk dev %d,%d during read.\n", __FUNCTION__, ide->drive[drive].dev_name, MAJOR(dev), MINOR(dev));
dev               228 drivers/block/ide_hd.c 			printk("WARNING: %s(): %s: error on hard disk dev %d,%d during read.\n", __FUNCTION__, ide->drive[drive].dev_name, MAJOR(dev), MINOR(dev));
dev               254 drivers/block/ide_hd.c int ide_hd_write(__dev_t dev, __blk_t block, char *buffer, int blksize)
dev               267 drivers/block/ide_hd.c 	if(!(ide = get_ide_controller(dev))) {
dev               271 drivers/block/ide_hd.c 	minor = MINOR(dev);
dev               272 drivers/block/ide_hd.c 	if((drive = get_ide_drive(dev))) {
dev               328 drivers/block/ide_hd.c 			printk("WARNING: %s(): %s: error on hard disk dev %d,%d during write.\n", __FUNCTION__, ide->drive[drive].dev_name, MAJOR(dev), MINOR(dev));
dev               351 drivers/block/ide_hd.c 				printk("WARNING: %s(): %s: timeout on hard disk dev %d,%d during write.\n", __FUNCTION__, ide->drive[drive].dev_name, MAJOR(dev), MINOR(dev));
dev               365 drivers/block/ide_hd.c 				printk("WARNING: %s(): %s: timeout on hard disk dev %d,%d during write.\n", __FUNCTION__, ide->drive[drive].dev_name, MAJOR(dev), MINOR(dev));
dev                17 drivers/block/part.c int read_msdos_partition(__dev_t dev, struct partition *part)
dev                25 drivers/block/part.c 	if(ide_hd_read(dev, PARTITION_BLOCK, buffer, BLKSIZE_1K) <= 0) {
dev                26 drivers/block/part.c 		printk("WARNING: %s(): unable to read partition block in device %d,%d.\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev                98 drivers/block/ramdisk.c int ramdisk_read(__dev_t dev, __blk_t block, char *buffer, int blksize)
dev               104 drivers/block/ramdisk.c 	if(!(ramdisk = get_ramdisk(MINOR(dev)))) {
dev               108 drivers/block/ramdisk.c 	size = rd_sizes[MINOR(dev)] * 1024;
dev               119 drivers/block/ramdisk.c int ramdisk_write(__dev_t dev, __blk_t block, char *buffer, int blksize)
dev               125 drivers/block/ramdisk.c 	if(!(ramdisk = get_ramdisk(MINOR(dev)))) {
dev               129 drivers/block/ramdisk.c 	size = rd_sizes[MINOR(dev)] * 1024;
dev               125 drivers/char/console.c static int is_vconsole(__dev_t dev)
dev               127 drivers/char/console.c 	if(MAJOR(dev) == VCONSOLES_MAJOR && MINOR(dev) <= NR_VCONSOLES) {
dev               116 drivers/char/serial.c static int is_serial(__dev_t dev)
dev               118 drivers/char/serial.c 	if(MAJOR(dev) == SERIAL_MAJOR && ((MINOR(dev) >= (1 << SERIAL_MSF) && MINOR(dev) < (1 << SERIAL_MSF) + SERIAL_MINORS))) {
dev               359 drivers/char/serial.c 	minor = MINOR(tty->dev);
dev               389 drivers/char/serial.c 	minor = MINOR(tty->dev);
dev               182 drivers/char/tty.c int register_tty(__dev_t dev)
dev               187 drivers/char/tty.c 		if(tty_table[n].dev == dev) {
dev               188 drivers/char/tty.c 			printk("ERROR: %s(): tty device %d,%d already registered!\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev               191 drivers/char/tty.c 		if(!tty_table[n].dev) {
dev               192 drivers/char/tty.c 			tty_table[n].dev = dev;
dev               201 drivers/char/tty.c struct tty * get_tty(__dev_t dev)
dev               205 drivers/char/tty.c 	if(!dev) {
dev               210 drivers/char/tty.c 	if(dev == MKDEV(SYSCON_MAJOR, 1)) {
dev               211 drivers/char/tty.c 		dev = (__dev_t)_syscondev;
dev               215 drivers/char/tty.c 	if(dev == MKDEV(VCONSOLES_MAJOR, 0)) {
dev               216 drivers/char/tty.c 		dev = MKDEV(VCONSOLES_MAJOR, current_cons);
dev               220 drivers/char/tty.c 	if(dev == MKDEV(SYSCON_MAJOR, 0)) {
dev               224 drivers/char/tty.c 		dev = current->ctty->dev;
dev               228 drivers/char/tty.c 		if(tty_table[n].dev == dev) {
dev                26 drivers/char/vt.c 	if(MAJOR(tty->dev) != VCONSOLES_MAJOR) {
dev               194 drivers/char/vt.c 			if(current_cons == MINOR(tty->dev) || IS_SUPERUSER) {
dev               205 drivers/char/vt.c 			if(current_cons == MINOR(tty->dev)) {
dev                39 fs/buffer.c    #define BUFFER_HASH(dev, block)	(((__dev_t)(dev) ^ (__blk_t)(block)) % (NR_BUF_HASH))
dev                55 fs/buffer.c    	i = BUFFER_HASH(buf->dev, buf->block);
dev                74 fs/buffer.c    	i = BUFFER_HASH(buf->dev, buf->block);
dev               212 fs/buffer.c    	if(!(d = get_device(BLK_DEV, buf->dev))) {
dev               213 fs/buffer.c    		printk("WARNING: %s(): block device %d,%d not registered!\n", __FUNCTION__, MAJOR(buf->dev), MINOR(buf->dev));
dev               219 fs/buffer.c    		printk("WARNING: %s(): buffer (dev=%x, block=%d, size=%d) don't has data!\n", __FUNCTION__, buf->dev, buf->block, buf->size);
dev               224 fs/buffer.c    		errno = d->fsop->write_block(buf->dev, buf->block, buf->data, buf->size);
dev               227 fs/buffer.c    				printk("WARNING: %s(): write protection on device %d,%d.\n", __FUNCTION__, MAJOR(buf->dev), MINOR(buf->dev), buf->block);
dev               229 fs/buffer.c    				printk("WARNING: %s(): I/O error on device %d,%d.\n", __FUNCTION__, MAJOR(buf->dev), MINOR(buf->dev), buf->block);
dev               235 fs/buffer.c    		printk("WARNING: %s(): device %d,%d does not have the write_block() method!\n", __FUNCTION__, MAJOR(buf->dev), MINOR(buf->dev));
dev               239 fs/buffer.c    static struct buffer * search_buffer_hash(__dev_t dev, __blk_t block, int size)
dev               244 fs/buffer.c    	i = BUFFER_HASH(dev, block);
dev               248 fs/buffer.c    		if(buf->dev == dev && buf->block == block && buf->size == size) {
dev               257 fs/buffer.c    static struct buffer * getblk(__dev_t dev, __blk_t block, int size)
dev               263 fs/buffer.c    		if((buf = search_buffer_hash(dev, block, size))) {
dev               297 fs/buffer.c    		buf->dev = dev;
dev               307 fs/buffer.c    struct buffer * bread(__dev_t dev, __blk_t block, int size)
dev               312 fs/buffer.c    	if(!(d = get_device(BLK_DEV, dev))) {
dev               313 fs/buffer.c    		printk("WARNING: %s(): device major %d not found!\n", __FUNCTION__, MAJOR(dev));
dev               317 fs/buffer.c    	if((buf = getblk(dev, block, size))) {
dev               322 fs/buffer.c    			if(d->fsop->read_block(dev, block, buf->data, size) >= 0) {
dev               361 fs/buffer.c    void sync_buffers(__dev_t dev)
dev               370 fs/buffer.c    		if(!dev || buf->dev == dev) {
dev               381 fs/buffer.c    void invalidate_buffers(__dev_t dev)
dev               391 fs/buffer.c    		if(!(buf->flags & BUFFER_LOCKED) && buf->dev == dev) {
dev               154 fs/devices.c   struct device * get_device(int type, __dev_t dev)
dev               160 fs/devices.c   	major = MAJOR(dev);
dev               186 fs/devices.c   			if(TEST_MINOR(d->minors, MINOR(dev))) {
dev               195 fs/devices.c   	printk("WARNING: %s(): %s device %d,%d not found.\n", __FUNCTION__, name, major, MINOR(dev));
dev               315 fs/elf.c       	if(!(buf = bread(ii->dev, block, ii->sb->s_blocksize))) {
dev                28 fs/ext2/bitmaps.c 	if(!(buf = bread(sb->dev, block, blksize))) {
dev                54 fs/ext2/bitmaps.c 	if(!(buf = bread(sb->dev, block, sb->s_blocksize))) {
dev               106 fs/ext2/bitmaps.c 			if(!(buf = bread(sb->dev, block, sb->s_blocksize))) {
dev               175 fs/ext2/bitmaps.c 	if(!(buf = bread(sb->dev, b + (bg / EXT2_DESC_PER_BLOCK(sb)), sb->s_blocksize))) {
dev               230 fs/ext2/bitmaps.c 			if(!(buf = bread(sb->dev, b, sb->s_blocksize))) {
dev               285 fs/ext2/bitmaps.c 	if(!(buf = bread(sb->dev, b + (bg / EXT2_DESC_PER_BLOCK(sb)), sb->s_blocksize))) {
dev               109 fs/ext2/dir.c  			if(!(buf = bread(i->dev, block, blksize))) {
dev               106 fs/ext2/file.c 		if(!(buf = bread(i->dev, block, blksize))) {
dev                36 fs/ext2/inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
dev                59 fs/ext2/inode.c 	if(!(buf = bread(sb->dev, SUPERBLOCK + sb->u.ext2.sb.s_first_data_block + group_desc_block, sb->s_blocksize))) {
dev                76 fs/ext2/inode.c 	if(!(sb = get_superblock(i->dev))) {
dev                86 fs/ext2/inode.c 	if(!(buf = bread(i->dev, gd.bg_inode_table + block, i->sb->s_blocksize))) {
dev               149 fs/ext2/inode.c 	if(!(sb = get_superblock(i->dev))) {
dev               159 fs/ext2/inode.c 	if(!(buf = bread(i->dev, gd.bg_inode_table + block, i->sb->s_blocksize))) {
dev               219 fs/ext2/inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
dev               237 fs/ext2/inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
dev               249 fs/ext2/inode.c 	if(!(buf = bread(i->dev, i->u.ext2.i_data[level], blksize))) {
dev               270 fs/ext2/inode.c 			if(!(buf2 = bread(i->dev, newblock, blksize))) {
dev               296 fs/ext2/inode.c 		if(!(buf3 = bread(i->dev, indblock[block], blksize))) {
dev               311 fs/ext2/inode.c 				if(!(buf4 = bread(i->dev, newblock, blksize))) {
dev               331 fs/ext2/inode.c 		if(!(buf2 = bread(i->dev, block, blksize))) {
dev               339 fs/ext2/inode.c 		if(!(buf2 = bread(i->dev, indblock[iblock], blksize))) {
dev               358 fs/ext2/inode.c 		if(!(buf4 = bread(i->dev, newblock, blksize))) {
dev               426 fs/ext2/inode.c 		if(!(buf = bread(i->dev, i->u.ext2.i_data[EXT2_DIND_BLOCK], blksize))) {
dev                42 fs/ext2/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dev               106 fs/ext2/namei.c 		if(!(buf = bread(dir->dev, block, dir->sb->s_blocksize))) {
dev               133 fs/ext2/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dev               205 fs/ext2/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dev               395 fs/ext2/namei.c 	i->dev = dir->dev;
dev               407 fs/ext2/namei.c 		if(!(buf2 = bread(dir->dev, block, dir->sb->s_blocksize))) {
dev               483 fs/ext2/namei.c 	i->dev = dir->dev;
dev               493 fs/ext2/namei.c 	if(!(buf2 = bread(i->dev, block, dir->sb->s_blocksize))) {
dev               555 fs/ext2/namei.c int ext2_mknod(struct inode *dir, char *name, __mode_t mode, __dev_t dev)
dev               592 fs/ext2/namei.c 	i->dev = dir->dev;
dev               599 fs/ext2/namei.c 			i->rdev = dev;
dev               605 fs/ext2/namei.c 			i->rdev = dev;
dev               672 fs/ext2/namei.c 	i->dev = dir->dev;
dev                91 fs/ext2/super.c int ext2_read_superblock(__dev_t dev, struct superblock *sb)
dev                97 fs/ext2/super.c 	if(!(buf = bread(dev, SUPERBLOCK, BLKSIZE_1K))) {
dev                98 fs/ext2/super.c 		printk("WARNING: %s(): I/O error on device %d,%d.\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev               105 fs/ext2/super.c 		printk("WARNING: %s(): invalid filesystem type or bad superblock on device %d,%d.\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev               119 fs/ext2/super.c 	sb->dev = dev;
dev               157 fs/ext2/super.c 	if(!(buf = bread(sb->dev, SUPERBLOCK, BLKSIZE_1K))) {
dev               188 fs/ext2/super.c 	if(!(buf = bread(sb->dev, SUPERBLOCK, BLKSIZE_1K))) {
dev                79 fs/ext2/symlink.c 		if(!(buf = bread(i->dev, i->u.ext2.i_data[0], blksize))) {
dev               115 fs/ext2/symlink.c 		if(!(buf = bread(i->dev, i->u.ext2.i_data[0], i->sb->s_blocksize))) {
dev                21 fs/filesystems.c 	__dev_t dev;
dev                34 fs/filesystems.c 				dev = fsop->fsdev;
dev                35 fs/filesystems.c 				return kern_mount(dev, &filesystems_table[n]);
dev                37 fs/inode.c     #define INODE_HASH(dev, inode)	(((__dev_t)(dev) ^ (__ino_t)(inode)) % (NR_INO_HASH))
dev                52 fs/inode.c     	n = INODE_HASH(i->dev, i->inode);
dev                75 fs/inode.c     	n = INODE_HASH(i->dev, i->inode);
dev               156 fs/inode.c     	i->dev = 0;
dev               199 fs/inode.c     static struct inode * search_inode_hash(__dev_t dev, __ino_t inode)
dev               204 fs/inode.c     	n = INODE_HASH(dev, inode);
dev               208 fs/inode.c     		if(i->dev == dev && i->inode == inode) {
dev               251 fs/inode.c     		i->rdev = sb->dev;
dev               267 fs/inode.c     		i->dev = sb->dev;
dev               285 fs/inode.c     		if((i = search_inode_hash(sb->dev, inode))) {
dev               307 fs/inode.c     		i->dev = i->rdev = sb->dev;
dev               329 fs/inode.c     int check_fs_busy(__dev_t dev, struct inode *root)
dev               336 fs/inode.c     		if(i->dev == dev && i->count) {
dev               341 fs/inode.c     			printk("WARNING: root %d with count %d (on dev %d,%d)\n", root->inode, root->count, MAJOR(i->dev), MINOR(i->dev));
dev               342 fs/inode.c     			printk("WARNING: inode %d with count %d (on dev %d,%d)\n", i->inode, i->count, MAJOR(i->dev), MINOR(i->dev));
dev               377 fs/inode.c     			printk("WARNING: %s(): can't write inode %d (%d,%d), will remain as dirty.\n", __FUNCTION__, i->inode, MAJOR(i->dev), MINOR(i->dev));
dev               387 fs/inode.c     void sync_inodes(__dev_t dev)
dev               397 fs/inode.c     			if(!dev || i->dev == dev) {
dev               399 fs/inode.c     					printk("WARNING: %s(): can't write inode %d (%d,%d), will remain as dirty.\n", __FUNCTION__, i->inode, MAJOR(i->dev), MINOR(i->dev));
dev               408 fs/inode.c     void invalidate_inodes(__dev_t dev)
dev               418 fs/inode.c     		if(i->dev == dev) {
dev               105 fs/iso9660/dir.c 			if(!(buf = bread(i->dev, block, blksize))) {
dev                43 fs/iso9660/inode.c 		if(!(buf = bread(i->dev, pt_blk++, BLKSIZE_2K))) {
dev               111 fs/iso9660/inode.c 	if(!(buf = bread(i->dev, dblock, blksize))) {
dev                40 fs/iso9660/namei.c 			if(!(buf = bread(dir->dev, dblock, blksize))) {
dev                46 fs/iso9660/rrip.c 		if(!(buf = bread(i->dev, ce_block, i->sb->s_blocksize))) {
dev               176 fs/iso9660/rrip.c 		if(!(buf = bread(i->dev, ce_block, i->sb->s_blocksize))) {
dev               248 fs/iso9660/rrip.c 	if(!(buf = bread(i->dev, dblock, i->sb->s_blocksize))) {
dev               266 fs/iso9660/rrip.c 		if(!(buf2 = bread(i->dev, ce_block, i->sb->s_blocksize))) {
dev               151 fs/iso9660/super.c int iso9660_read_superblock(__dev_t dev, struct superblock *sb)
dev               164 fs/iso9660/super.c 		if(!(buf = bread(dev, ISO9660_SUPERBLOCK + n, BLKSIZE_2K))) {
dev               180 fs/iso9660/super.c 		printk("WARNING: %s(): invalid filesystem type or bad superblock on device %d,%d.\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev               189 fs/iso9660/super.c 	sb->dev = dev;
dev                31 fs/minix/bitmaps.c 		if(!(buf = bread(sb->dev, offset, blksize))) {
dev                69 fs/minix/bitmaps.c 	if(!(buf = bread(sb->dev, map, sb->s_blocksize))) {
dev               109 fs/minix/dir.c 			if(!(buf = bread(i->dev, block, blksize))) {
dev               106 fs/minix/file.c 		if(!(buf = bread(i->dev, block, blksize))) {
dev                36 fs/minix/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dev                77 fs/minix/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dev               126 fs/minix/namei.c 		if(!(buf = bread(dir->dev, block, dir->sb->s_blocksize))) {
dev               178 fs/minix/namei.c 			if(!(buf = bread(dir->dev, block, blksize))) {
dev               343 fs/minix/namei.c 	i->dev = dir->dev;
dev               362 fs/minix/namei.c 	if(!(buf_new = bread(dir->dev, block, blksize))) {
dev               434 fs/minix/namei.c 	i->dev = dir->dev;
dev               447 fs/minix/namei.c 	if(!(buf_new = bread(i->dev, block, blksize))) {
dev               499 fs/minix/namei.c int minix_mknod(struct inode *dir, char *name, __mode_t mode, __dev_t dev)
dev               535 fs/minix/namei.c 	i->dev = dir->dev;
dev               542 fs/minix/namei.c 			i->rdev = dev;
dev               547 fs/minix/namei.c 			i->rdev = dev;
dev               609 fs/minix/namei.c 	i->dev = dir->dev;
dev                85 fs/minix/super.c int minix_read_superblock(__dev_t dev, struct superblock *sb)
dev                91 fs/minix/super.c 	if(!(buf = bread(dev, SUPERBLOCK, BLKSIZE_1K))) {
dev                92 fs/minix/super.c 		printk("WARNING: %s(): I/O error on device %d,%d.\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev               104 fs/minix/super.c 			printk("minix v1 (14 char names) filesystem detected on device %d,%d.\n", MAJOR(dev), MINOR(dev));
dev               111 fs/minix/super.c 			printk("minix v1 (30 char names) filesystem detected on device %d,%d.\n", MAJOR(dev), MINOR(dev));
dev               118 fs/minix/super.c 			printk("minix v2 (14 char names) filesystem detected on device %d,%d.\n", MAJOR(dev), MINOR(dev));
dev               125 fs/minix/super.c 			printk("minix v2 (30 char names) filesystem detected on device %d,%d.\n", MAJOR(dev), MINOR(dev));
dev               128 fs/minix/super.c 			printk("ERROR: %s(): invalid filesystem type or bad superblock on device %d,%d.\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev               134 fs/minix/super.c 	sb->dev = dev;
dev               210 fs/minix/super.c 	if(!(buf = bread(sb->dev, SUPERBLOCK, BLKSIZE_1K))) {
dev               239 fs/minix/super.c 	if(!(buf = bread(sb->dev, SUPERBLOCK, BLKSIZE_1K))) {
dev                78 fs/minix/symlink.c 		if(!(buf = bread(i->dev, i->u.minix.u.i1_zone[0], blksize))) {
dev                83 fs/minix/symlink.c 		if(!(buf = bread(i->dev, i->u.minix.u.i2_zone[0], blksize))) {
dev               117 fs/minix/symlink.c 		if(!(buf = bread(i->dev, i->u.minix.u.i1_zone[0], i->sb->s_blocksize))) {
dev               122 fs/minix/symlink.c 		if(!(buf = bread(i->dev, i->u.minix.u.i2_zone[0], i->sb->s_blocksize))) {
dev                36 fs/minix/v1_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
dev                60 fs/minix/v1_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
dev               123 fs/minix/v1_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
dev               237 fs/minix/v1_inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
dev               254 fs/minix/v1_inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
dev               265 fs/minix/v1_inode.c 	if(!(buf = bread(i->dev, i->u.minix.u.i1_zone[level], blksize))) {
dev               282 fs/minix/v1_inode.c 			if(!(buf2 = bread(i->dev, newblock, blksize))) {
dev               307 fs/minix/v1_inode.c 	if(!(buf2 = bread(i->dev, indblock[iblock], blksize))) {
dev               321 fs/minix/v1_inode.c 		if(!(buf3 = bread(i->dev, newblock, blksize))) {
dev               380 fs/minix/v1_inode.c 		if(!(buf = bread(i->dev, i->u.minix.u.i1_zone[MINIX_DIND_BLOCK], i->sb->s_blocksize))) {
dev                37 fs/minix/v2_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
dev                61 fs/minix/v2_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
dev               124 fs/minix/v2_inode.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
dev               243 fs/minix/v2_inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
dev               260 fs/minix/v2_inode.c 			if(!(buf = bread(i->dev, newblock, blksize))) {
dev               271 fs/minix/v2_inode.c 	if(!(buf = bread(i->dev, i->u.minix.u.i2_zone[level], blksize))) {
dev               292 fs/minix/v2_inode.c 			if(!(buf2 = bread(i->dev, newblock, blksize))) {
dev               317 fs/minix/v2_inode.c 		if(!(buf3 = bread(i->dev, indblock[block], blksize))) {
dev               332 fs/minix/v2_inode.c 				if(!(buf4 = bread(i->dev, newblock, blksize))) {
dev               351 fs/minix/v2_inode.c 		if(!(buf2 = bread(i->dev, block, blksize))) {
dev               359 fs/minix/v2_inode.c 		if(!(buf2 = bread(i->dev, indblock[iblock], blksize))) {
dev               378 fs/minix/v2_inode.c 		if(!(buf4 = bread(i->dev, newblock, blksize))) {
dev               443 fs/minix/v2_inode.c 		if(!(buf = bread(i->dev, i->u.minix.u.i2_zone[MINIX_DIND_BLOCK], i->sb->s_blocksize))) {
dev                63 fs/pipefs/super.c int pipefs_read_superblock(__dev_t dev, struct superblock *sb)
dev                66 fs/pipefs/super.c 	sb->dev = dev;
dev                83 fs/pipefs/super.c 	i->dev = i->rdev = sb->dev;
dev               209 fs/procfs/data.c 			size += sprintk(buffer + size, "%d %x:%d:%d 0 EOF\n", ff->proc->pid, MAJOR(ff->inode->dev), MINOR(ff->inode->dev), ff->inode->inode);
dev               587 fs/procfs/data.c 				major = MAJOR(vma->inode->dev);
dev               588 fs/procfs/data.c 				minor = MINOR(vma->inode->dev);
dev               614 fs/procfs/data.c 				size += sprintk(buffer + size, "%d 0 %d:%d %s %s %s - %s %s %s\n", n, MAJOR(mount_table[n].dev), MINOR(mount_table[n].dev), "/", mount_table[n].dirname, flag, mount_table[n].fs->name, devname, flag);
dev               699 fs/procfs/data.c 		p->ctty ? p->ctty->dev : 0,
dev                61 fs/procfs/super.c int procfs_read_superblock(__dev_t dev, struct superblock *sb)
dev                64 fs/procfs/super.c 	sb->dev = dev;
dev                54 fs/super.c     struct mount * get_free_mount_point(__dev_t dev)
dev                59 fs/super.c     	if(!dev) {
dev                60 fs/super.c     		printk("%s(): invalid device %d,%d.\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev                65 fs/super.c     		if(mount_table[n].dev == dev) {
dev                66 fs/super.c     			printk("%s(): device %d,%d already mounted.\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev                79 fs/super.c     			mount_table[n].dev = dev; 
dev               108 fs/super.c     				if(mount_table[n].dev == i_target->rdev) {
dev               117 fs/super.c     struct superblock * get_superblock(__dev_t dev)
dev               122 fs/super.c     		if(mount_table[n].used && mount_table[n].dev == dev) {
dev               129 fs/super.c     void sync_superblocks(__dev_t dev)
dev               136 fs/super.c     		if(mount_table[n].used && (!dev || mount_table[n].dev == dev)) {
dev               142 fs/super.c     						printk("WARNING: %s(): I/O error on device %d,%d while syncing superblock.\n", __FUNCTION__, MAJOR(sb->dev), MINOR(sb->dev));
dev               152 fs/super.c     int kern_mount(__dev_t dev, struct filesystems *fs)
dev               156 fs/super.c     	if(!(mt = get_free_mount_point(dev))) {
dev               160 fs/super.c     	if(fs->fsop->read_superblock(dev, &mt->sb)) {
dev               165 fs/super.c     	mt->dev = dev;
dev               207 fs/super.c     	mt->dev = _rootdev;
dev                20 include/fiwix/buffer.h 	__dev_t dev;			/* device number */
dev                27 include/fiwix/filesystems.h 	__dev_t dev;			/* device number */
dev                43 include/fiwix/fs.h #define MAJOR(dev)		(((__dev_t) (dev)) >> 8)
dev                44 include/fiwix/fs.h #define MINOR(dev)		(((__dev_t) (dev)) & 0xFF)
dev                88 include/fiwix/fs.h 	__dev_t		dev;
dev               117 include/fiwix/fs.h 	__dev_t dev;
dev                58 include/fiwix/mm.h 	__dev_t dev;		/* device where file resides */
dev                47 include/fiwix/tty.h 	__dev_t dev;
dev               293 kernel/syscalls/execve.c 	if(!(buf = bread(i->dev, block, i->sb->s_blocksize))) {
dev                32 kernel/syscalls/fstat.c 	statbuf->st_dev = i->dev;
dev                35 kernel/syscalls/fsync.c 	sync_superblocks(i->dev);
dev                36 kernel/syscalls/fsync.c 	sync_inodes(i->dev);
dev                37 kernel/syscalls/fsync.c 	sync_buffers(i->dev);
dev                85 kernel/syscalls/link.c 	if(i->dev != dir_new->dev) {
dev                37 kernel/syscalls/lstat.c 	statbuf->st_dev = i->dev;
dev                19 kernel/syscalls/mknod.c int sys_mknod(const char *pathname, __mode_t mode, __dev_t dev)
dev                26 kernel/syscalls/mknod.c 	printk("(pid %d) sys_mknod('%s', %d, %x)\n", current->pid, pathname, mode, dev);
dev                64 kernel/syscalls/mknod.c 		errno = dir->fsop->mknod(dir, basename, mode, dev);
dev                30 kernel/syscalls/mount.c 	__dev_t dev;
dev                78 kernel/syscalls/mount.c 			dev = mt->dev;
dev                86 kernel/syscalls/mount.c 			sync_superblocks(dev);
dev                87 kernel/syscalls/mount.c 			sync_inodes(dev);
dev                88 kernel/syscalls/mount.c 			sync_buffers(dev);
dev               129 kernel/syscalls/mount.c 	dev = fs->fsop->fsdev;
dev               170 kernel/syscalls/mount.c 		dev = i_source->rdev;
dev               173 kernel/syscalls/mount.c 	if(!(mt = get_free_mount_point(dev))) {
dev               187 kernel/syscalls/mount.c 		if((errno = fs->fsop->read_superblock(dev, &mt->sb))) {
dev               211 kernel/syscalls/mount.c 	mt->dev = dev;
dev                31 kernel/syscalls/newfstat.c 	statbuf->st_dev = i->dev;
dev                37 kernel/syscalls/newlstat.c 	statbuf->st_dev = i->dev;
dev                37 kernel/syscalls/newstat.c 	statbuf->st_dev = i->dev;
dev                62 kernel/syscalls/rename.c 	if(dir->dev != dir_new->dev) {
dev                38 kernel/syscalls/stat.c 	statbuf->st_dev = i->dev;
dev                30 kernel/syscalls/umount2.c 	__dev_t dev;
dev                59 kernel/syscalls/umount2.c 		dev = i_target->rdev;
dev                61 kernel/syscalls/umount2.c 		dev = i_target->sb->dev;
dev                64 kernel/syscalls/umount2.c 	if(!(sb = get_superblock(dev))) {
dev                65 kernel/syscalls/umount2.c 		printk("WARNING: %s(): unable to get superblock from device %d,%d\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev                79 kernel/syscalls/umount2.c 	if(check_fs_busy(dev, sb->root)) {
dev                90 kernel/syscalls/umount2.c 		if(!(d = get_device(BLK_DEV, dev))) {
dev                91 kernel/syscalls/umount2.c 			printk("WARNING: %s(): block device %d,%d not registered!\n", __FUNCTION__, MAJOR(dev), MINOR(dev));
dev                96 kernel/syscalls/umount2.c 		dummy_i.dev = dummy_i.rdev = dev;
dev               106 kernel/syscalls/umount2.c 	sync_superblocks(dev);
dev               107 kernel/syscalls/umount2.c 	sync_inodes(dev);
dev               108 kernel/syscalls/umount2.c 	sync_buffers(dev);
dev               109 kernel/syscalls/umount2.c 	invalidate_buffers(dev);
dev               110 kernel/syscalls/umount2.c 	invalidate_inodes(dev);
dev                21 kernel/syscalls/ustat.c int sys_ustat(__dev_t dev, struct ustat *ubuf)
dev                28 kernel/syscalls/ustat.c 	printk("(pid %d) sys_ustat(%d, 0x%08x)\n", current->pid, dev, (int)ubuf);
dev                33 kernel/syscalls/ustat.c 	if(!(sb = get_superblock(dev))) {
dev                63 mm/mmap.c      			major = MAJOR(vma->inode->dev);
dev                64 mm/mmap.c      			minor = MINOR(vma->inode->dev);
dev               182 mm/page.c      	pg->dev = 0;
dev               197 mm/page.c      		if(pg->inode == inode->inode && pg->offset == offset && pg->dev == inode->dev) {
dev               313 mm/page.c      			if(!(buf = bread(i->dev, block, blksize))) {
dev               329 mm/page.c      		pg->dev = i->dev;