tag | line | file | source code |
major | 84 | drivers/block/genhd.c | dev = ((hd->major) << 8) | current_minor; |
major | 123 | drivers/block/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
major | 165 | drivers/block/genhd.c | int major = dev->major << 8; |
major | 168 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
major | 178 | drivers/block/genhd.c | int major = dev->major << 8; |
major | 189 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
major | 193 | drivers/block/genhd.c | blk_size[dev->major] = dev->sizes; |
major | 763 | drivers/block/hd.c | int target, major; |
major | 782 | drivers/block/hd.c | major = MAJOR_NR << 8; |
major | 785 | drivers/block/hd.c | sync_dev(major | start | i); |
major | 786 | drivers/block/hd.c | invalidate_inodes(major | start | i); |
major | 787 | drivers/block/hd.c | invalidate_buffers(major | start | i); |
major | 128 | drivers/block/ll_rw_blk.c | int minor,major; |
major | 130 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
major | 132 | drivers/block/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return 0; |
major | 133 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
major | 138 | drivers/block/ll_rw_blk.c | int minor,major; |
major | 140 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
major | 142 | drivers/block/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return; |
major | 143 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
major | 144 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
major | 182 | drivers/block/ll_rw_blk.c | static void make_request(int major,int rw, struct buffer_head * bh) |
major | 205 | drivers/block/ll_rw_blk.c | if (blk_size[major]) |
major | 206 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
major | 231 | drivers/block/ll_rw_blk.c | if ((major == HD_MAJOR |
major | 232 | drivers/block/ll_rw_blk.c | || major == SCSI_DISK_MAJOR |
major | 233 | drivers/block/ll_rw_blk.c | || major == SCSI_CDROM_MAJOR) |
major | 234 | drivers/block/ll_rw_blk.c | && (req = blk_dev[major].current_request)) |
major | 236 | drivers/block/ll_rw_blk.c | if (major == HD_MAJOR) |
major | 303 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 309 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 311 | drivers/block/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 335 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 345 | drivers/block/ll_rw_blk.c | unsigned int major; |
major | 360 | drivers/block/ll_rw_blk.c | if ((major = MAJOR(bh[0]->b_dev)) < MAX_BLKDEV) |
major | 361 | drivers/block/ll_rw_blk.c | dev = blk_dev + major; |
major | 371 | drivers/block/ll_rw_blk.c | if (blksize_size[major]) { |
major | 372 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
major | 409 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
major | 437 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 439 | drivers/block/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 470 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 1466 | drivers/char/tty_io.c | int major, minor; |
major | 1471 | drivers/char/tty_io.c | major = MAJOR(inode->i_rdev); |
major | 1473 | drivers/char/tty_io.c | if (major == TTYAUX_MAJOR) { |
major | 1475 | drivers/char/tty_io.c | major = TTY_MAJOR; |
major | 1479 | drivers/char/tty_io.c | } else if (major == TTY_MAJOR) { |
major | 1492 | drivers/char/tty_io.c | filp->f_rdev = (major << 8) | minor; |
major | 1052 | drivers/scsi/sd.c | int target, major; |
major | 1072 | drivers/scsi/sd.c | major = MAJOR_NR << 8; |
major | 1075 | drivers/scsi/sd.c | sync_dev(major | start | i); |
major | 1076 | drivers/scsi/sd.c | invalidate_inodes(major | start | i); |
major | 1077 | drivers/scsi/sd.c | invalidate_buffers(major | start | i); |
major | 494 | drivers/sound/sb16_dsp.c | int i, major, minor; |
major | 496 | drivers/sound/sb16_dsp.c | major = minor = 0; |
major | 502 | drivers/sound/sb16_dsp.c | if (major == 0) |
major | 503 | drivers/sound/sb16_dsp.c | major = INB (DSP_READ); |
major | 513 | drivers/sound/sb16_dsp.c | sprintf (sb16_dsp_operations.name, "SoundBlaster 16 %d.%d", major, minor); |
major | 52 | drivers/sound/sb_dsp.c | static int major=1, minor=0; /* DSP version */ |
major | 421 | drivers/sound/sb_dsp.c | if (major == 3) /* SB Pro */ |
major | 441 | drivers/sound/sb_dsp.c | if (major == 3) /* SB Pro */ |
major | 654 | drivers/sound/sb_dsp.c | major = minor = 0; |
major | 661 | drivers/sound/sb_dsp.c | if (major == 0) |
major | 662 | drivers/sound/sb_dsp.c | major = INB (DSP_READ); |
major | 671 | drivers/sound/sb_dsp.c | if (major == 2 || major == 3) |
major | 674 | drivers/sound/sb_dsp.c | if (major == 4) |
major | 677 | drivers/sound/sb_dsp.c | if (major >= 3) |
major | 681 | drivers/sound/sb_dsp.c | if (major >= 3) |
major | 682 | drivers/sound/sb_dsp.c | sb_mixer_init(major); |
major | 686 | drivers/sound/sb_dsp.c | if (major > 3 || (major == 3 && minor > 0)) /* SB Pro2 or later */ |
major | 692 | drivers/sound/sb_dsp.c | if (major >= 3) |
major | 695 | drivers/sound/sb_dsp.c | sprintf (sb_dsp_operations.name, "SoundBlaster Pro %d.%d", major, minor); |
major | 701 | drivers/sound/sb_dsp.c | sprintf (sb_dsp_operations.name, "SoundBlaster %d.%d", major, minor); |
major | 726 | drivers/sound/sb_dsp.c | sb_midi_init(major); |
major | 51 | fs/devices.c | struct file_operations * get_blkfops(unsigned int major) |
major | 53 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 55 | fs/devices.c | return blkdevs[major].fops; |
major | 58 | fs/devices.c | struct file_operations * get_chrfops(unsigned int major) |
major | 60 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 62 | fs/devices.c | return chrdevs[major].fops; |
major | 65 | fs/devices.c | int register_chrdev(unsigned int major, const char * name, struct file_operations *fops) |
major | 67 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 69 | fs/devices.c | if (chrdevs[major].fops) |
major | 71 | fs/devices.c | chrdevs[major].name = name; |
major | 72 | fs/devices.c | chrdevs[major].fops = fops; |
major | 76 | fs/devices.c | int register_blkdev(unsigned int major, const char * name, struct file_operations *fops) |
major | 78 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 80 | fs/devices.c | if (blkdevs[major].fops) |
major | 82 | fs/devices.c | blkdevs[major].name = name; |
major | 83 | fs/devices.c | blkdevs[major].fops = fops; |
major | 87 | fs/devices.c | int unregister_chrdev(unsigned int major, const char * name) |
major | 89 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 91 | fs/devices.c | if (!chrdevs[major].fops) |
major | 93 | fs/devices.c | if (strcmp(chrdevs[major].name, name)) |
major | 95 | fs/devices.c | chrdevs[major].name = NULL; |
major | 96 | fs/devices.c | chrdevs[major].fops = NULL; |
major | 100 | fs/devices.c | int unregister_blkdev(unsigned int major, const char * name) |
major | 102 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 104 | fs/devices.c | if (!blkdevs[major].fops) |
major | 106 | fs/devices.c | if (strcmp(blkdevs[major].name, name)) |
major | 108 | fs/devices.c | blkdevs[major].name = NULL; |
major | 109 | fs/devices.c | blkdevs[major].fops = NULL; |
major | 44 | include/linux/ddi.h | short int major; /* driver major dev number */ |
major | 330 | include/linux/fs.h | extern int unregister_blkdev(unsigned int major, const char * name); |
major | 336 | include/linux/fs.h | extern int unregister_chrdev(unsigned int major, const char * name); |
major | 33 | include/linux/genhd.h | int major; /* major number of driver */ |
major | 102 | tools/build.c | major_root = major(sb.st_dev); |
major | 109 | tools/build.c | major_root = major(sb.st_rdev); |