tag | line | file | source code |
dev | 22 | fs/block_dev.c | unsigned int dev; |
dev | 26 | fs/block_dev.c | dev = inode->i_rdev; |
dev | 27 | fs/block_dev.c | if (blk_size[MAJOR(dev)]) |
dev | 28 | fs/block_dev.c | size = blk_size[MAJOR(dev)][MINOR(dev)]; |
dev | 38 | fs/block_dev.c | bh = getblk(dev, block, BLOCK_SIZE); |
dev | 40 | fs/block_dev.c | bh = breada(dev,block,block+1,block+2,-1); |
dev | 65 | fs/block_dev.c | unsigned int dev; |
dev | 70 | fs/block_dev.c | dev = inode->i_rdev; |
dev | 71 | fs/block_dev.c | if (blk_size[MAJOR(dev)]) |
dev | 72 | fs/block_dev.c | size = blk_size[MAJOR(dev)][MINOR(dev)]; |
dev | 81 | fs/block_dev.c | if (!(bh = breada(dev,block,block+1,block+2,-1))) |
dev | 47 | fs/buffer.c | static void sync_buffers(int dev) |
dev | 77 | fs/buffer.c | int sync_dev(int dev) |
dev | 81 | fs/buffer.c | if (sb = get_super (dev)) |
dev | 84 | fs/buffer.c | sync_buffers(dev); |
dev | 86 | fs/buffer.c | sync_buffers(dev); |
dev | 90 | fs/buffer.c | void inline invalidate_buffers(int dev) |
dev | 97 | fs/buffer.c | if (bh->b_dev != dev) |
dev | 100 | fs/buffer.c | if (bh->b_dev == dev) |
dev | 119 | fs/buffer.c | void check_disk_change(int dev) |
dev | 124 | fs/buffer.c | if (MAJOR(dev) != 2) |
dev | 126 | fs/buffer.c | if (!(bh = getblk(dev,0,1024))) |
dev | 133 | fs/buffer.c | if (super_block[i].s_dev == dev) |
dev | 135 | fs/buffer.c | invalidate_inodes(dev); |
dev | 136 | fs/buffer.c | invalidate_buffers(dev); |
dev | 139 | fs/buffer.c | #define _hashfn(dev,block) (((unsigned)(dev^block))%NR_HASH) |
dev | 140 | fs/buffer.c | #define hash(dev,block) hash_table[_hashfn(dev,block)] |
dev | 217 | fs/buffer.c | static struct buffer_head * find_buffer(int dev, int block, int size) |
dev | 221 | fs/buffer.c | for (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next) |
dev | 222 | fs/buffer.c | if (tmp->b_dev==dev && tmp->b_blocknr==block) |
dev | 226 | fs/buffer.c | printk("wrong block-size on device %04x\n",dev); |
dev | 239 | fs/buffer.c | struct buffer_head * get_hash_table(int dev, int block, int size) |
dev | 244 | fs/buffer.c | if (!(bh=find_buffer(dev,block,size))) |
dev | 248 | fs/buffer.c | if (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size) { |
dev | 267 | fs/buffer.c | struct buffer_head * getblk(int dev, int block, int size) |
dev | 273 | fs/buffer.c | if (bh = get_hash_table(dev, block, size)) |
dev | 315 | fs/buffer.c | if (find_buffer(dev,block,size)) |
dev | 323 | fs/buffer.c | bh->b_dev=dev; |
dev | 343 | fs/buffer.c | struct buffer_head * bread(int dev, int block, int size) |
dev | 347 | fs/buffer.c | if (!(bh = getblk(dev, block, size))) { |
dev | 374 | fs/buffer.c | void bread_page(unsigned long address,int dev,int b[4]) |
dev | 381 | fs/buffer.c | if (bh[i] = getblk(dev, b[i], 1024)) |
dev | 400 | fs/buffer.c | struct buffer_head * breada(int dev,int first, ...) |
dev | 406 | fs/buffer.c | if (!(bh = getblk(dev, first, 1024))) { |
dev | 413 | fs/buffer.c | tmp = getblk(dev, first, 1024); |
dev | 85 | fs/ext/bitmap.c | int ext_free_block(int dev, int block) |
dev | 91 | fs/ext/bitmap.c | if (!(sb = get_super(dev))) |
dev | 95 | fs/ext/bitmap.c | bh = get_hash_table(dev,block); |
dev | 111 | fs/ext/bitmap.c | printk("free_block (%04x:%d): bit already cleared\n",dev,block); |
dev | 116 | fs/ext/bitmap.c | int ext_new_block(int dev) |
dev | 122 | fs/ext/bitmap.c | if (!(sb = get_super(dev))) |
dev | 137 | fs/ext/bitmap.c | if (!(bh=getblk(dev,j))) |
dev | 193 | fs/ext/bitmap.c | struct inode * ext_new_inode(int dev) |
dev | 201 | fs/ext/bitmap.c | if (!(inode->i_sb = get_super(dev))) { |
dev | 224 | fs/ext/bitmap.c | inode->i_dev = dev; |
dev | 49 | fs/ext/freelists.c | int ext_free_block(int dev, int block) |
dev | 55 | fs/ext/freelists.c | if (!(sb = get_super(dev))) |
dev | 60 | fs/ext/freelists.c | bh = get_hash_table(dev, block, sb->s_blocksize); |
dev | 80 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_zmap[1] = bread (dev, block, sb->s_blocksize))) |
dev | 96 | fs/ext/freelists.c | int ext_new_block(int dev) |
dev | 103 | fs/ext/freelists.c | if (!(sb = get_super(dev))) |
dev | 122 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_zmap[1] = bread (dev, (unsigned long) sb->u.ext_sb.s_zmap[0], sb->s_blocksize))) |
dev | 133 | fs/ext/freelists.c | if (!(bh=getblk(dev, j, sb->s_blocksize))) |
dev | 241 | fs/ext/freelists.c | struct inode * ext_new_inode(int dev) |
dev | 250 | fs/ext/freelists.c | if (!(inode->i_sb = get_super(dev))) { |
dev | 279 | fs/ext/freelists.c | if (!(inode->i_sb->u.ext_sb.s_imap[1] = bread (dev, block, inode->i_sb->s_blocksize))) |
dev | 287 | fs/ext/freelists.c | inode->i_dev = dev; |
dev | 23 | fs/ext/inode.c | int sync_dev(int dev); |
dev | 69 | fs/ext/inode.c | int dev = s->s_dev,block; |
dev | 75 | fs/ext/inode.c | if (!(bh = bread(dev, 1, BLOCK_SIZE))) { |
dev | 115 | fs/ext/inode.c | if (s->u.ext_sb.s_imap[i]=bread(dev, block, BLOCK_SIZE)) |
dev | 120 | fs/ext/inode.c | if (s->u.ext_sb.s_zmap[i]=bread(dev, block, BLOCK_SIZE)) |
dev | 141 | fs/ext/inode.c | if (!(s->u.ext_sb.s_zmap[1] = bread(dev, (unsigned long) s->u.ext_sb.s_zmap[0], BLOCK_SIZE))) { |
dev | 151 | fs/ext/inode.c | if (!(s->u.ext_sb.s_imap[1] = bread(dev, block, BLOCK_SIZE))) { |
dev | 163 | fs/ext/inode.c | s->s_dev = dev; |
dev | 165 | fs/ext/inode.c | if (!(s->s_mounted = iget(dev,EXT_ROOT_INO))) { |
dev | 77 | fs/inode.c | void invalidate_inodes(int dev) |
dev | 85 | fs/inode.c | if (inode->i_dev == dev) { |
dev | 202 | fs/inode.c | struct inode * iget(int dev,int nr) |
dev | 206 | fs/inode.c | if (!dev) |
dev | 211 | fs/inode.c | if (inode->i_dev != dev || inode->i_ino != nr) { |
dev | 216 | fs/inode.c | if (inode->i_dev != dev || inode->i_ino != nr) { |
dev | 248 | fs/inode.c | if (!(inode->i_sb = get_super(dev))) { |
dev | 253 | fs/inode.c | inode->i_dev = dev; |
dev | 76 | fs/minix/bitmap.c | int minix_free_block(int dev, int block) |
dev | 82 | fs/minix/bitmap.c | if (!(sb = get_super(dev))) |
dev | 86 | fs/minix/bitmap.c | bh = get_hash_table(dev,block,BLOCK_SIZE); |
dev | 102 | fs/minix/bitmap.c | printk("free_block (%04x:%d): bit already cleared\n",dev,block); |
dev | 107 | fs/minix/bitmap.c | int minix_new_block(int dev) |
dev | 113 | fs/minix/bitmap.c | if (!(sb = get_super(dev))) |
dev | 128 | fs/minix/bitmap.c | if (!(bh=getblk(dev,j,BLOCK_SIZE))) |
dev | 181 | fs/minix/bitmap.c | struct inode * minix_new_inode(int dev) |
dev | 189 | fs/minix/bitmap.c | if (!(inode->i_sb = get_super(dev))) { |
dev | 212 | fs/minix/bitmap.c | inode->i_dev = dev; |
dev | 17 | fs/minix/inode.c | int sync_dev(int dev); |
dev | 53 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
dev | 56 | fs/minix/inode.c | if (!(bh = bread(dev,1,BLOCK_SIZE))) { |
dev | 85 | fs/minix/inode.c | if (s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) |
dev | 90 | fs/minix/inode.c | if (s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) |
dev | 108 | fs/minix/inode.c | s->s_dev = dev; |
dev | 110 | fs/minix/inode.c | if (!(s->s_mounted = iget(dev,MINIX_ROOT_INO))) { |
dev | 289 | fs/namei.c | int do_mknod(const char * filename, int mode, int dev) |
dev | 313 | fs/namei.c | return dir->i_op->mknod(dir,basename,namelen,mode,dev); |
dev | 316 | fs/namei.c | int sys_mknod(const char * filename, int mode, int dev) |
dev | 319 | fs/namei.c | return do_mknod(filename,mode,dev); |
dev | 28 | fs/open.c | int sys_ustat(int dev, struct ustat * ubuf) |
dev | 22 | fs/super.c | int sync_dev(int dev); |
dev | 79 | fs/super.c | struct super_block * get_super(int dev) |
dev | 83 | fs/super.c | if (!dev) |
dev | 87 | fs/super.c | if (s->s_dev == dev) { |
dev | 89 | fs/super.c | if (s->s_dev == dev) |
dev | 97 | fs/super.c | void put_super(int dev) |
dev | 101 | fs/super.c | if (dev == ROOT_DEV) { |
dev | 105 | fs/super.c | if (!(sb = get_super(dev))) |
dev | 115 | fs/super.c | static struct super_block * read_super(int dev,char *name,int flags,void *data) |
dev | 120 | fs/super.c | if (!dev) |
dev | 122 | fs/super.c | check_disk_change(dev); |
dev | 123 | fs/super.c | if (s = get_super(dev)) |
dev | 135 | fs/super.c | s->s_dev = dev; |
dev | 139 | fs/super.c | s->s_dev = dev; |
dev | 146 | fs/super.c | static int do_umount(int dev) |
dev | 151 | fs/super.c | if (dev==ROOT_DEV) |
dev | 153 | fs/super.c | if (!(sb=get_super(dev)) || !(sb->s_covered)) |
dev | 158 | fs/super.c | if (inode->i_dev==dev && inode->i_count) |
dev | 170 | fs/super.c | put_super(dev); |
dev | 177 | fs/super.c | int dev,retval; |
dev | 183 | fs/super.c | dev = inode->i_rdev; |
dev | 188 | fs/super.c | retval = do_umount(dev); |
dev | 189 | fs/super.c | if (!retval && MAJOR(dev) < MAX_BLKDEV && |
dev | 190 | fs/super.c | blkdev_fops[MAJOR(dev)]->release) |
dev | 191 | fs/super.c | blkdev_fops[MAJOR(dev)]->release(inode,NULL); |
dev | 194 | fs/super.c | sync_dev(dev); |
dev | 207 | fs/super.c | static int do_mount(int dev, const char * dir, char * type, int flags, void * data) |
dev | 223 | fs/super.c | if (inode->i_dev != dev) |
dev | 231 | fs/super.c | sb = read_super(dev,type,flags,data); |
dev | 258 | fs/super.c | int dev; |
dev | 269 | fs/super.c | dev = inode->i_rdev; |
dev | 274 | fs/super.c | if (!retval && blkdev_fops[MAJOR(dev)]->open) |
dev | 275 | fs/super.c | retval = blkdev_fops[MAJOR(dev)]->open(inode,NULL); |
dev | 298 | fs/super.c | retval = do_mount(dev,dir_name,t,flags,(void *) page); |
dev | 300 | fs/super.c | if (retval && blkdev_fops[MAJOR(dev)]->release) |
dev | 301 | fs/super.c | blkdev_fops[MAJOR(dev)]->release(inode,NULL); |
dev | 95 | include/linux/ext_fs.h | extern struct inode * ext_new_inode(int dev); |
dev | 98 | include/linux/ext_fs.h | extern int ext_new_block(int dev); |
dev | 99 | include/linux/ext_fs.h | extern int ext_free_block(int dev, int block); |
dev | 233 | include/linux/fs.h | extern void check_disk_change(int dev); |
dev | 234 | include/linux/fs.h | extern void invalidate_inodes(int dev); |
dev | 236 | include/linux/fs.h | extern int ticks_to_floppy_on(unsigned int dev); |
dev | 237 | include/linux/fs.h | extern void floppy_on(unsigned int dev); |
dev | 238 | include/linux/fs.h | extern void floppy_off(unsigned int dev); |
dev | 249 | include/linux/fs.h | extern int do_mknod(const char * filename, int mode, int dev); |
dev | 251 | include/linux/fs.h | extern struct inode * iget(int dev,int nr); |
dev | 255 | include/linux/fs.h | extern struct buffer_head * get_hash_table(int dev, int block, int size); |
dev | 256 | include/linux/fs.h | extern struct buffer_head * getblk(int dev, int block, int size); |
dev | 258 | include/linux/fs.h | extern void ll_rw_page(int rw, int dev, int nr, char * buffer); |
dev | 259 | include/linux/fs.h | extern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer); |
dev | 261 | include/linux/fs.h | extern struct buffer_head * bread(int dev, int block, int size); |
dev | 262 | include/linux/fs.h | extern void bread_page(unsigned long addr,int dev,int b[4]); |
dev | 263 | include/linux/fs.h | extern struct buffer_head * breada(int dev,int block,...); |
dev | 264 | include/linux/fs.h | extern int sync_dev(int dev); |
dev | 265 | include/linux/fs.h | extern struct super_block * get_super(int dev); |
dev | 266 | include/linux/fs.h | extern void put_super(int dev); |
dev | 62 | include/linux/minix_fs.h | extern struct inode * minix_new_inode(int dev); |
dev | 65 | include/linux/minix_fs.h | extern int minix_new_block(int dev); |
dev | 66 | include/linux/minix_fs.h | extern int minix_free_block(int dev, int block); |
dev | 99 | include/linux/msdos_fs.h | static inline struct buffer_head *msdos_sread(int dev,int sector,void **start) |
dev | 103 | include/linux/msdos_fs.h | if (!(bh = bread(dev,sector >> 1, 1024))) |
dev | 253 | include/linux/tty.h | extern int pty_open(unsigned int dev, struct file * filp); |
dev | 254 | include/linux/tty.h | extern void pty_close(unsigned int dev, struct file * filp); |
dev | 24 | kernel/blk_drv/blk.h | int dev; /* -1 if no request */ |
dev | 44 | kernel/blk_drv/blk.h | ((s1)->dev < (s2)->dev || (((s1)->dev == (s2)->dev && \ |
dev | 72 | kernel/blk_drv/blk.h | extern int is_read_only(int dev); |
dev | 73 | kernel/blk_drv/blk.h | extern void set_device_ro(int dev,int flag); |
dev | 75 | kernel/blk_drv/blk.h | #define RO_IOCTLS(dev,where) \ |
dev | 77 | kernel/blk_drv/blk.h | set_device_ro((dev),get_fs_long((long *) (where))); return 0; \ |
dev | 79 | kernel/blk_drv/blk.h | put_fs_long(is_read_only(dev),(long *) (where)); return 0; |
dev | 145 | kernel/blk_drv/blk.h | #define CURRENT_DEV DEVICE_NR(CURRENT->dev) |
dev | 189 | kernel/blk_drv/blk.h | printk("dev %04x, sector %d\n\r",req->dev,req->sector); |
dev | 211 | kernel/blk_drv/blk.h | DEVICE_OFF(req->dev); |
dev | 214 | kernel/blk_drv/blk.h | req->dev = -1; |
dev | 229 | kernel/blk_drv/blk.h | if (MAJOR(CURRENT->dev) != MAJOR_NR) \ |
dev | 216 | kernel/blk_drv/floppy.c | (CURRENT->dev)) |
dev | 558 | kernel/blk_drv/floppy.c | int drive = MINOR(CURRENT->dev); |
dev | 911 | kernel/blk_drv/floppy.c | if (MAJOR(CURRENT->dev) != MAJOR_NR) |
dev | 32 | kernel/blk_drv/genhd.c | static void extended_partition(struct gendisk *hd, int dev) |
dev | 39 | kernel/blk_drv/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
dev | 45 | kernel/blk_drv/genhd.c | if (!(bh = bread(dev,0,1024))) { |
dev | 46 | kernel/blk_drv/genhd.c | printk("Unable to read partition table of device %04x\n",dev); |
dev | 84 | kernel/blk_drv/genhd.c | dev = ((hd->major) << 8) | current_minor; |
dev | 93 | kernel/blk_drv/genhd.c | static void check_partition(struct gendisk *hd, unsigned int dev) |
dev | 100 | kernel/blk_drv/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
dev | 102 | kernel/blk_drv/genhd.c | if (!(bh = bread(dev,0,1024))) { |
dev | 103 | kernel/blk_drv/genhd.c | printk("Unable to read partition table of device %04x\n",dev); |
dev | 145 | kernel/blk_drv/genhd.c | printk("Bad partition table on dev %04x\n",dev); |
dev | 149 | kernel/blk_drv/genhd.c | static void setup_dev(struct gendisk *dev) |
dev | 152 | kernel/blk_drv/genhd.c | int j = dev->max_nr * dev->max_p; |
dev | 153 | kernel/blk_drv/genhd.c | int major = dev->major << 8; |
dev | 158 | kernel/blk_drv/genhd.c | dev->part[i].start_sect = 0; |
dev | 159 | kernel/blk_drv/genhd.c | dev->part[i].nr_sects = 0; |
dev | 161 | kernel/blk_drv/genhd.c | dev->init(); |
dev | 162 | kernel/blk_drv/genhd.c | for (drive=0 ; drive<dev->nr_real ; drive++) { |
dev | 163 | kernel/blk_drv/genhd.c | current_minor = 1+(drive<<dev->minor_shift); |
dev | 164 | kernel/blk_drv/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
dev | 167 | kernel/blk_drv/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
dev | 168 | kernel/blk_drv/genhd.c | blk_size[dev->major] = dev->sizes; |
dev | 274 | kernel/blk_drv/hd.c | MINOR(CURRENT->dev), CURRENT->sector, i, CURRENT-> |
dev | 380 | kernel/blk_drv/hd.c | unsigned int block,dev; |
dev | 389 | kernel/blk_drv/hd.c | dev = MINOR(CURRENT->dev); |
dev | 392 | kernel/blk_drv/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects) { |
dev | 395 | kernel/blk_drv/hd.c | block, hd[dev].nr_sects); |
dev | 400 | kernel/blk_drv/hd.c | block += hd[dev].start_sect; |
dev | 401 | kernel/blk_drv/hd.c | dev >>= 6; |
dev | 402 | kernel/blk_drv/hd.c | sec = block % hd_info[dev].sect; |
dev | 403 | kernel/blk_drv/hd.c | block /= hd_info[dev].sect; |
dev | 404 | kernel/blk_drv/hd.c | head = block % hd_info[dev].head; |
dev | 405 | kernel/blk_drv/hd.c | cyl = block / hd_info[dev].head; |
dev | 409 | kernel/blk_drv/hd.c | dev, cyl, head, sec, CURRENT->buffer); |
dev | 420 | kernel/blk_drv/hd.c | hd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr); |
dev | 427 | kernel/blk_drv/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr); |
dev | 438 | kernel/blk_drv/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_READ,&read_intr); |
dev | 450 | kernel/blk_drv/hd.c | int dev; |
dev | 454 | kernel/blk_drv/hd.c | dev = MINOR(inode->i_rdev) >> 6; |
dev | 455 | kernel/blk_drv/hd.c | if (dev >= NR_HD) |
dev | 460 | kernel/blk_drv/hd.c | put_fs_byte(hd_info[dev].head, |
dev | 462 | kernel/blk_drv/hd.c | put_fs_byte(hd_info[dev].sect, |
dev | 464 | kernel/blk_drv/hd.c | put_fs_word(hd_info[dev].cyl, |
dev | 79 | kernel/blk_drv/ll_rw_blk.c | int is_read_only(int dev) |
dev | 83 | kernel/blk_drv/ll_rw_blk.c | major = MAJOR(dev); |
dev | 84 | kernel/blk_drv/ll_rw_blk.c | minor = MINOR(dev); |
dev | 89 | kernel/blk_drv/ll_rw_blk.c | void set_device_ro(int dev,int flag) |
dev | 93 | kernel/blk_drv/ll_rw_blk.c | major = MAJOR(dev); |
dev | 94 | kernel/blk_drv/ll_rw_blk.c | minor = MINOR(dev); |
dev | 108 | kernel/blk_drv/ll_rw_blk.c | static void add_request(struct blk_dev_struct * dev, struct request * req) |
dev | 116 | kernel/blk_drv/ll_rw_blk.c | if (!(tmp = dev->current_request)) { |
dev | 117 | kernel/blk_drv/ll_rw_blk.c | dev->current_request = req; |
dev | 118 | kernel/blk_drv/ll_rw_blk.c | (dev->request_fn)(); |
dev | 174 | kernel/blk_drv/ll_rw_blk.c | if (req->dev == bh->b_dev && |
dev | 198 | kernel/blk_drv/ll_rw_blk.c | if (req->dev < 0) |
dev | 212 | kernel/blk_drv/ll_rw_blk.c | req->dev = bh->b_dev; |
dev | 226 | kernel/blk_drv/ll_rw_blk.c | void ll_rw_page(int rw, int dev, int page, char * buffer) |
dev | 229 | kernel/blk_drv/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
dev | 232 | kernel/blk_drv/ll_rw_blk.c | printk("Trying to read nonexistent block-device %04x (%d)\n",dev,page*8); |
dev | 237 | kernel/blk_drv/ll_rw_blk.c | if (rw == WRITE && is_read_only(dev)) { |
dev | 238 | kernel/blk_drv/ll_rw_blk.c | printk("Can't page to read-only device 0x%X\n\r",dev); |
dev | 245 | kernel/blk_drv/ll_rw_blk.c | if (req->dev<0) |
dev | 253 | kernel/blk_drv/ll_rw_blk.c | req->dev = dev; |
dev | 298 | kernel/blk_drv/ll_rw_blk.c | request[i].dev = -1; |
dev | 308 | kernel/blk_drv/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
dev | 312 | kernel/blk_drv/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
dev | 323 | kernel/blk_drv/ll_rw_blk.c | if (rw == WRITE && is_read_only(dev)) { |
dev | 324 | kernel/blk_drv/ll_rw_blk.c | printk("Can't swap to read-only device 0x%X\n\r",dev); |
dev | 333 | kernel/blk_drv/ll_rw_blk.c | if (req->dev<0) |
dev | 340 | kernel/blk_drv/ll_rw_blk.c | req->dev = dev; |
dev | 34 | kernel/blk_drv/ramdisk.c | if ((MINOR(CURRENT->dev) != 1) || (addr+len > rd_start+rd_length)) { |
dev | 127 | kernel/blk_drv/scsi/scsi.c | int host_nr , dev, lun, type, maxed, slave; |
dev | 137 | kernel/blk_drv/scsi/scsi.c | for (dev = 0; dev < 7; ++dev) |
dev | 138 | kernel/blk_drv/scsi/scsi.c | if (scsi_hosts[host_nr].this_id != dev) |
dev | 160 | kernel/blk_drv/scsi/scsi.c | scsi_do_cmd (host_nr, dev, (void *) scsi_cmd, (void *) |
dev | 175 | kernel/blk_drv/scsi/scsi.c | id = dev; |
dev | 210 | kernel/blk_drv/scsi/scsi.c | printk("Detected scsi tape at host %d, ID %d, lun %d \n", host_nr, dev, lun); |
dev | 219 | kernel/blk_drv/scsi/scsi.c | printk("Detected scsi disk at host %d, ID %d, lun %d \n", host_nr, dev, lun); |
dev | 232 | kernel/blk_drv/scsi/scsi.c | dev, lun); |
dev | 262 | kernel/blk_drv/scsi/scsi.c | ,host_nr , dev, lun, p); |
dev | 30 | kernel/blk_drv/scsi/scsi_ioctl.c | static int ioctl_probe(int dev, void *buffer) |
dev | 35 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((temp = scsi_hosts[dev].present) && buffer) { |
dev | 37 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_tofs (buffer, scsi_hosts[dev].info(), len); |
dev | 73 | kernel/blk_drv/scsi/scsi_ioctl.c | static int ioctl_command(Scsi_Device *dev, void *buffer) |
dev | 92 | kernel/blk_drv/scsi/scsi_ioctl.c | host = dev->host_no; |
dev | 108 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(host, dev->id, cmd, buf, ((outlen > MAX_BUF) ? |
dev | 121 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("scsi_ioctl : device %d. command = ", dev->id); |
dev | 142 | kernel/blk_drv/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
dev | 144 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((cmd != 0 && dev->id > NR_SCSI_DEVICES)) |
dev | 146 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((cmd == 0 && dev->host_no > MAX_SCSI_HOSTS)) |
dev | 151 | kernel/blk_drv/scsi/scsi_ioctl.c | return ioctl_probe(dev->host_no, arg); |
dev | 153 | kernel/blk_drv/scsi/scsi_ioctl.c | return ioctl_command((Scsi_Device *) dev, arg); |
dev | 102 | kernel/blk_drv/scsi/sd.c | printk("sd%d : rw_intr(%d, %x)\n", MINOR(CURRENT->dev), host, result); |
dev | 115 | kernel/blk_drv/scsi/sd.c | printk("sd%d : %d sectors remain.\n", MINOR(CURRENT->dev), CURRENT->nr_sectors); |
dev | 132 | kernel/blk_drv/scsi/sd.c | MINOR(CURRENT->dev)); |
dev | 144 | kernel/blk_drv/scsi/sd.c | printk("sd%d : handling linked buffer request\n", MINOR(CURRENT->dev)); |
dev | 174 | kernel/blk_drv/scsi/sd.c | if rscsi_disks[DEVICE_NR(CURRENT->dev)].remap |
dev | 191 | kernel/blk_drv/scsi/sd.c | if (rscsi_disks[DEVICE_NR(CURRENT->dev)].ten) { |
dev | 192 | kernel/blk_drv/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->dev)].ten = 0; |
dev | 201 | kernel/blk_drv/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->dev)].device->host_no, |
dev | 202 | kernel/blk_drv/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->dev)].device->id, |
dev | 203 | kernel/blk_drv/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->dev)].device->lun); |
dev | 223 | kernel/blk_drv/scsi/sd.c | int dev, block; |
dev | 228 | kernel/blk_drv/scsi/sd.c | dev = MINOR(CURRENT->dev); |
dev | 232 | kernel/blk_drv/scsi/sd.c | printk("Doing sd request, dev = %d, block = %d\n", dev, block); |
dev | 235 | kernel/blk_drv/scsi/sd.c | if (dev >= (NR_SD << 4) || block + CURRENT->nr_sectors > sd[dev].nr_sects) |
dev | 241 | kernel/blk_drv/scsi/sd.c | block += sd[dev].start_sect; |
dev | 242 | kernel/blk_drv/scsi/sd.c | dev = DEVICE_NR(dev); |
dev | 245 | kernel/blk_drv/scsi/sd.c | printk("sd%d : real dev = /dev/sd%d, block = %d\n", MINOR(CURRENT->dev), dev, block); |
dev | 255 | kernel/blk_drv/scsi/sd.c | printk("sd%d : %s %d/%d 512 byte blocks.\n", MINOR(CURRENT->dev), |
dev | 263 | kernel/blk_drv/scsi/sd.c | if (!rscsi_disks[dev].device->writeable) |
dev | 280 | kernel/blk_drv/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
dev | 47 | kernel/blk_drv/scsi/sd.h | #define HOST (rscsi_disks[DEVICE_NR(CURRENT->dev)].device->host_no) |
dev | 48 | kernel/blk_drv/scsi/sd.h | #define ID (rscsi_disks[DEVICE_NR(CURRENT->dev)].device->id) |
dev | 49 | kernel/blk_drv/scsi/sd.h | #define LUN (rscsi_disks[DEVICE_NR(CURRENT->dev)].device->lun) |
dev | 9 | kernel/blk_drv/scsi/sd_ioctl.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
dev | 13 | kernel/blk_drv/scsi/sd_ioctl.c | int dev = inode->i_rdev; |
dev | 17 | kernel/blk_drv/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device, cmd, (void *) arg); |
dev | 8 | kernel/blk_drv/scsi/st_ioctl.c | extern int scsi_ioctl(Scsi_Device *dev, int cmd, void *arg); |
dev | 12 | kernel/blk_drv/scsi/st_ioctl.c | int dev = inode->i_rdev; |
dev | 16 | kernel/blk_drv/scsi/st_ioctl.c | return scsi_ioctl(scsi_tapes[MINOR(dev)].device, cmd, (void *) arg); |
dev | 23 | kernel/chr_drv/pty.c | int pty_open(unsigned int dev, struct file * filp) |
dev | 27 | kernel/chr_drv/pty.c | tty = tty_table + dev; |
dev | 40 | kernel/chr_drv/pty.c | void pty_close(unsigned int dev, struct file * filp) |
dev | 44 | kernel/chr_drv/pty.c | tty = tty_table + dev; |
dev | 47 | kernel/chr_drv/pty.c | if (IS_A_PTY_MASTER(dev)) { |
dev | 505 | kernel/chr_drv/tty_io.c | int dev, retval; |
dev | 507 | kernel/chr_drv/tty_io.c | dev = inode->i_rdev; |
dev | 508 | kernel/chr_drv/tty_io.c | if (MAJOR(dev) == 5) |
dev | 509 | kernel/chr_drv/tty_io.c | dev = current->tty; |
dev | 511 | kernel/chr_drv/tty_io.c | dev = MINOR(dev); |
dev | 512 | kernel/chr_drv/tty_io.c | if (dev < 0) |
dev | 514 | kernel/chr_drv/tty_io.c | filp->f_rdev = 0x0400 | dev; |
dev | 515 | kernel/chr_drv/tty_io.c | tty = TTY_TABLE(dev); |
dev | 521 | kernel/chr_drv/tty_io.c | if (IS_A_PTY_MASTER(dev)) { |
dev | 533 | kernel/chr_drv/tty_io.c | current->tty = dev; |
dev | 537 | kernel/chr_drv/tty_io.c | if (IS_A_SERIAL(dev) && tty->count < 2) |
dev | 538 | kernel/chr_drv/tty_io.c | retval = serial_open(dev-64,filp); |
dev | 539 | kernel/chr_drv/tty_io.c | else if (IS_A_PTY(dev)) |
dev | 540 | kernel/chr_drv/tty_io.c | retval = pty_open(dev,filp); |
dev | 543 | kernel/chr_drv/tty_io.c | if (IS_A_PTY_MASTER(dev) && tty->link) |
dev | 556 | kernel/chr_drv/tty_io.c | int dev; |
dev | 559 | kernel/chr_drv/tty_io.c | dev = filp->f_rdev; |
dev | 560 | kernel/chr_drv/tty_io.c | if (MAJOR(dev) != 4) { |
dev | 564 | kernel/chr_drv/tty_io.c | dev = MINOR(filp->f_rdev); |
dev | 565 | kernel/chr_drv/tty_io.c | tty = TTY_TABLE(dev); |
dev | 566 | kernel/chr_drv/tty_io.c | if (IS_A_PTY_MASTER(dev) && tty->link) |
dev | 571 | kernel/chr_drv/tty_io.c | if (IS_A_SERIAL(dev)) { |
dev | 573 | kernel/chr_drv/tty_io.c | serial_close(dev-64,filp); |
dev | 574 | kernel/chr_drv/tty_io.c | } else if (IS_A_PTY(dev)) |
dev | 575 | kernel/chr_drv/tty_io.c | pty_close(dev,filp); |
dev | 585 | kernel/chr_drv/tty_io.c | int dev; |
dev | 588 | kernel/chr_drv/tty_io.c | dev = filp->f_rdev; |
dev | 589 | kernel/chr_drv/tty_io.c | if (MAJOR(dev) != 4) { |
dev | 593 | kernel/chr_drv/tty_io.c | dev = MINOR(filp->f_rdev); |
dev | 594 | kernel/chr_drv/tty_io.c | tty = TTY_TABLE(dev); |
dev | 22 | kernel/chr_drv/tty_ioctl.c | extern int vt_ioctl(struct tty_struct *tty, int dev, int cmd, int arg); |
dev | 235 | kernel/chr_drv/tty_ioctl.c | int dev; |
dev | 241 | kernel/chr_drv/tty_ioctl.c | dev = MINOR(file->f_rdev); |
dev | 242 | kernel/chr_drv/tty_ioctl.c | tty = tty_table + (dev ? ((dev < 64)? dev-1:dev) : fg_console); |
dev | 244 | kernel/chr_drv/tty_ioctl.c | if (IS_A_PTY(dev)) |
dev | 245 | kernel/chr_drv/tty_ioctl.c | other_tty = tty_table + PTY_OTHER(dev); |
dev | 261 | kernel/chr_drv/tty_ioctl.c | return set_termios(tty,(struct termios *) arg, dev); |
dev | 270 | kernel/chr_drv/tty_ioctl.c | return set_termio(tty,(struct termio *) arg, dev); |
dev | 272 | kernel/chr_drv/tty_ioctl.c | if (!IS_A_SERIAL(dev)) |
dev | 276 | kernel/chr_drv/tty_ioctl.c | send_break(dev-64); |
dev | 321 | kernel/chr_drv/tty_ioctl.c | (current->tty != dev) || |
dev | 348 | kernel/chr_drv/tty_ioctl.c | if (IS_A_PTY_MASTER(dev)) |
dev | 374 | kernel/chr_drv/tty_ioctl.c | if (!IS_A_PTY(dev)) |
dev | 380 | kernel/chr_drv/tty_ioctl.c | if (IS_A_PTY_MASTER(dev)) |
dev | 386 | kernel/chr_drv/tty_ioctl.c | if (!IS_A_SERIAL(dev)) |
dev | 389 | kernel/chr_drv/tty_ioctl.c | return get_serial_info(dev-64,(struct serial_struct *) arg); |
dev | 391 | kernel/chr_drv/tty_ioctl.c | if (!IS_A_SERIAL(dev)) |
dev | 393 | kernel/chr_drv/tty_ioctl.c | return set_serial_info(dev-64,(struct serial_struct *) arg); |
dev | 412 | kernel/chr_drv/tty_ioctl.c | return vt_ioctl(tty, dev, cmd, arg); |
dev | 70 | kernel/chr_drv/vt.c | vt_ioctl(struct tty_struct *tty, int dev, int cmd, int arg) |
dev | 72 | kernel/chr_drv/vt.c | int console = dev ? dev - 1 : fg_console; |
dev | 75 | kernel/chr_drv/vt.c | if (!IS_A_CONSOLE(dev) || console < 0 || console >= NR_CONSOLES) |