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 | 123 | drivers/block/ll_rw_blk.c | int minor,major; |
major | 125 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
major | 127 | drivers/block/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return 0; |
major | 128 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
major | 133 | drivers/block/ll_rw_blk.c | int minor,major; |
major | 135 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
major | 137 | drivers/block/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return; |
major | 138 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
major | 139 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
major | 177 | drivers/block/ll_rw_blk.c | static void make_request(int major,int rw, struct buffer_head * bh) |
major | 200 | drivers/block/ll_rw_blk.c | if (blk_size[major]) |
major | 201 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
major | 226 | drivers/block/ll_rw_blk.c | if ((major == HD_MAJOR |
major | 227 | drivers/block/ll_rw_blk.c | || major == SCSI_DISK_MAJOR |
major | 228 | drivers/block/ll_rw_blk.c | || major == SCSI_CDROM_MAJOR) |
major | 229 | drivers/block/ll_rw_blk.c | && (req = blk_dev[major].current_request)) |
major | 231 | drivers/block/ll_rw_blk.c | if (major == HD_MAJOR) |
major | 298 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 304 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 306 | drivers/block/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 330 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 340 | drivers/block/ll_rw_blk.c | unsigned int major; |
major | 355 | drivers/block/ll_rw_blk.c | if ((major = MAJOR(bh[0]->b_dev)) < MAX_BLKDEV) |
major | 356 | drivers/block/ll_rw_blk.c | dev = blk_dev + major; |
major | 366 | drivers/block/ll_rw_blk.c | if (blksize_size[major]) { |
major | 367 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
major | 404 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
major | 428 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 430 | drivers/block/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 461 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 1290 | drivers/char/tty_io.c | int major, minor; |
major | 1294 | drivers/char/tty_io.c | major = MAJOR(inode->i_rdev); |
major | 1296 | drivers/char/tty_io.c | if (major == TTYAUX_MAJOR) { |
major | 1298 | drivers/char/tty_io.c | major = TTY_MAJOR; |
major | 1302 | drivers/char/tty_io.c | } else if (major == TTY_MAJOR) { |
major | 1315 | drivers/char/tty_io.c | filp->f_rdev = (major << 8) | minor; |
major | 931 | drivers/scsi/sd.c | int target, major; |
major | 951 | drivers/scsi/sd.c | major = MAJOR_NR << 8; |
major | 954 | drivers/scsi/sd.c | sync_dev(major | start | i); |
major | 955 | drivers/scsi/sd.c | invalidate_inodes(major | start | i); |
major | 956 | drivers/scsi/sd.c | invalidate_buffers(major | start | i); |
major | 52 | drivers/sound/sb_dsp.c | static int major=1, minor=0; /* DSP version */ |
major | 417 | drivers/sound/sb_dsp.c | if (major == 3) /* SB Pro */ |
major | 437 | drivers/sound/sb_dsp.c | if (major == 3) /* SB Pro */ |
major | 648 | drivers/sound/sb_dsp.c | major = minor = 0; |
major | 655 | drivers/sound/sb_dsp.c | if (major == 0) |
major | 656 | drivers/sound/sb_dsp.c | major = INB (DSP_READ); |
major | 665 | drivers/sound/sb_dsp.c | if (major == 2 || major == 3) |
major | 668 | drivers/sound/sb_dsp.c | if (major == 4) |
major | 671 | drivers/sound/sb_dsp.c | if (major >= 3) |
major | 675 | drivers/sound/sb_dsp.c | if (major >= 3) |
major | 676 | drivers/sound/sb_dsp.c | sb_mixer_init(major); |
major | 680 | drivers/sound/sb_dsp.c | if (major > 3 || (major == 3 && minor > 0)) /* SB Pro2 or later */ |
major | 686 | drivers/sound/sb_dsp.c | if (major >= 3) |
major | 689 | drivers/sound/sb_dsp.c | sprintf (sb_dsp_operations.name, "SoundBlaster Pro %d.%d", major, minor); |
major | 695 | drivers/sound/sb_dsp.c | sprintf (sb_dsp_operations.name, "SoundBlaster %d.%d", major, minor); |
major | 717 | drivers/sound/sb_dsp.c | sb_midi_init(major); |
major | 32 | fs/devices.c | struct file_operations * get_blkfops(unsigned int major) |
major | 34 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 36 | fs/devices.c | return blkdevs[major].fops; |
major | 39 | fs/devices.c | struct file_operations * get_chrfops(unsigned int major) |
major | 41 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 43 | fs/devices.c | return chrdevs[major].fops; |
major | 46 | fs/devices.c | int register_chrdev(unsigned int major, const char * name, struct file_operations *fops) |
major | 48 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 50 | fs/devices.c | if (chrdevs[major].fops) |
major | 52 | fs/devices.c | chrdevs[major].name = name; |
major | 53 | fs/devices.c | chrdevs[major].fops = fops; |
major | 57 | fs/devices.c | int register_blkdev(unsigned int major, const char * name, struct file_operations *fops) |
major | 59 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 61 | fs/devices.c | if (blkdevs[major].fops) |
major | 63 | fs/devices.c | blkdevs[major].name = name; |
major | 64 | fs/devices.c | blkdevs[major].fops = fops; |
major | 68 | fs/devices.c | int unregister_chrdev(unsigned int major, const char * name) |
major | 70 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 72 | fs/devices.c | if (!chrdevs[major].fops) |
major | 74 | fs/devices.c | if (strcmp(chrdevs[major].name, name)) |
major | 76 | fs/devices.c | chrdevs[major].name = NULL; |
major | 77 | fs/devices.c | chrdevs[major].fops = NULL; |
major | 81 | fs/devices.c | int unregister_blkdev(unsigned int major, const char * name) |
major | 83 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 85 | fs/devices.c | if (!blkdevs[major].fops) |
major | 87 | fs/devices.c | if (strcmp(blkdevs[major].name, name)) |
major | 89 | fs/devices.c | blkdevs[major].name = NULL; |
major | 90 | fs/devices.c | blkdevs[major].fops = NULL; |
major | 44 | include/linux/ddi.h | short int major; /* driver major dev number */ |
major | 322 | 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); |