Home
last modified time | relevance | path

Searched refs:major (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/linux-2.4.37.9/fs/
Ddevices.c65 static struct file_operations * get_chrfops(unsigned int major, unsigned int minor) in get_chrfops() argument
69 if (!major || major >= MAX_CHRDEV) in get_chrfops()
73 ret = fops_get(chrdevs[major].fops); in get_chrfops()
76 if (ret && isa_tty_dev(major)) { in get_chrfops()
78 if (need_serial(major,minor)) { in get_chrfops()
87 sprintf(name, "char-major-%d", major); in get_chrfops()
91 ret = fops_get(chrdevs[major].fops); in get_chrfops()
98 int register_chrdev(unsigned int major, const char * name, struct file_operations *fops) in register_chrdev() argument
100 if (major == 0) { in register_chrdev()
102 for (major = MAX_CHRDEV-1; major > 0; major--) { in register_chrdev()
[all …]
Dblock_dev.c28 int major = MAJOR(dev); in max_block() local
30 if (blk_size[major]) { in max_block()
32 unsigned int blocks = blk_size[major][minor]; in max_block()
48 int major = MAJOR(dev); in blkdev_size() local
50 if (blk_size[major]) { in blkdev_size()
52 blocks = blk_size[major][minor]; in blkdev_size()
450 const struct block_device_operations * get_blkfops(unsigned int major) in get_blkfops() argument
455 if (major && major < MAX_BLKDEV) { in get_blkfops()
457 if (!blkdevs[major].bdops) { in get_blkfops()
459 sprintf(name, "block-major-%d", major); in get_blkfops()
[all …]
/linux-2.4.37.9/include/linux/
Ddevfs_fs_kernel.h66 unsigned int major, unsigned int minor,
75 unsigned int major,unsigned int minor,
78 unsigned int major,unsigned int minor,
83 unsigned int *major, unsigned int *minor);
97 extern int devfs_register_chrdev (unsigned int major, const char *name,
99 extern int devfs_register_blkdev (unsigned int major, const char *name,
101 extern int devfs_unregister_chrdev (unsigned int major, const char *name);
102 extern int devfs_unregister_blkdev (unsigned int major, const char *name);
107 unsigned int flags, unsigned int major,
111 extern void devfs_dealloc_major (char type, int major);
[all …]
Dkdev_t.h80 #define major(d) MAJOR(d) macro
98 int major, minor; in to_kdev_t() local
100 major = (dev >> 16); in to_kdev_t()
101 if (!major) { in to_kdev_t()
102 major = (dev >> 8); in to_kdev_t()
107 major = (dev >> 8); in to_kdev_t()
110 return MKDEV(major, minor); in to_kdev_t()
Dblkdev.h283 int major = MAJOR(dev); in get_hardsect_size() local
285 if (hardsect_size[major]) { in get_hardsect_size()
287 if (hardsect_size[major][minor]) in get_hardsect_size()
288 retval = hardsect_size[major][minor]; in get_hardsect_size()
358 int major = MAJOR(dev); in block_size() local
360 if (blksize_size[major]) { in block_size()
362 if (blksize_size[major][minor]) in block_size()
363 retval = blksize_size[major][minor]; in block_size()
/linux-2.4.37.9/fs/devfs/
Dutil.c122 unsigned int major, unsigned int minor_start, in devfs_register_series() argument
131 devfs_register (dir, devname, flags, major, minor_start + count, in devfs_register_series()
186 int major; in devfs_alloc_major() local
191 major = find_first_zero_bit (list->bits, 256); in devfs_alloc_major()
192 if (major < 256) __set_bit (major, list->bits); in devfs_alloc_major()
193 else major = -1; in devfs_alloc_major()
195 return major; in devfs_alloc_major()
207 void devfs_dealloc_major (char type, int major) in devfs_dealloc_major() argument
212 if (major < 0) return; in devfs_dealloc_major()
215 was_set = __test_and_clear_bit (major, list->bits); in devfs_dealloc_major()
[all …]
Dbase.c749 unsigned short major; member
925 mk_kdev (de->u.fcb.u.device.major, in devfs_put()
1094 new->u.fcb.u.device.major = major (devnum); in _devfs_get_root_entry()
1102 new->u.fcb.u.device.major = major (devnum); in _devfs_get_root_entry()
1269 unsigned int major, in _devfs_find_by_dev() argument
1289 if ( (entry->u.fcb.u.device.major == major) && in _devfs_find_by_dev()
1303 de = _devfs_find_by_dev (entry, major, minor, type); in _devfs_find_by_dev()
1336 unsigned int major, in _devfs_find_entry() argument
1368 if ( (major == 0) && (minor == 0) ) return NULL; in _devfs_find_entry()
1369 return _devfs_find_by_dev (root_entry, major, minor, type); in _devfs_find_entry()
[all …]
/linux-2.4.37.9/fs/partitions/
Dcheck.c128 switch (hd->major) { in disk_name()
154 if (hd->major >= SCSI_DISK1_MAJOR && hd->major <= SCSI_DISK7_MAJOR) { in disk_name()
155 unit = unit + (hd->major - SCSI_DISK1_MAJOR + 1) * 16; in disk_name()
164 if (hd->major >= COMPAQ_SMART2_MAJOR && hd->major <= COMPAQ_SMART2_MAJOR+7) { in disk_name()
165 int ctlr = hd->major - COMPAQ_SMART2_MAJOR; in disk_name()
172 if (hd->major >= COMPAQ_CISS_MAJOR && hd->major <= COMPAQ_CISS_MAJOR+7) { in disk_name()
173 int ctlr = hd->major - COMPAQ_CISS_MAJOR; in disk_name()
180 if (hd->major >= DAC960_MAJOR && hd->major <= DAC960_MAJOR+7) { in disk_name()
181 int ctlr = hd->major - DAC960_MAJOR; in disk_name()
188 if (hd->major == ATARAID_MAJOR) { in disk_name()
[all …]
/linux-2.4.37.9/drivers/char/
Dscx200_gpio.c24 static int major = 0; /* default to dynamic major */ variable
25 MODULE_PARM(major, "i");
26 MODULE_PARM_DESC(major, "Major device number");
128 r = register_chrdev(major, NAME, &scx200_gpio_fops); in scx200_gpio_init()
133 if (!major) { in scx200_gpio_init()
134 major = r; in scx200_gpio_init()
135 printk(KERN_DEBUG NAME ": got dynamic major %d\n", major); in scx200_gpio_init()
143 unregister_chrdev(major, NAME); in scx200_gpio_cleanup()
Dpty.c95 unsigned int major = MAJOR(tty->device) - UNIX98_PTY_MASTER_MAJOR; in pty_close() local
96 if ( major < UNIX98_NR_MAJORS ) { in pty_close()
343 if (tty->driver.major == PTY_MASTER_MAJOR) in pty_open()
376 pty_driver.major = PTY_MASTER_MAJOR; in pty_init()
412 pty_slave_driver.major = PTY_SLAVE_MAJOR; in pty_init()
448 ptm_driver[i].major = UNIX98_PTY_MASTER_MAJOR+i; in pty_init()
469 pts_driver[i].major = UNIX98_PTY_SLAVE_MAJOR+i; in pty_init()
483 ptm_driver[i].major); in pty_init()
486 pts_driver[i].major); in pty_init()
Dtty_io.c603 int major, minor; in get_tty_driver() local
607 major = MAJOR(device); in get_tty_driver()
610 if (p->major != major) in get_tty_driver()
1230 o_tty->device = (kdev_t) MKDEV(driver->other->major, in init_dev()
1725 int major, minor; in tty_open() local
1730 for ( major = 0 ; major < UNIX98_NR_MAJORS ; major++ ) { in tty_open()
1731 driver = &ptm_driver[major]; in tty_open()
1735 device = MKDEV(driver->major, minor); in tty_open()
1743 …devpts_pty_new(driver->other->name_base + minor, MKDEV(driver->other->major, minor + driver->other… in tty_open()
1744 tty_register_devfs(&pts_driver[major], DEVFS_FL_DEFAULT, in tty_open()
[all …]
/linux-2.4.37.9/drivers/s390/block/
Dxpram.c164 static int major = XPRAM_MAJOR; variable
949 xpram_major = major; in xpram_init()
1014 major = xpram_major; /* Use `major' later on to save typing */ in xpram_init()
1040 blk_dev[major].request_fn = xpram_request; in xpram_init()
1042 q = BLK_DEFAULT_QUEUE (major); in xpram_init()
1044 blk_queue_headactive (BLK_DEFAULT_QUEUE (major), 0); in xpram_init()
1046 read_ahead[major] = xpram_rahead; in xpram_init()
1069 blk_size[major]=xpram_sizes; in xpram_init()
1094 blksize_size[major]=xpram_blksizes; in xpram_init()
1104 hardsect_size[major]=xpram_hardsects; in xpram_init()
[all …]
Ddasd.c709 int major; in dasd_register_major() local
725 major = major_info->gendisk.major; in dasd_register_major()
745 rc = devfs_register_blkdev (major, DASD_NAME, &dasd_device_operations); in dasd_register_major()
750 major, in dasd_register_major()
765 if (major == 0) { in dasd_register_major()
766 major = rc; in dasd_register_major()
780 blk_size[major] = in dasd_register_major()
782 if (!blk_size[major]) in dasd_register_major()
784 memset (blk_size[major], 0, (1 << MINORBITS) * sizeof (int)); in dasd_register_major()
787 blksize_size[major] = in dasd_register_major()
[all …]
/linux-2.4.37.9/drivers/ide/raid/
Dsilraid.c46 int major; member
249 static unsigned long calc_silblock_offset (int major,int minor) in calc_silblock_offset() argument
255 dev = MKDEV(major,minor); in calc_silblock_offset()
278 static int read_disk_sb (int major, int minor, unsigned char *buffer,int bufsize) in read_disk_sb() argument
282 kdev_t dev = MKDEV(major,minor); in read_disk_sb()
285 if (blksize_size[major]==NULL) /* device doesn't exist */ in read_disk_sb()
293 sb_offset = calc_silblock_offset(major,minor)/8; in read_disk_sb()
329 int major, minor; in probedisk() local
337 major = devlist[devindex].major; in probedisk()
340 if (read_disk_sb(major,minor,(unsigned char*)&block,sizeof(block))) in probedisk()
[all …]
Dpdcraid.c41 int major; member
346 static unsigned long calc_pdcblock_offset (int major,int minor) in calc_pdcblock_offset() argument
352 dev = MKDEV(major,minor); in calc_pdcblock_offset()
375 static int read_disk_sb (int major, int minor, unsigned char *buffer,int bufsize) in read_disk_sb() argument
379 kdev_t dev = MKDEV(major,minor); in read_disk_sb()
382 if (blksize_size[major]==NULL) /* device doesn't exist */ in read_disk_sb()
390 sb_offset = calc_pdcblock_offset(major,minor)/8; in read_disk_sb()
430 int major, minor; in probedisk() local
438 major = devlist[devindex].major; in probedisk()
441 if (read_disk_sb(major,minor,(unsigned char*)&block,sizeof(block))) in probedisk()
[all …]
Dhptraid.c100 int major; member
556 static int read_disk_sb (int major, int minor, unsigned char *buffer,int bufsize) in read_disk_sb() argument
560 kdev_t dev = MKDEV(major,minor); in read_disk_sb()
562 if (blksize_size[major]==NULL) /* device doesn't exist */ in read_disk_sb()
584 static unsigned long maxsectors (int major,int minor) in maxsectors() argument
590 dev = MKDEV(major,minor); in maxsectors()
613 bdev = bdget(MKDEV(disk->major,disk->minor)); in writeentry()
623 gd=get_gendisk(MKDEV(disk->major, 0)); in writeentry()
625 if (gd->major==disk->major) in writeentry()
631 raid->disk[index].device = MKDEV(disk->major,disk->minor); in writeentry()
[all …]
/linux-2.4.37.9/Documentation/video4linux/bttv/
DModules.conf2 alias char-major-89 i2c-dev
7 alias char-major-81 videodev
8 alias char-major-81-0 bttv
/linux-2.4.37.9/drivers/sound/
Dsb_common.c260 devc->major = devc->minor = 0; in dsp_get_vers()
267 if (devc->major == 0) in dsp_get_vers()
268 devc->major = inb(DSP_READ); in dsp_get_vers()
277 DDB(printk("DSP version %d.%02d\n", devc->major, devc->minor)); in dsp_get_vers()
582 devc->major = 0; in sb_dsp_detect()
585 if (devc->major == 0 || (devc->major == 3 && devc->minor == 1)) in sb_dsp_detect()
588 if (devc->major == 0 && (devc->type == MDL_ESS || devc->type == 0)) in sb_dsp_detect()
599 if (devc->major == 0) in sb_dsp_detect()
602 if (devc->major == 3 && devc->minor == 1) in sb_dsp_detect()
641 …MDB(printk(KERN_INFO "SB %d.%02d detected OK (%x)\n", devc->major, devc->minor, hw_config->io_base… in sb_dsp_detect()
[all …]
/linux-2.4.37.9/drivers/block/
Dll_rw_blk.c671 int minor,major; in is_read_only() local
673 major = MAJOR(dev); in is_read_only()
675 if (major < 0 || major >= MAX_BLKDEV) return 0; in is_read_only()
676 return ro_bits[major][minor >> 5] & (1 << (minor & 31)); in is_read_only()
681 int minor,major; in set_device_ro() local
683 major = MAJOR(dev); in set_device_ro()
685 if (major < 0 || major >= MAX_BLKDEV) return; in set_device_ro()
686 if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); in set_device_ro()
687 else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); in set_device_ro()
693 unsigned int major = MAJOR(dev); in drive_stat_acct() local
[all …]
Dgenhd.c70 gendisk_array[gp->major] = gp; in add_gendisk()
94 gendisk_array[gp->major] = NULL; in del_gendisk()
126 if (gp->major == maj) in get_gendisk()
209 gp->major, n, gp->sizes[n], in part_show()
220 gp->major, n, gp->sizes[n], in part_show()
Dsx8.c260 int major; member
871 invalidate_device(MKDEV(host->major, i), 1); in carm_activate_disk()
1810 host->gendisk.major = host->major; in carm_init_disks()
1819 blk_dev[host->major].queue = carm_find_queue; in carm_init_disks()
1820 blk_dev[host->major].data = host; in carm_init_disks()
1821 blk_size[host->major] = host->blk_sizes; in carm_init_disks()
1822 blksize_size[host->major] = host->blk_block_sizes; in carm_init_disks()
1823 hardsect_size[host->major] = host->blk_sect_sizes; in carm_init_disks()
1842 blk_dev[host->major].queue = NULL; in carm_free_disks()
1843 blk_dev[host->major].data = NULL; in carm_free_disks()
[all …]
/linux-2.4.37.9/fs/proc/
Dproc_misc.c313 int major, disk; in kstat_read_proc() local
358 for (major = 0; major < DK_MAX_MAJOR; major++) { in kstat_read_proc()
360 int active = kstat.dk_drive[major][disk] + in kstat_read_proc()
361 kstat.dk_drive_rblk[major][disk] + in kstat_read_proc()
362 kstat.dk_drive_wblk[major][disk]; in kstat_read_proc()
366 major, disk, in kstat_read_proc()
367 kstat.dk_drive[major][disk], in kstat_read_proc()
368 kstat.dk_drive_rio[major][disk], in kstat_read_proc()
369 kstat.dk_drive_rblk[major][disk], in kstat_read_proc()
370 kstat.dk_drive_wio[major][disk], in kstat_read_proc()
[all …]
/linux-2.4.37.9/include/linux/raid/
Dmd_u.h48 int major; member
91 int major; member
102 int major; member
/linux-2.4.37.9/arch/ia64/sn/kernel/
Dsetup.c318 int major = sn_sal_rev_major(), minor = sn_sal_rev_minor(); in sn_setup() local
351 if ((major < 2 || (major == 2 && minor <= 9)) && in sn_setup()
358 printk("SGI SAL version %x.%02x\n", major, minor); in sn_setup()
363 if ((major < SN_SAL_MIN_MAJOR) || (major == SN_SAL_MIN_MAJOR && in sn_setup()
/linux-2.4.37.9/include/asm-ia64/sn/
Dhwgfs.h16 unsigned int major, unsigned int minor,
26 unsigned int major,unsigned int minor,

12345678910>>...14