tag | line | file | source code |
MAJOR_NR | 2651 | drivers/block/floppy.c | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) |
MAJOR_NR | 3594 | drivers/block/floppy.c | if (MAJOR(dev) != MAJOR_NR) { |
MAJOR_NR | 3913 | drivers/block/floppy.c | if (register_blkdev(MAJOR_NR,"fd",&floppy_fops)) { |
MAJOR_NR | 3914 | drivers/block/floppy.c | printk("Unable to get major %d for floppy\n",MAJOR_NR); |
MAJOR_NR | 3924 | drivers/block/floppy.c | blk_size[MAJOR_NR] = floppy_sizes; |
MAJOR_NR | 3925 | drivers/block/floppy.c | blksize_size[MAJOR_NR] = floppy_blocksizes; |
MAJOR_NR | 3926 | drivers/block/floppy.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 3946 | drivers/block/floppy.c | unregister_blkdev(MAJOR_NR,"fd"); |
MAJOR_NR | 3999 | drivers/block/floppy.c | unregister_blkdev(MAJOR_NR,"fd"); |
MAJOR_NR | 4162 | drivers/block/floppy.c | unregister_blkdev(MAJOR_NR, "fd"); |
MAJOR_NR | 4164 | drivers/block/floppy.c | blk_dev[MAJOR_NR].request_fn = 0; |
MAJOR_NR | 920 | drivers/block/hd.c | MAJOR_NR, /* Major number */ |
MAJOR_NR | 1034 | drivers/block/hd.c | blksize_size[MAJOR_NR] = hd_blocksizes; |
MAJOR_NR | 1052 | drivers/block/hd.c | if (register_blkdev(MAJOR_NR,"hd",&hd_fops)) { |
MAJOR_NR | 1053 | drivers/block/hd.c | printk("hd: unable to get major %d for harddisk\n",MAJOR_NR); |
MAJOR_NR | 1056 | drivers/block/hd.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1057 | drivers/block/hd.c | read_ahead[MAJOR_NR] = 8; /* 8 sector (4kB) read-ahead */ |
MAJOR_NR | 1106 | drivers/block/hd.c | kdev_t devi = MKDEV(MAJOR_NR, minor); |
MAJOR_NR | 381 | drivers/block/loop.c | if (MAJOR(inode->i_rdev) != MAJOR_NR) { |
MAJOR_NR | 382 | drivers/block/loop.c | printk("lo_ioctl: pseudo-major != %d\n", MAJOR_NR); |
MAJOR_NR | 420 | drivers/block/loop.c | if (MAJOR(inode->i_rdev) != MAJOR_NR) { |
MAJOR_NR | 421 | drivers/block/loop.c | printk("lo_open: pseudo-major != %d\n", MAJOR_NR); |
MAJOR_NR | 440 | drivers/block/loop.c | if (MAJOR(inode->i_rdev) != MAJOR_NR) { |
MAJOR_NR | 441 | drivers/block/loop.c | printk("lo_release: pseudo-major != %d\n", MAJOR_NR); |
MAJOR_NR | 480 | drivers/block/loop.c | if (register_blkdev(MAJOR_NR, "loop", &lo_fops)) { |
MAJOR_NR | 482 | drivers/block/loop.c | MAJOR_NR); |
MAJOR_NR | 486 | drivers/block/loop.c | printk("loop: registered device at major %d\n", MAJOR_NR); |
MAJOR_NR | 489 | drivers/block/loop.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 495 | drivers/block/loop.c | blk_size[MAJOR_NR] = loop_sizes; |
MAJOR_NR | 503 | drivers/block/loop.c | if (unregister_blkdev(MAJOR_NR, "loop") != 0) |
MAJOR_NR | 611 | drivers/block/md.c | blksize_size[MAJOR_NR] = md_blocksizes; |
MAJOR_NR | 267 | drivers/block/rd.c | if (register_blkdev(MAJOR_NR, "ramdisk", &fd_fops)) { |
MAJOR_NR | 268 | drivers/block/rd.c | printk("RAMDISK: Could not get major %d", MAJOR_NR); |
MAJOR_NR | 272 | drivers/block/rd.c | blk_dev[MAJOR_NR].request_fn = &rd_request; |
MAJOR_NR | 279 | drivers/block/rd.c | blksize_size[MAJOR_NR] = rd_blocksizes; |
MAJOR_NR | 302 | drivers/block/rd.c | invalidate_buffers(MKDEV(MAJOR_NR, i)); |
MAJOR_NR | 304 | drivers/block/rd.c | unregister_blkdev( MAJOR_NR, "ramdisk" ); |
MAJOR_NR | 305 | drivers/block/rd.c | blk_dev[MAJOR_NR].request_fn = 0; |
MAJOR_NR | 428 | drivers/block/rd.c | ram_device = MKDEV(MAJOR_NR, 0); |
MAJOR_NR | 495 | drivers/block/rd.c | ROOT_DEV = MKDEV(MAJOR_NR,0); |
MAJOR_NR | 525 | drivers/block/rd.c | rd_load_image(MKDEV(MAJOR_NR, INITRD_MINOR),0); |
MAJOR_NR | 87 | drivers/block/xd.c | MAJOR_NR, /* Major number */ |
MAJOR_NR | 120 | drivers/block/xd.c | if (register_blkdev(MAJOR_NR,"xd",&xd_fops)) { |
MAJOR_NR | 121 | drivers/block/xd.c | printk("xd_init: unable to get major number %d\n",MAJOR_NR); |
MAJOR_NR | 124 | drivers/block/xd.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 125 | drivers/block/xd.c | read_ahead[MAJOR_NR] = 8; /* 8 sector (4kB) read ahead */ |
MAJOR_NR | 189 | drivers/block/xd.c | blksize_size[MAJOR_NR] = xd_blocksizes; |
MAJOR_NR | 316 | drivers/block/xd.c | kdev_t devp = MKDEV(MAJOR_NR, minor); |
MAJOR_NR | 195 | drivers/cdrom/aztcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
MAJOR_NR | 1671 | drivers/cdrom/aztcd.c | if (register_blkdev(MAJOR_NR, "aztcd", &azt_fops) != 0) |
MAJOR_NR | 1674 | drivers/cdrom/aztcd.c | MAJOR_NR); |
MAJOR_NR | 1677 | drivers/cdrom/aztcd.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1678 | drivers/cdrom/aztcd.c | read_ahead[MAJOR_NR] = 4; |
MAJOR_NR | 2096 | drivers/cdrom/aztcd.c | if ((unregister_blkdev(MAJOR_NR, "aztcd") == -EINVAL)) |
MAJOR_NR | 1547 | drivers/cdrom/cdu31a.c | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) |
MAJOR_NR | 3068 | drivers/cdrom/cdu31a.c | if (register_blkdev(MAJOR_NR,"cdu31a",&scd_fops)) |
MAJOR_NR | 3070 | drivers/cdrom/cdu31a.c | printk("Unable to get major %d for CDU-31a\n", MAJOR_NR); |
MAJOR_NR | 3131 | drivers/cdrom/cdu31a.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 3132 | drivers/cdrom/cdu31a.c | read_ahead[MAJOR_NR] = CDU31A_READAHEAD; |
MAJOR_NR | 3135 | drivers/cdrom/cdu31a.c | blksize_size[MAJOR_NR] = &cdu31a_block_size; |
MAJOR_NR | 3166 | drivers/cdrom/cdu31a.c | if ((unregister_blkdev(MAJOR_NR, "cdu31a") == -EINVAL)) |
MAJOR_NR | 1050 | drivers/cdrom/cm206.c | if (unregister_blkdev(MAJOR_NR, "cm206")) { |
MAJOR_NR | 1165 | drivers/cdrom/cm206.c | if (register_blkdev(MAJOR_NR, "cm206", &cm206_fops) != 0) { |
MAJOR_NR | 1166 | drivers/cdrom/cm206.c | printk("Cannot register for major %d!\n", MAJOR_NR); |
MAJOR_NR | 1170 | drivers/cdrom/cm206.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1171 | drivers/cdrom/cm206.c | read_ahead[MAJOR_NR] = 16; /* reads ahead what? */ |
MAJOR_NR | 978 | drivers/cdrom/gscd.c | if ((unregister_blkdev(MAJOR_NR, "gscd" ) == -EINVAL)) |
MAJOR_NR | 1050 | drivers/cdrom/gscd.c | if (register_blkdev(MAJOR_NR, "gscd", &gscd_fops) != 0) |
MAJOR_NR | 1053 | drivers/cdrom/gscd.c | MAJOR_NR); |
MAJOR_NR | 1057 | drivers/cdrom/gscd.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1058 | drivers/cdrom/gscd.c | read_ahead[MAJOR_NR] = 4; |
MAJOR_NR | 134 | drivers/cdrom/mcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
MAJOR_NR | 1177 | drivers/cdrom/mcd.c | if (register_blkdev(MAJOR_NR, "mcd", &mcd_fops) != 0) |
MAJOR_NR | 1180 | drivers/cdrom/mcd.c | MAJOR_NR); |
MAJOR_NR | 1185 | drivers/cdrom/mcd.c | unregister_blkdev(MAJOR_NR, "mcd"); |
MAJOR_NR | 1191 | drivers/cdrom/mcd.c | blksize_size[MAJOR_NR] = mcd_blocksizes; |
MAJOR_NR | 1192 | drivers/cdrom/mcd.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1193 | drivers/cdrom/mcd.c | read_ahead[MAJOR_NR] = 4; |
MAJOR_NR | 1209 | drivers/cdrom/mcd.c | unregister_blkdev(MAJOR_NR, "mcd"); |
MAJOR_NR | 1217 | drivers/cdrom/mcd.c | unregister_blkdev(MAJOR_NR, "mcd"); |
MAJOR_NR | 1224 | drivers/cdrom/mcd.c | unregister_blkdev(MAJOR_NR, "mcd"); |
MAJOR_NR | 1248 | drivers/cdrom/mcd.c | unregister_blkdev(MAJOR_NR, "mcd"); |
MAJOR_NR | 1624 | drivers/cdrom/mcd.c | if ((unregister_blkdev(MAJOR_NR, "mcd") == -EINVAL)) |
MAJOR_NR | 1063 | drivers/cdrom/mcdx.c | if (unregister_blkdev(MAJOR_NR, DEVICE_NAME) != 0) { |
MAJOR_NR | 1209 | drivers/cdrom/mcdx.c | if (register_blkdev(MAJOR_NR, DEVICE_NAME, &mcdx_fops) != 0) { |
MAJOR_NR | 1212 | drivers/cdrom/mcdx.c | stuffp->wreg_data, stuffp->irq, MAJOR_NR)); |
MAJOR_NR | 1217 | drivers/cdrom/mcdx.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1218 | drivers/cdrom/mcdx.c | read_ahead[MAJOR_NR] = READ_AHEAD; |
MAJOR_NR | 1220 | drivers/cdrom/mcdx.c | blksize_size[MAJOR_NR] = mcdx_blocksizes; |
MAJOR_NR | 967 | drivers/cdrom/optcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR \ |
MAJOR_NR | 2052 | drivers/cdrom/optcd.c | if (register_blkdev(MAJOR_NR, "optcd", &opt_fops) != 0) |
MAJOR_NR | 2054 | drivers/cdrom/optcd.c | printk("optcd: unable to get major %d\n", MAJOR_NR); |
MAJOR_NR | 2058 | drivers/cdrom/optcd.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 2059 | drivers/cdrom/optcd.c | read_ahead[MAJOR_NR] = 4; |
MAJOR_NR | 2076 | drivers/cdrom/optcd.c | if (unregister_blkdev(MAJOR_NR, "optcd") == -EINVAL) { |
MAJOR_NR | 5307 | drivers/cdrom/sbpcd.c | if (register_blkdev(MAJOR_NR, major_name, &sbpcd_fops) != 0) |
MAJOR_NR | 5309 | drivers/cdrom/sbpcd.c | msg(DBG_INF, "Can't get MAJOR %d for Matsushita CDROM\n", MAJOR_NR); |
MAJOR_NR | 5316 | drivers/cdrom/sbpcd.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 5317 | drivers/cdrom/sbpcd.c | read_ahead[MAJOR_NR] = SBP_BUFFER_FRAMES * (CD_FRAMESIZE / 512); |
MAJOR_NR | 5353 | drivers/cdrom/sbpcd.c | blksize_size[MAJOR_NR]=sbpcd_blocksizes; |
MAJOR_NR | 5377 | drivers/cdrom/sbpcd.c | if ((unregister_blkdev(MAJOR_NR, major_name) == -EINVAL)) |
MAJOR_NR | 920 | drivers/cdrom/sjcd.c | ( CURRENT != NULL && MAJOR( CURRENT->rq_dev ) == MAJOR_NR && \ |
MAJOR_NR | 1457 | drivers/cdrom/sjcd.c | if( register_blkdev( MAJOR_NR, "sjcd", &sjcd_fops ) != 0 ){ |
MAJOR_NR | 1458 | drivers/cdrom/sjcd.c | printk( "SJCD: Unable to get major %d for Sanyo CD-ROM\n", MAJOR_NR ); |
MAJOR_NR | 1462 | drivers/cdrom/sjcd.c | blk_dev[ MAJOR_NR ].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1463 | drivers/cdrom/sjcd.c | read_ahead[ MAJOR_NR ] = 4; |
MAJOR_NR | 1556 | drivers/cdrom/sjcd.c | if( (unregister_blkdev(MAJOR_NR, "sjcd") == -EINVAL) ) |
MAJOR_NR | 1591 | drivers/cdrom/sonycd535.c | if (register_blkdev(MAJOR_NR, CDU535_HANDLE, &cdu_fops)) { |
MAJOR_NR | 1593 | drivers/cdrom/sonycd535.c | MAJOR_NR, CDU535_MESSAGE_NAME); |
MAJOR_NR | 1596 | drivers/cdrom/sonycd535.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1597 | drivers/cdrom/sonycd535.c | read_ahead[MAJOR_NR] = 8; /* 8 sector (4kB) read-ahead */ |
MAJOR_NR | 1684 | drivers/cdrom/sonycd535.c | if (unregister_blkdev(MAJOR_NR, CDU535_HANDLE) == -EINVAL) |
MAJOR_NR | 482 | drivers/scsi/scsi.h | #if defined(MAJOR_NR) && (MAJOR_NR != SCSI_TAPE_MAJOR) |
MAJOR_NR | 549 | drivers/scsi/scsi.h | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) \ |
MAJOR_NR | 57 | drivers/scsi/scsi_debug.c | #ifndef MAJOR_NR |
MAJOR_NR | 184 | drivers/scsi/sd.c | MAJOR_NR, /* Major number */ |
MAJOR_NR | 1258 | drivers/scsi/sd.c | if (register_blkdev(MAJOR_NR,"sd",&sd_fops)) { |
MAJOR_NR | 1259 | drivers/scsi/sd.c | printk("Unable to get major %d for SCSI disk\n",MAJOR_NR); |
MAJOR_NR | 1288 | drivers/scsi/sd.c | blksize_size[MAJOR_NR] = sd_blocksizes; |
MAJOR_NR | 1289 | drivers/scsi/sd.c | hardsect_size[MAJOR_NR] = sd_hardsizes; |
MAJOR_NR | 1306 | drivers/scsi/sd.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1319 | drivers/scsi/sd.c | revalidate_scsidisk(MKDEV(MAJOR_NR, i << 4), 0); |
MAJOR_NR | 1331 | drivers/scsi/sd.c | read_ahead[MAJOR_NR] = 120; /* 120 sector read-ahead */ |
MAJOR_NR | 1333 | drivers/scsi/sd.c | read_ahead[MAJOR_NR] = 4; /* 4 sector read-ahead */ |
MAJOR_NR | 1411 | drivers/scsi/sd.c | kdev_t devi = MKDEV(MAJOR_NR, minor); |
MAJOR_NR | 1421 | drivers/scsi/sd.c | blksize_size[MAJOR_NR][minor] = 1024; |
MAJOR_NR | 1457 | drivers/scsi/sd.c | kdev_t devi = MKDEV(MAJOR_NR, minor); |
MAJOR_NR | 1525 | drivers/scsi/sd.c | blksize_size[MAJOR_NR] = NULL; |
MAJOR_NR | 1526 | drivers/scsi/sd.c | blk_dev[MAJOR_NR].request_fn = NULL; |
MAJOR_NR | 1527 | drivers/scsi/sd.c | blk_size[MAJOR_NR] = NULL; |
MAJOR_NR | 1528 | drivers/scsi/sd.c | hardsect_size[MAJOR_NR] = NULL; |
MAJOR_NR | 1529 | drivers/scsi/sd.c | read_ahead[MAJOR_NR] = 0; |
MAJOR_NR | 1065 | drivers/scsi/sr.c | if (register_blkdev(MAJOR_NR,"sr",&sr_fops)) { |
MAJOR_NR | 1066 | drivers/scsi/sr.c | printk("Unable to get major %d for SCSI-CD\n",MAJOR_NR); |
MAJOR_NR | 1084 | drivers/scsi/sr.c | blksize_size[MAJOR_NR] = sr_blocksizes; |
MAJOR_NR | 1092 | drivers/scsi/sr.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1093 | drivers/scsi/sr.c | blk_size[MAJOR_NR] = sr_sizes; |
MAJOR_NR | 1120 | drivers/scsi/sr.c | read_ahead[MAJOR_NR] = 32; /* 32 sector read-ahead. Always removable. */ |
MAJOR_NR | 1122 | drivers/scsi/sr.c | read_ahead[MAJOR_NR] = 4; /* 4 sector read-ahead */ |
MAJOR_NR | 1134 | drivers/scsi/sr.c | kdev_t devi = MKDEV(MAJOR_NR, i); |
MAJOR_NR | 1180 | drivers/scsi/sr.c | blksize_size[MAJOR_NR] = NULL; |
MAJOR_NR | 1181 | drivers/scsi/sr.c | blk_dev[MAJOR_NR].request_fn = NULL; |
MAJOR_NR | 1182 | drivers/scsi/sr.c | blk_size[MAJOR_NR] = NULL; |
MAJOR_NR | 1183 | drivers/scsi/sr.c | read_ahead[MAJOR_NR] = 0; |
MAJOR_NR | 2510 | drivers/scsi/st.c | printk(KERN_ERR "Unable to get major %d for SCSI tapes\n",MAJOR_NR); |
MAJOR_NR | 32 | include/linux/blk.h | #define SECTOR_MASK (blksize_size[MAJOR_NR] && \ |
MAJOR_NR | 33 | include/linux/blk.h | blksize_size[MAJOR_NR][MINOR(CURRENT->rq_dev)] ? \ |
MAJOR_NR | 34 | include/linux/blk.h | ((blksize_size[MAJOR_NR][MINOR(CURRENT->rq_dev)] >> 9) - 1) : \ |
MAJOR_NR | 115 | include/linux/blk.h | #if defined(MAJOR_NR) || defined(IDE_DRIVER) |
MAJOR_NR | 127 | include/linux/blk.h | #elif (MAJOR_NR == RAMDISK_MAJOR) |
MAJOR_NR | 137 | include/linux/blk.h | #elif (MAJOR_NR == FLOPPY_MAJOR) |
MAJOR_NR | 148 | include/linux/blk.h | #elif (MAJOR_NR == HD_MAJOR) |
MAJOR_NR | 160 | include/linux/blk.h | #elif (MAJOR_NR == SCSI_DISK_MAJOR) |
MAJOR_NR | 171 | include/linux/blk.h | #elif (MAJOR_NR == MD_MAJOR) && defined(MD_DRIVER) |
MAJOR_NR | 183 | include/linux/blk.h | #elif (MAJOR_NR == SCSI_TAPE_MAJOR) |
MAJOR_NR | 191 | include/linux/blk.h | #elif (MAJOR_NR == SCSI_CDROM_MAJOR) |
MAJOR_NR | 200 | include/linux/blk.h | #elif (MAJOR_NR == XT_DISK_MAJOR) |
MAJOR_NR | 208 | include/linux/blk.h | #elif (MAJOR_NR == CDU31A_CDROM_MAJOR) |
MAJOR_NR | 216 | include/linux/blk.h | #elif (MAJOR_NR == MITSUMI_CDROM_MAJOR) |
MAJOR_NR | 225 | include/linux/blk.h | #elif (MAJOR_NR == MITSUMI_X_CDROM_MAJOR) |
MAJOR_NR | 234 | include/linux/blk.h | #elif (MAJOR_NR == MATSUSHITA_CDROM_MAJOR) |
MAJOR_NR | 242 | include/linux/blk.h | #elif (MAJOR_NR == MATSUSHITA_CDROM2_MAJOR) |
MAJOR_NR | 250 | include/linux/blk.h | #elif (MAJOR_NR == MATSUSHITA_CDROM3_MAJOR) |
MAJOR_NR | 258 | include/linux/blk.h | #elif (MAJOR_NR == MATSUSHITA_CDROM4_MAJOR) |
MAJOR_NR | 266 | include/linux/blk.h | #elif (MAJOR_NR == AZTECH_CDROM_MAJOR) |
MAJOR_NR | 274 | include/linux/blk.h | #elif (MAJOR_NR == CDU535_CDROM_MAJOR) |
MAJOR_NR | 283 | include/linux/blk.h | #elif (MAJOR_NR == GOLDSTAR_CDROM_MAJOR) |
MAJOR_NR | 291 | include/linux/blk.h | #elif (MAJOR_NR == CM206_CDROM_MAJOR) |
MAJOR_NR | 298 | include/linux/blk.h | #elif (MAJOR_NR == OPTICS_CDROM_MAJOR) |
MAJOR_NR | 306 | include/linux/blk.h | #elif (MAJOR_NR == SANYO_CDROM_MAJOR) |
MAJOR_NR | 316 | include/linux/blk.h | #if ((MAJOR_NR != SCSI_TAPE_MAJOR) && !defined(IDE_DRIVER) && !defined(MD_DRIVER)) |
MAJOR_NR | 319 | include/linux/blk.h | #define CURRENT (blk_dev[MAJOR_NR].current_request) |
MAJOR_NR | 363 | include/linux/blk.h | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) \ |
MAJOR_NR | 375 | include/linux/blk.h | #if ! SCSI_MAJOR(MAJOR_NR) || (defined(MD_DRIVER) && !defined(MD_PERSONALITY)) |