tag | line | file | source code |
MAJOR_NR | 2610 | drivers/block/floppy.c | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) |
MAJOR_NR | 3523 | drivers/block/floppy.c | if (MAJOR(dev) != MAJOR_NR) { |
MAJOR_NR | 3840 | drivers/block/floppy.c | if (register_blkdev(MAJOR_NR,"fd",&floppy_fops)) { |
MAJOR_NR | 3841 | drivers/block/floppy.c | printk("Unable to get major %d for floppy\n",MAJOR_NR); |
MAJOR_NR | 3851 | drivers/block/floppy.c | blk_size[MAJOR_NR] = floppy_sizes; |
MAJOR_NR | 3852 | drivers/block/floppy.c | blksize_size[MAJOR_NR] = floppy_blocksizes; |
MAJOR_NR | 3853 | drivers/block/floppy.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 3870 | drivers/block/floppy.c | unregister_blkdev(MAJOR_NR,"fd"); |
MAJOR_NR | 3923 | drivers/block/floppy.c | unregister_blkdev(MAJOR_NR,"fd"); |
MAJOR_NR | 4086 | drivers/block/floppy.c | unregister_blkdev(MAJOR_NR, "fd"); |
MAJOR_NR | 4088 | 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 | 596 | drivers/block/md.c | blksize_size[MAJOR_NR] = md_blocksizes; |
MAJOR_NR | 203 | drivers/block/rd.c | if (register_blkdev(MAJOR_NR, "ramdisk", &fd_fops)) { |
MAJOR_NR | 204 | drivers/block/rd.c | printk("RAMDISK: Could not get major %d", MAJOR_NR); |
MAJOR_NR | 208 | drivers/block/rd.c | blk_dev[MAJOR_NR].request_fn = &rd_request; |
MAJOR_NR | 215 | drivers/block/rd.c | blksize_size[MAJOR_NR] = rd_blocksizes; |
MAJOR_NR | 238 | drivers/block/rd.c | invalidate_buffers(MKDEV(MAJOR_NR, i)); |
MAJOR_NR | 240 | drivers/block/rd.c | unregister_blkdev( MAJOR_NR, "ramdisk" ); |
MAJOR_NR | 241 | drivers/block/rd.c | blk_dev[MAJOR_NR].request_fn = 0; |
MAJOR_NR | 368 | drivers/block/rd.c | ram_device = MKDEV(MAJOR_NR, 0); |
MAJOR_NR | 443 | drivers/block/rd.c | ROOT_DEV = MKDEV(MAJOR_NR,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 | 132 | drivers/cdrom/mcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
MAJOR_NR | 1175 | drivers/cdrom/mcd.c | if (register_blkdev(MAJOR_NR, "mcd", &mcd_fops) != 0) |
MAJOR_NR | 1178 | drivers/cdrom/mcd.c | MAJOR_NR); |
MAJOR_NR | 1188 | drivers/cdrom/mcd.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1189 | drivers/cdrom/mcd.c | read_ahead[MAJOR_NR] = 4; |
MAJOR_NR | 1615 | drivers/cdrom/mcd.c | if ((unregister_blkdev(MAJOR_NR, "mcd") == -EINVAL)) |
MAJOR_NR | 1015 | drivers/cdrom/mcdx.c | if (unregister_blkdev(MAJOR_NR, DEVICE_NAME) != 0) |
MAJOR_NR | 1156 | drivers/cdrom/mcdx.c | if (register_blkdev(MAJOR_NR, DEVICE_NAME, &mcdx_fops) != 0) { |
MAJOR_NR | 1159 | drivers/cdrom/mcdx.c | stuffp->wreg_data, stuffp->irq, MAJOR_NR)); |
MAJOR_NR | 1164 | drivers/cdrom/mcdx.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1165 | drivers/cdrom/mcdx.c | read_ahead[MAJOR_NR] = READ_AHEAD; |
MAJOR_NR | 1168 | drivers/cdrom/mcdx.c | blksize_size[MAJOR_NR] = BLKSIZES; |
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 | 455 | drivers/scsi/scsi.h | #if defined(MAJOR_NR) && (MAJOR_NR != SCSI_TAPE_MAJOR) |
MAJOR_NR | 522 | 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 | 1250 | drivers/scsi/sd.c | if (register_blkdev(MAJOR_NR,"sd",&sd_fops)) { |
MAJOR_NR | 1251 | drivers/scsi/sd.c | printk("Unable to get major %d for SCSI disk\n",MAJOR_NR); |
MAJOR_NR | 1280 | drivers/scsi/sd.c | blksize_size[MAJOR_NR] = sd_blocksizes; |
MAJOR_NR | 1281 | drivers/scsi/sd.c | hardsect_size[MAJOR_NR] = sd_hardsizes; |
MAJOR_NR | 1298 | drivers/scsi/sd.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1311 | drivers/scsi/sd.c | revalidate_scsidisk(MKDEV(MAJOR_NR, i << 4), 0); |
MAJOR_NR | 1323 | drivers/scsi/sd.c | read_ahead[MAJOR_NR] = 120; /* 120 sector read-ahead */ |
MAJOR_NR | 1325 | drivers/scsi/sd.c | read_ahead[MAJOR_NR] = 4; /* 4 sector read-ahead */ |
MAJOR_NR | 1403 | drivers/scsi/sd.c | kdev_t devi = MKDEV(MAJOR_NR, minor); |
MAJOR_NR | 1413 | drivers/scsi/sd.c | blksize_size[MAJOR_NR][minor] = 1024; |
MAJOR_NR | 1449 | drivers/scsi/sd.c | kdev_t devi = MKDEV(MAJOR_NR, minor); |
MAJOR_NR | 1517 | drivers/scsi/sd.c | blksize_size[MAJOR_NR] = NULL; |
MAJOR_NR | 1518 | drivers/scsi/sd.c | blk_dev[MAJOR_NR].request_fn = NULL; |
MAJOR_NR | 1519 | drivers/scsi/sd.c | blk_size[MAJOR_NR] = NULL; |
MAJOR_NR | 1520 | drivers/scsi/sd.c | hardsect_size[MAJOR_NR] = NULL; |
MAJOR_NR | 1521 | drivers/scsi/sd.c | read_ahead[MAJOR_NR] = 0; |
MAJOR_NR | 1050 | drivers/scsi/sr.c | if (register_blkdev(MAJOR_NR,"sr",&sr_fops)) { |
MAJOR_NR | 1051 | drivers/scsi/sr.c | printk("Unable to get major %d for SCSI-CD\n",MAJOR_NR); |
MAJOR_NR | 1069 | drivers/scsi/sr.c | blksize_size[MAJOR_NR] = sr_blocksizes; |
MAJOR_NR | 1077 | drivers/scsi/sr.c | blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; |
MAJOR_NR | 1078 | drivers/scsi/sr.c | blk_size[MAJOR_NR] = sr_sizes; |
MAJOR_NR | 1105 | drivers/scsi/sr.c | read_ahead[MAJOR_NR] = 32; /* 32 sector read-ahead. Always removable. */ |
MAJOR_NR | 1107 | drivers/scsi/sr.c | read_ahead[MAJOR_NR] = 4; /* 4 sector read-ahead */ |
MAJOR_NR | 1119 | drivers/scsi/sr.c | kdev_t devi = MKDEV(MAJOR_NR, i); |
MAJOR_NR | 1165 | drivers/scsi/sr.c | blksize_size[MAJOR_NR] = NULL; |
MAJOR_NR | 1166 | drivers/scsi/sr.c | blk_dev[MAJOR_NR].request_fn = NULL; |
MAJOR_NR | 1167 | drivers/scsi/sr.c | blk_size[MAJOR_NR] = NULL; |
MAJOR_NR | 1168 | drivers/scsi/sr.c | read_ahead[MAJOR_NR] = 0; |
MAJOR_NR | 2168 | 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 | 105 | include/linux/blk.h | #if defined(MAJOR_NR) || defined(IDE_DRIVER) |
MAJOR_NR | 117 | include/linux/blk.h | #elif (MAJOR_NR == RAMDISK_MAJOR) |
MAJOR_NR | 127 | include/linux/blk.h | #elif (MAJOR_NR == FLOPPY_MAJOR) |
MAJOR_NR | 138 | include/linux/blk.h | #elif (MAJOR_NR == HD_MAJOR) |
MAJOR_NR | 150 | include/linux/blk.h | #elif (MAJOR_NR == SCSI_DISK_MAJOR) |
MAJOR_NR | 161 | include/linux/blk.h | #elif (MAJOR_NR == MD_MAJOR) && defined(MD_DRIVER) |
MAJOR_NR | 173 | include/linux/blk.h | #elif (MAJOR_NR == SCSI_TAPE_MAJOR) |
MAJOR_NR | 181 | include/linux/blk.h | #elif (MAJOR_NR == SCSI_CDROM_MAJOR) |
MAJOR_NR | 190 | include/linux/blk.h | #elif (MAJOR_NR == XT_DISK_MAJOR) |
MAJOR_NR | 198 | include/linux/blk.h | #elif (MAJOR_NR == CDU31A_CDROM_MAJOR) |
MAJOR_NR | 206 | include/linux/blk.h | #elif (MAJOR_NR == MITSUMI_CDROM_MAJOR) |
MAJOR_NR | 215 | include/linux/blk.h | #elif (MAJOR_NR == MITSUMI_X_CDROM_MAJOR) |
MAJOR_NR | 224 | include/linux/blk.h | #elif (MAJOR_NR == MATSUSHITA_CDROM_MAJOR) |
MAJOR_NR | 232 | include/linux/blk.h | #elif (MAJOR_NR == MATSUSHITA_CDROM2_MAJOR) |
MAJOR_NR | 240 | include/linux/blk.h | #elif (MAJOR_NR == MATSUSHITA_CDROM3_MAJOR) |
MAJOR_NR | 248 | include/linux/blk.h | #elif (MAJOR_NR == MATSUSHITA_CDROM4_MAJOR) |
MAJOR_NR | 256 | include/linux/blk.h | #elif (MAJOR_NR == AZTECH_CDROM_MAJOR) |
MAJOR_NR | 264 | include/linux/blk.h | #elif (MAJOR_NR == CDU535_CDROM_MAJOR) |
MAJOR_NR | 273 | include/linux/blk.h | #elif (MAJOR_NR == GOLDSTAR_CDROM_MAJOR) |
MAJOR_NR | 281 | include/linux/blk.h | #elif (MAJOR_NR == CM206_CDROM_MAJOR) |
MAJOR_NR | 288 | include/linux/blk.h | #elif (MAJOR_NR == OPTICS_CDROM_MAJOR) |
MAJOR_NR | 296 | include/linux/blk.h | #elif (MAJOR_NR == SANYO_CDROM_MAJOR) |
MAJOR_NR | 306 | include/linux/blk.h | #if ((MAJOR_NR != SCSI_TAPE_MAJOR) && !defined(IDE_DRIVER) && !defined(MD_DRIVER)) |
MAJOR_NR | 309 | include/linux/blk.h | #define CURRENT (blk_dev[MAJOR_NR].current_request) |
MAJOR_NR | 353 | include/linux/blk.h | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) \ |
MAJOR_NR | 365 | include/linux/blk.h | #if ! SCSI_MAJOR(MAJOR_NR) || (defined(MD_DRIVER) && !defined(MD_PERSONALITY)) |