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 | 1096 | drivers/block/hd.c | int target, major; |
major | 1117 | drivers/block/hd.c | major = MAJOR_NR << 8; |
major | 1120 | drivers/block/hd.c | sync_dev(major | start | i); |
major | 1121 | drivers/block/hd.c | invalidate_inodes(major | start | i); |
major | 1122 | drivers/block/hd.c | invalidate_buffers(major | start | i); |
major | 125 | drivers/block/ll_rw_blk.c | int minor,major; |
major | 127 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
major | 129 | drivers/block/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return 0; |
major | 130 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
major | 135 | drivers/block/ll_rw_blk.c | int minor,major; |
major | 137 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
major | 139 | drivers/block/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return; |
major | 140 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
major | 141 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
major | 193 | drivers/block/ll_rw_blk.c | static void make_request(int major,int rw, struct buffer_head * bh) |
major | 216 | drivers/block/ll_rw_blk.c | if (blk_size[major]) |
major | 217 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
major | 243 | drivers/block/ll_rw_blk.c | if ((major == HD_MAJOR |
major | 244 | drivers/block/ll_rw_blk.c | || major == FLOPPY_MAJOR |
major | 245 | drivers/block/ll_rw_blk.c | || major == SCSI_DISK_MAJOR |
major | 246 | drivers/block/ll_rw_blk.c | || major == SCSI_CDROM_MAJOR) |
major | 247 | drivers/block/ll_rw_blk.c | && (req = blk_dev[major].current_request)) |
major | 249 | drivers/block/ll_rw_blk.c | if (major == HD_MAJOR || major == FLOPPY_MAJOR) |
major | 316 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 322 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 325 | drivers/block/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 348 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 358 | drivers/block/ll_rw_blk.c | unsigned int major; |
major | 373 | drivers/block/ll_rw_blk.c | if ((major = MAJOR(bh[0]->b_dev)) < MAX_BLKDEV) |
major | 374 | drivers/block/ll_rw_blk.c | dev = blk_dev + major; |
major | 384 | drivers/block/ll_rw_blk.c | if (blksize_size[major]) { |
major | 385 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
major | 422 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
major | 450 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 453 | drivers/block/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 483 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 1877 | drivers/char/console.c | console_driver.major = TTY_MAJOR; |
major | 220 | drivers/char/pty.c | pty_driver.major = TTY_MAJOR; |
major | 2360 | drivers/char/serial.c | serial_driver.major = TTY_MAJOR; |
major | 2396 | drivers/char/serial.c | callout_driver.major = TTYAUX_MAJOR; |
major | 215 | drivers/char/tty_io.c | int major, minor; |
major | 219 | drivers/char/tty_io.c | major = MAJOR(device); |
major | 222 | drivers/char/tty_io.c | if (p->major != major) |
major | 782 | drivers/char/tty_io.c | o_device = MKDEV(driver->other->major, |
major | 1575 | drivers/char/tty_io.c | error = register_chrdev(driver->major, driver->name, &tty_fops); |
major | 1578 | drivers/char/tty_io.c | else if(driver->major == 0) |
major | 1579 | drivers/char/tty_io.c | driver->major = error; |
major | 1607 | drivers/char/tty_io.c | else if (p->major == driver->major) |
major | 1612 | drivers/char/tty_io.c | retval = unregister_chrdev(driver->major, driver->name); |
major | 289 | drivers/scsi/hosts.h | unsigned char major; |
major | 1127 | drivers/scsi/sd.c | int target, major; |
major | 1147 | drivers/scsi/sd.c | major = MAJOR_NR << 8; |
major | 1150 | drivers/scsi/sd.c | sync_dev(major | start | i); |
major | 1151 | drivers/scsi/sd.c | invalidate_inodes(major | start | i); |
major | 1152 | 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 == 0) { |
major | 68 | fs/devices.c | for (major = MAX_CHRDEV-1; major > 0; major--) { |
major | 69 | fs/devices.c | if (chrdevs[major].fops == fops) |
major | 70 | fs/devices.c | return major; |
major | 72 | fs/devices.c | for (major = MAX_CHRDEV-1; major > 0; major--) { |
major | 73 | fs/devices.c | if (chrdevs[major].fops == NULL) { |
major | 74 | fs/devices.c | chrdevs[major].name = name; |
major | 75 | fs/devices.c | chrdevs[major].fops = fops; |
major | 76 | fs/devices.c | return major; |
major | 81 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 83 | fs/devices.c | if (chrdevs[major].fops && chrdevs[major].fops != fops) |
major | 85 | fs/devices.c | chrdevs[major].name = name; |
major | 86 | fs/devices.c | chrdevs[major].fops = fops; |
major | 90 | fs/devices.c | int register_blkdev(unsigned int major, const char * name, struct file_operations *fops) |
major | 92 | fs/devices.c | if (major == 0) { |
major | 93 | fs/devices.c | for (major = MAX_BLKDEV-1; major > 0; major--) { |
major | 94 | fs/devices.c | if (blkdevs[major].fops == fops) |
major | 95 | fs/devices.c | return major; |
major | 97 | fs/devices.c | for (major = MAX_BLKDEV-1; major > 0; major--) { |
major | 98 | fs/devices.c | if (blkdevs[major].fops == NULL) { |
major | 99 | fs/devices.c | blkdevs[major].name = name; |
major | 100 | fs/devices.c | blkdevs[major].fops = fops; |
major | 101 | fs/devices.c | return major; |
major | 106 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 108 | fs/devices.c | if (blkdevs[major].fops && blkdevs[major].fops != fops) |
major | 110 | fs/devices.c | blkdevs[major].name = name; |
major | 111 | fs/devices.c | blkdevs[major].fops = fops; |
major | 115 | fs/devices.c | int unregister_chrdev(unsigned int major, const char * name) |
major | 117 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 119 | fs/devices.c | if (!chrdevs[major].fops) |
major | 121 | fs/devices.c | if (strcmp(chrdevs[major].name, name)) |
major | 123 | fs/devices.c | chrdevs[major].name = NULL; |
major | 124 | fs/devices.c | chrdevs[major].fops = NULL; |
major | 128 | fs/devices.c | int unregister_blkdev(unsigned int major, const char * name) |
major | 130 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 132 | fs/devices.c | if (!blkdevs[major].fops) |
major | 134 | fs/devices.c | if (strcmp(blkdevs[major].name, name)) |
major | 136 | fs/devices.c | blkdevs[major].name = NULL; |
major | 137 | fs/devices.c | blkdevs[major].fops = NULL; |
major | 390 | include/linux/fs.h | extern int unregister_blkdev(unsigned int major, const char * name); |
major | 396 | 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 | 105 | tools/build.c | major_root = major(sb.st_dev); |
major | 112 | tools/build.c | major_root = major(sb.st_rdev); |