tag | line | file | source code |
major | 85 | drivers/block/genhd.c | dev = ((hd->major) << 8) | current_minor; |
major | 124 | drivers/block/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
major | 166 | drivers/block/genhd.c | int major = dev->major << 8; |
major | 169 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
major | 179 | drivers/block/genhd.c | int major = dev->major << 8; |
major | 190 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
major | 194 | drivers/block/genhd.c | blk_size[dev->major] = dev->sizes; |
major | 1062 | drivers/block/hd.c | int target, major; |
major | 1081 | drivers/block/hd.c | major = MAJOR_NR << 8; |
major | 1084 | drivers/block/hd.c | sync_dev(major | start | i); |
major | 1085 | drivers/block/hd.c | invalidate_inodes(major | start | i); |
major | 1086 | drivers/block/hd.c | invalidate_buffers(major | start | i); |
major | 124 | drivers/block/ll_rw_blk.c | int minor,major; |
major | 126 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
major | 128 | drivers/block/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return 0; |
major | 129 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
major | 134 | drivers/block/ll_rw_blk.c | int minor,major; |
major | 136 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
major | 138 | drivers/block/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return; |
major | 139 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
major | 140 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
major | 178 | drivers/block/ll_rw_blk.c | static void make_request(int major,int rw, struct buffer_head * bh) |
major | 201 | drivers/block/ll_rw_blk.c | if (blk_size[major]) |
major | 202 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
major | 227 | drivers/block/ll_rw_blk.c | if ((major == HD_MAJOR |
major | 228 | drivers/block/ll_rw_blk.c | || major == SCSI_DISK_MAJOR |
major | 229 | drivers/block/ll_rw_blk.c | || major == SCSI_CDROM_MAJOR) |
major | 230 | drivers/block/ll_rw_blk.c | && (req = blk_dev[major].current_request)) |
major | 232 | drivers/block/ll_rw_blk.c | if (major == HD_MAJOR) |
major | 299 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 305 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 308 | drivers/block/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 331 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 341 | drivers/block/ll_rw_blk.c | unsigned int major; |
major | 356 | drivers/block/ll_rw_blk.c | if ((major = MAJOR(bh[0]->b_dev)) < MAX_BLKDEV) |
major | 357 | drivers/block/ll_rw_blk.c | dev = blk_dev + major; |
major | 367 | drivers/block/ll_rw_blk.c | if (blksize_size[major]) { |
major | 368 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
major | 405 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
major | 433 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 436 | drivers/block/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 466 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 1516 | drivers/char/console.c | console_driver.major = TTY_MAJOR; |
major | 195 | drivers/char/pty.c | pty_driver.major = TTY_MAJOR; |
major | 2271 | drivers/char/serial.c | serial_driver.major = TTY_MAJOR; |
major | 2307 | drivers/char/serial.c | callout_driver.major = TTYAUX_MAJOR; |
major | 212 | drivers/char/tty_io.c | int major, minor; |
major | 216 | drivers/char/tty_io.c | major = MAJOR(device); |
major | 219 | drivers/char/tty_io.c | if (p->major != major) |
major | 779 | drivers/char/tty_io.c | o_device = MKDEV(driver->other->major, |
major | 1539 | drivers/char/tty_io.c | (void) register_chrdev(driver->major, driver->name, &tty_fops); |
major | 1056 | drivers/scsi/sd.c | int target, major; |
major | 1076 | drivers/scsi/sd.c | major = MAJOR_NR << 8; |
major | 1079 | drivers/scsi/sd.c | sync_dev(major | start | i); |
major | 1080 | drivers/scsi/sd.c | invalidate_inodes(major | start | i); |
major | 1081 | drivers/scsi/sd.c | invalidate_buffers(major | start | i); |
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 | 350 | include/linux/fs.h | extern int unregister_blkdev(unsigned int major, const char * name); |
major | 356 | 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 | 103 | include/linux/tty_driver.h | short major; /* major device number */ |
major | 104 | tools/build.c | major_root = major(sb.st_dev); |
major | 111 | tools/build.c | major_root = major(sb.st_rdev); |