tag | line | file | source code |
major | 26 | fs/devices.c | int register_chrdev(unsigned int major, const char * name, struct file_operations *fops) |
major | 28 | fs/devices.c | if (major >= MAX_CHRDEV) |
major | 30 | fs/devices.c | if (chrdev_fops[major]) |
major | 32 | fs/devices.c | chrdev_fops[major] = fops; |
major | 36 | fs/devices.c | int register_blkdev(unsigned int major, const char * name, struct file_operations *fops) |
major | 38 | fs/devices.c | if (major >= MAX_BLKDEV) |
major | 40 | fs/devices.c | if (blkdev_fops[major]) |
major | 42 | fs/devices.c | blkdev_fops[major] = fops; |
major | 33 | include/linux/genhd.h | int major; /* major number of driver */ |
major | 84 | kernel/blk_drv/genhd.c | dev = ((hd->major) << 8) | current_minor; |
major | 123 | kernel/blk_drv/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
major | 165 | kernel/blk_drv/genhd.c | int major = dev->major << 8; |
major | 168 | kernel/blk_drv/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
major | 178 | kernel/blk_drv/genhd.c | int major = dev->major << 8; |
major | 189 | kernel/blk_drv/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
major | 193 | kernel/blk_drv/genhd.c | blk_size[dev->major] = dev->sizes; |
major | 738 | kernel/blk_drv/hd.c | int target, major; |
major | 757 | kernel/blk_drv/hd.c | major = MAJOR_NR << 8; |
major | 760 | kernel/blk_drv/hd.c | sync_dev(major | start | i); |
major | 761 | kernel/blk_drv/hd.c | invalidate_inodes(major | start | i); |
major | 762 | kernel/blk_drv/hd.c | invalidate_buffers(major | start | i); |
major | 68 | kernel/blk_drv/ll_rw_blk.c | int minor,major; |
major | 70 | kernel/blk_drv/ll_rw_blk.c | major = MAJOR(dev); |
major | 72 | kernel/blk_drv/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return 0; |
major | 73 | kernel/blk_drv/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
major | 78 | kernel/blk_drv/ll_rw_blk.c | int minor,major; |
major | 80 | kernel/blk_drv/ll_rw_blk.c | major = MAJOR(dev); |
major | 82 | kernel/blk_drv/ll_rw_blk.c | if (major < 0 || major >= MAX_BLKDEV) return; |
major | 83 | kernel/blk_drv/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
major | 84 | kernel/blk_drv/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
major | 124 | kernel/blk_drv/ll_rw_blk.c | static void make_request(int major,int rw, struct buffer_head * bh) |
major | 147 | kernel/blk_drv/ll_rw_blk.c | if (blk_size[major]) |
major | 148 | kernel/blk_drv/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
major | 163 | kernel/blk_drv/ll_rw_blk.c | if ((major == 3 || major == 8 || major == 11)&& (req = blk_dev[major].current_request)) { |
major | 164 | kernel/blk_drv/ll_rw_blk.c | if(major == 3) req = req->next; |
major | 217 | kernel/blk_drv/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 223 | kernel/blk_drv/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 225 | kernel/blk_drv/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 258 | kernel/blk_drv/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 268 | kernel/blk_drv/ll_rw_blk.c | unsigned int major; |
major | 292 | kernel/blk_drv/ll_rw_blk.c | if ((major=MAJOR(bh[0]->b_dev)) >= MAX_BLKDEV || |
major | 293 | kernel/blk_drv/ll_rw_blk.c | !(blk_dev[major].request_fn)) { |
major | 311 | kernel/blk_drv/ll_rw_blk.c | if (!blk_dev[major].current_request && nr > 1) { |
major | 312 | kernel/blk_drv/ll_rw_blk.c | blk_dev[major].current_request = &plug; |
major | 319 | kernel/blk_drv/ll_rw_blk.c | if (bh[i]) make_request(major, rw, bh[i]); |
major | 322 | kernel/blk_drv/ll_rw_blk.c | blk_dev[major].current_request = plug.next; |
major | 323 | kernel/blk_drv/ll_rw_blk.c | dev = major+blk_dev; |
major | 333 | kernel/blk_drv/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
major | 335 | kernel/blk_drv/ll_rw_blk.c | if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) { |
major | 372 | kernel/blk_drv/ll_rw_blk.c | add_request(major+blk_dev,req); |
major | 867 | kernel/blk_drv/scsi/sd.c | int target, major; |
major | 887 | kernel/blk_drv/scsi/sd.c | major = MAJOR_NR << 8; |
major | 890 | kernel/blk_drv/scsi/sd.c | sync_dev(major | start | i); |
major | 891 | kernel/blk_drv/scsi/sd.c | invalidate_inodes(major | start | i); |
major | 892 | kernel/blk_drv/scsi/sd.c | invalidate_buffers(major | start | i); |
major | 1184 | kernel/chr_drv/tty_io.c | int major, minor; |
major | 1188 | kernel/chr_drv/tty_io.c | major = MAJOR(inode->i_rdev); |
major | 1190 | kernel/chr_drv/tty_io.c | if (major == 5) { |
major | 1192 | kernel/chr_drv/tty_io.c | major = 4; |
major | 1196 | kernel/chr_drv/tty_io.c | } else if (major == 4) { |
major | 1209 | kernel/chr_drv/tty_io.c | filp->f_rdev = (major << 8) | minor; |
major | 102 | tools/build.c | major_root = major(sb.st_dev); |
major | 109 | tools/build.c | major_root = major(sb.st_rdev); |