tag | line | file | source code |
major | 115 | arch/i386/boot/tools/build.c | major_root = major(sb.st_dev); |
major | 122 | arch/i386/boot/tools/build.c | major_root = major(sb.st_rdev); |
major | 79 | drivers/block/genhd.c | switch (hd->major) { |
major | 204 | drivers/block/genhd.c | dev = MKDEV(hd->major, current_minor); |
major | 325 | drivers/block/genhd.c | extended_partition(hd, MKDEV(hd->major, minor)); |
major | 548 | drivers/block/genhd.c | blk_size[dev->major] = NULL; |
major | 550 | drivers/block/genhd.c | check_partition(dev, MKDEV(dev->major, first_minor)); |
major | 559 | drivers/block/genhd.c | blk_size[dev->major] = dev->sizes; |
major | 568 | drivers/block/genhd.c | blk_size[dev->major] = NULL; |
major | 577 | drivers/block/genhd.c | check_partition(dev, MKDEV(dev->major, first_minor)); |
major | 582 | drivers/block/genhd.c | blk_size[dev->major] = dev->sizes; |
major | 2669 | drivers/block/ide-cd.c | blksize_size[HWIF(drive)->major][drive->select.b.unit << PARTN_BITS] = CD_FRAMESIZE; |
major | 594 | drivers/block/ide-tape.c | int major,minor; |
major | 1162 | drivers/block/ide-tape.c | idetape_chrdev.major=IDETAPE_MAJOR; |
major | 1184 | drivers/block/ide-tape.c | int major,minor; |
major | 1191 | drivers/block/ide-tape.c | major=idetape_chrdev.major; |
major | 1194 | drivers/block/ide-tape.c | if (register_chrdev (major,idetape_chrdev.name,&idetape_fops)) { |
major | 1200 | drivers/block/ide-tape.c | drive->name,idetape_chrdev.name,major); |
major | 1272 | drivers/block/ide-tape.c | unregister_chrdev (idetape_chrdev.major,idetape_chrdev.name); |
major | 1825 | drivers/block/ide-tape.c | unsigned int major = HWIF(drive)->major; |
major | 1827 | drivers/block/ide-tape.c | struct blk_dev_struct *bdev = &blk_dev[major]; |
major | 2825 | drivers/block/ide-tape.c | unsigned int major = HWIF(drive)->major; |
major | 2826 | drivers/block/ide-tape.c | struct blk_dev_struct *bdev = &blk_dev[major]; |
major | 2893 | drivers/block/ide-tape.c | unsigned int major = HWIF(drive)->major; |
major | 2894 | drivers/block/ide-tape.c | struct blk_dev_struct *bdev = &blk_dev[major]; |
major | 3119 | drivers/block/ide-tape.c | unsigned int major = HWIF(drive)->major; |
major | 3120 | drivers/block/ide-tape.c | struct blk_dev_struct *bdev = &blk_dev[major]; |
major | 334 | drivers/block/ide.c | hwif->major = ide_hwif_to_major[h]; |
major | 543 | drivers/block/ide.c | blksize_size[hwif->major] = bs; |
major | 550 | drivers/block/ide.c | gd->major = hwif->major; /* our major device number */ |
major | 1313 | drivers/block/ide.c | if (MAJOR(rq->rq_dev) != hwif->major || unit >= MAX_DRIVES) { |
major | 1422 | drivers/block/ide.c | rq = blk_dev[hwif->major].current_request; |
major | 1600 | drivers/block/ide.c | int major = MAJOR(i_rdev); |
major | 1605 | drivers/block/ide.c | if (hwif->present && major == hwif->major) { |
major | 1611 | drivers/block/ide.c | } else if (major == IDE0_MAJOR && unit < 4) { |
major | 1672 | drivers/block/ide.c | unsigned int major = HWIF(drive)->major; |
major | 1674 | drivers/block/ide.c | struct blk_dev_struct *bdev = &blk_dev[major]; |
major | 1679 | drivers/block/ide.c | rq->rq_dev = MKDEV(major,(drive->select.b.unit)<<PARTN_BITS); |
major | 1793 | drivers/block/ide.c | unsigned int p, major, minor; |
major | 1799 | drivers/block/ide.c | major = MAJOR(i_rdev); |
major | 1812 | drivers/block/ide.c | kdev_t devp = MKDEV(major, minor+p); |
major | 3045 | drivers/block/ide.c | switch (hwif->major) { |
major | 3060 | drivers/block/ide.c | if (register_blkdev (hwif->major, hwif->name, &ide_fops)) { |
major | 3061 | drivers/block/ide.c | printk("%s: UNABLE TO GET MAJOR NUMBER %d\n", hwif->name, hwif->major); |
major | 3064 | drivers/block/ide.c | (void) unregister_blkdev (hwif->major, hwif->name); |
major | 3067 | drivers/block/ide.c | blk_dev[hwif->major].request_fn = rfn; |
major | 3068 | drivers/block/ide.c | read_ahead[hwif->major] = 8; /* (4kB) */ |
major | 3115 | drivers/block/ide.c | revalidate_disk(MKDEV(hwif->major, i<<PARTN_BITS)); |
major | 3136 | drivers/block/ide.c | unregister_blkdev(hwif->major, hwif->name); |
major | 3137 | drivers/block/ide.c | kfree(blksize_size[hwif->major]); |
major | 3138 | drivers/block/ide.c | blk_dev[hwif->major].request_fn = NULL; |
major | 3139 | drivers/block/ide.c | blksize_size[hwif->major] = NULL; |
major | 409 | drivers/block/ide.h | byte major; /* our major number */ |
major | 189 | drivers/block/ll_rw_blk.c | int minor,major; |
major | 191 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
major | 193 | drivers/block/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return 0; |
major | 194 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
major | 199 | drivers/block/ll_rw_blk.c | int minor,major; |
major | 201 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
major | 203 | drivers/block/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return; |
major | 204 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
major | 205 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
major | 285 | drivers/block/ll_rw_blk.c | static void make_request(int major,int rw, struct buffer_head * bh) |
major | 293 | drivers/block/ll_rw_blk.c | if (blk_size[major]) |
major | 294 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
major | 298 | drivers/block/ll_rw_blk.c | rw, (sector + count)>>1, blk_size[major][MINOR(bh->b_dev)]); |
major | 350 | drivers/block/ll_rw_blk.c | if (( major == IDE0_MAJOR /* same as HD_MAJOR */ |
major | 351 | drivers/block/ll_rw_blk.c | || major == IDE1_MAJOR |
major | 352 | drivers/block/ll_rw_blk.c | || major == MD_MAJOR |
major | 353 | drivers/block/ll_rw_blk.c | || major == FLOPPY_MAJOR |
major | 354 | drivers/block/ll_rw_blk.c | || major == SCSI_DISK_MAJOR |
major | 355 | drivers/block/ll_rw_blk.c | || major == SCSI_CDROM_MAJOR |
major | 356 | drivers/block/ll_rw_blk.c | || major == IDE2_MAJOR |
major | 357 | drivers/block/ll_rw_blk.c | || major == IDE3_MAJOR) |
major | 358 | drivers/block/ll_rw_blk.c | && (req = blk_dev[major].current_request)) |
major | 360 | drivers/block/ll_rw_blk.c | if (major != SCSI_DISK_MAJOR && |
major | 361 | drivers/block/ll_rw_blk.c | major != SCSI_CDROM_MAJOR && |
major | 362 | drivers/block/ll_rw_blk.c | major != MD_MAJOR) |
major | 429 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 448 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 451 | drivers/block/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 481 | drivers/block/ll_rw_blk.c | unsigned int major; |
major | 495 | drivers/block/ll_rw_blk.c | if ((major = MAJOR(bh[0]->b_dev)) < MAX_BLKDEV) |
major | 496 | drivers/block/ll_rw_blk.c | dev = blk_dev + major; |
major | 506 | drivers/block/ll_rw_blk.c | if (blksize_size[major]) { |
major | 507 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
major | 543 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
major | 564 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 567 | drivers/block/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 608 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req[j]); |
major | 82 | drivers/block/md.c | if (tmp->major==MAJOR(dev)) |
major | 436 | drivers/block/md.c | int i, j, max_req, major=0, rw, found; |
major | 453 | drivers/block/md.c | major=MAJOR(dev=pending[i].rq_dev); |
major | 457 | drivers/block/md.c | if (( major == IDE0_MAJOR /* same as HD_MAJOR */ |
major | 458 | drivers/block/md.c | || major == IDE1_MAJOR |
major | 459 | drivers/block/md.c | || major == SCSI_DISK_MAJOR |
major | 460 | drivers/block/md.c | || major == IDE2_MAJOR |
major | 461 | drivers/block/md.c | || major == IDE3_MAJOR) |
major | 462 | drivers/block/md.c | && (req = blk_dev[major].current_request)) |
major | 468 | drivers/block/md.c | if (major != SCSI_DISK_MAJOR) |
major | 1440 | drivers/cdrom/sjcd.c | unsigned char major, minor; |
major | 1516 | drivers/cdrom/sjcd.c | printk( " %1x.%02x\n", ( int )sjcd_version.major, |
major | 1999 | drivers/char/console.c | console_driver.major = TTY_MAJOR; |
major | 2782 | drivers/char/cyclades.c | cy_serial_driver.major = CYCLADES_MAJOR; |
major | 2817 | drivers/char/cyclades.c | cy_callout_driver.major = CYCLADESAUX_MAJOR; |
major | 4531 | drivers/char/istallion.c | stli_serial.major = STL_SERIALMAJOR; |
major | 4561 | drivers/char/istallion.c | stli_callout.major = STL_CALLOUTMAJOR; |
major | 223 | drivers/char/pty.c | pty_driver.major = PTY_MASTER_MAJOR; |
major | 251 | drivers/char/pty.c | pty_slave_driver.major = PTY_SLAVE_MAJOR; |
major | 261 | drivers/char/pty.c | old_pty_driver.major = TTY_MAJOR; |
major | 267 | drivers/char/pty.c | old_pty_slave_driver.major = TTY_MAJOR; |
major | 279 | drivers/char/random.c | void rand_initialize_blkdev(int major, int mode) |
major | 283 | drivers/char/random.c | if (major >= MAX_BLKDEV || blkdev_timer_state[major]) |
major | 292 | drivers/char/random.c | blkdev_timer_state[major] = state; |
major | 438 | drivers/char/random.c | void add_blkdev_randomness(int major) |
major | 440 | drivers/char/random.c | if (major >= MAX_BLKDEV) |
major | 443 | drivers/char/random.c | if (blkdev_timer_state[major] == 0) { |
major | 444 | drivers/char/random.c | rand_initialize_blkdev(major, GFP_ATOMIC); |
major | 445 | drivers/char/random.c | if (blkdev_timer_state[major] == 0) |
major | 449 | drivers/char/random.c | add_timer_randomness(&random_state, blkdev_timer_state[major], |
major | 450 | drivers/char/random.c | 0x200+major); |
major | 2674 | drivers/char/scc.c | scc_driver.major = Z8530_MAJOR; |
major | 2692 | drivers/char/serial.c | serial_driver.major = TTY_MAJOR; |
major | 2728 | drivers/char/serial.c | callout_driver.major = TTYAUX_MAJOR; |
major | 3159 | drivers/char/stallion.c | stl_serial.major = STL_SERIALMAJOR; |
major | 3189 | drivers/char/stallion.c | stl_callout.major = STL_CALLOUTMAJOR; |
major | 274 | drivers/char/tty_io.c | int major, minor; |
major | 278 | drivers/char/tty_io.c | major = MAJOR(device); |
major | 281 | drivers/char/tty_io.c | if (p->major != major) |
major | 863 | drivers/char/tty_io.c | o_device = MKDEV(driver->other->major, |
major | 1731 | drivers/char/tty_io.c | error = register_chrdev(driver->major, driver->name, &tty_fops); |
major | 1734 | drivers/char/tty_io.c | else if(driver->major == 0) |
major | 1735 | drivers/char/tty_io.c | driver->major = error; |
major | 1763 | drivers/char/tty_io.c | else if (p->major == driver->major) |
major | 1768 | drivers/char/tty_io.c | retval = unregister_chrdev(driver->major, driver->name); |
major | 1772 | drivers/char/tty_io.c | register_chrdev(driver->major, othername, &tty_fops); |
major | 1137 | drivers/isdn/isdn_tty.c | m->tty_modem.major = ISDN_TTY_MAJOR; |
major | 1170 | drivers/isdn/isdn_tty.c | m->cua_modem.major = ISDN_TTYAUX_MAJOR; |
major | 349 | drivers/scsi/hosts.h | unsigned char major; |
major | 61 | fs/devices.c | unsigned int major, |
major | 67 | fs/devices.c | if (major < maxdev){ |
major | 79 | fs/devices.c | if (!tb[major].fops && major != 0) { |
major | 81 | fs/devices.c | sprintf(name, mangle, major); |
major | 85 | fs/devices.c | ret = tb[major].fops; |
major | 95 | fs/devices.c | struct file_operations * get_blkfops(unsigned int major) |
major | 97 | fs/devices.c | return get_fops (major,MAX_BLKDEV,"block-major-%d",blkdevs); |
major | 100 | fs/devices.c | struct file_operations * get_chrfops(unsigned int major) |
major | 102 | fs/devices.c | return get_fops (major,MAX_CHRDEV,"char-major-%d",chrdevs); |
major | 105 | fs/devices.c | int register_chrdev(unsigned int major, const char * name, struct file_operations *fops) |
major | 107 | fs/devices.c | if (major == 0) { |
major | 108 | fs/devices.c | for (major = MAX_CHRDEV-1; major > 0; major--) { |
major | 109 | fs/devices.c | if (chrdevs[major].fops == NULL) { |
major | 110 | fs/devices.c | chrdevs[major].name = name; |
major | 111 | fs/devices.c | chrdevs[major].fops = fops; |
major | 112 | fs/devices.c | return major; |
major | 117 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 119 | fs/devices.c | if (chrdevs[major].fops && chrdevs[major].fops != fops) |
major | 121 | fs/devices.c | chrdevs[major].name = name; |
major | 122 | fs/devices.c | chrdevs[major].fops = fops; |
major | 126 | fs/devices.c | int register_blkdev(unsigned int major, const char * name, struct file_operations *fops) |
major | 128 | fs/devices.c | if (major == 0) { |
major | 129 | fs/devices.c | for (major = MAX_BLKDEV-1; major > 0; major--) { |
major | 130 | fs/devices.c | if (blkdevs[major].fops == NULL) { |
major | 131 | fs/devices.c | blkdevs[major].name = name; |
major | 132 | fs/devices.c | blkdevs[major].fops = fops; |
major | 133 | fs/devices.c | return major; |
major | 138 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 140 | fs/devices.c | if (blkdevs[major].fops && blkdevs[major].fops != fops) |
major | 142 | fs/devices.c | blkdevs[major].name = name; |
major | 143 | fs/devices.c | blkdevs[major].fops = fops; |
major | 147 | fs/devices.c | int unregister_chrdev(unsigned int major, const char * name) |
major | 149 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 151 | fs/devices.c | if (!chrdevs[major].fops) |
major | 153 | fs/devices.c | if (strcmp(chrdevs[major].name, name)) |
major | 155 | fs/devices.c | chrdevs[major].name = NULL; |
major | 156 | fs/devices.c | chrdevs[major].fops = NULL; |
major | 160 | fs/devices.c | int unregister_blkdev(unsigned int major, const char * name) |
major | 162 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 164 | fs/devices.c | if (!blkdevs[major].fops) |
major | 166 | fs/devices.c | if (strcmp(blkdevs[major].name, name)) |
major | 168 | fs/devices.c | blkdevs[major].name = NULL; |
major | 169 | fs/devices.c | blkdevs[major].fops = NULL; |
major | 44 | fs/super.c | extern struct file_operations * get_blkfops(unsigned int major); |
major | 90 | include/linux/blk.h | void add_blkdev_randomness(int major); |
major | 482 | include/linux/fs.h | extern int unregister_blkdev(unsigned int major, const char * name); |
major | 488 | include/linux/fs.h | extern int unregister_chrdev(unsigned int major, const char * name); |
major | 51 | include/linux/genhd.h | int major; /* major number of driver */ |
major | 89 | include/linux/kdev_t.h | int major, minor; |
major | 91 | include/linux/kdev_t.h | major = (dev >> 16); |
major | 92 | include/linux/kdev_t.h | if (!major) { |
major | 93 | include/linux/kdev_t.h | major = (dev >> 8); |
major | 98 | include/linux/kdev_t.h | major = (dev >> 8); |
major | 101 | include/linux/kdev_t.h | return MKDEV(major, minor); |
major | 35 | include/linux/random.h | extern void add_blkdev_randomness(int major); |
major | 103 | include/linux/tty_driver.h | short major; /* major device number */ |