Home
last modified time | relevance | path

Searched refs:MKDEV (Results 1 – 25 of 202) sorted by relevance

123456789

/linux/include/linux/
A Droot_dev.h10 Root_NFS = MKDEV(UNNAMED_MAJOR, 255),
11 Root_CIFS = MKDEV(UNNAMED_MAJOR, 254),
12 Root_RAM0 = MKDEV(RAMDISK_MAJOR, 0),
13 Root_RAM1 = MKDEV(RAMDISK_MAJOR, 1),
14 Root_FD0 = MKDEV(FLOPPY_MAJOR, 0),
15 Root_HDA1 = MKDEV(IDE0_MAJOR, 1),
16 Root_HDA2 = MKDEV(IDE0_MAJOR, 2),
17 Root_SDA1 = MKDEV(SCSI_DISK0_MAJOR, 1),
18 Root_SDA2 = MKDEV(SCSI_DISK0_MAJOR, 2),
19 Root_HDC1 = MKDEV(IDE1_MAJOR, 1),
[all …]
A Dkdev_t.h12 #define MKDEV(ma,mi) (((ma) << MINORBITS) | (mi)) macro
36 return MKDEV((val >> 8) & 255, val & 255); in old_decode_dev()
50 return MKDEV(major, minor); in new_decode_dev()
/linux/drivers/char/xillybus/
A Dxillybus_class.c100 rc = cdev_add(unit->cdev, MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev()
126 MKDEV(unit->major, in xillybus_init_chrdev()
155 device_destroy(xillybus_class, MKDEV(unit->major, in xillybus_init_chrdev()
161 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev()
197 device_destroy(xillybus_class, MKDEV(unit->major, minor)); in xillybus_cleanup_chrdev()
201 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_cleanup_chrdev()
/linux/arch/mips/kernel/
A Drtlx-cmp.c77 dev = device_create(mt_class, NULL, MKDEV(major, i), NULL, in rtlx_module_init()
81 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init()
105 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init()
117 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_exit()
A Drtlx-mt.c98 dev = device_create(mt_class, NULL, MKDEV(major, i), NULL, in rtlx_module_init()
102 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init()
130 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init()
142 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_exit()
/linux/drivers/dca/
A Ddca-sysfs.c25 cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), NULL, in dca_sysfs_add_req()
32 device_destroy(dca_class, MKDEV(0, slot + 1)); in dca_sysfs_remove_req()
52 cd = device_create(dca_class, dev, MKDEV(0, 0), NULL, "dca%d", dca->id); in dca_sysfs_add_provider()
/linux/drivers/tty/vt/
A Dvc_screen.c786 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 1), NULL, in vcs_make_sysfs()
788 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 65), NULL, in vcs_make_sysfs()
790 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 129), NULL, in vcs_make_sysfs()
796 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 1)); in vcs_remove_sysfs()
797 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 65)); in vcs_remove_sysfs()
798 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 129)); in vcs_remove_sysfs()
809 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs"); in vcs_init()
810 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 64), NULL, "vcsu"); in vcs_init()
811 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa"); in vcs_init()
/linux/drivers/staging/vme/devices/
A Dvme_user.c543 err = register_chrdev_region(MKDEV(VME_MAJOR, 0), VME_DEVS, in vme_user_probe()
559 err = cdev_add(vme_user_cdev, MKDEV(VME_MAJOR, 0), VME_DEVS); in vme_user_probe()
645 MKDEV(VME_MAJOR, i), NULL, in vme_user_probe()
659 device_destroy(vme_user_sysfs_class, MKDEV(VME_MAJOR, i)); in vme_user_probe()
686 unregister_chrdev_region(MKDEV(VME_MAJOR, 0), VME_DEVS); in vme_user_probe()
699 device_destroy(vme_user_sysfs_class, MKDEV(VME_MAJOR, i)); in vme_user_remove()
719 unregister_chrdev_region(MKDEV(VME_MAJOR, 0), VME_DEVS); in vme_user_remove()
/linux/drivers/tty/
A Dtty_audit.c43 buf->dev = MKDEV(0, 0); in tty_audit_buf_alloc()
141 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_audit_tiocsti()
228 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_audit_add_data()
A Dtty_io.c321 dev_t base = MKDEV(p->major, p->minor_start); in get_tty_driver()
368 *number = MKDEV(p->major, p->minor_start + index); in tty_dev_name_to_number()
1898 if (device != MKDEV(TTYAUX_MAJOR, 0)) in tty_open_current_tty()
1937 case MKDEV(TTY_MAJOR, 0): { in tty_lookup_driver()
1945 case MKDEV(TTYAUX_MAJOR, 1): { in tty_lookup_driver()
2191 device == MKDEV(TTYAUX_MAJOR, 1) || in tty_open()
3333 MKDEV(driver->major, driver->minor_start) + index); in tty_unregister_device()
3459 dev = MKDEV(driver->major, driver->minor_start); in tty_register_driver()
3531 if (dev->devt == MKDEV(TTYAUX_MAJOR, 0) || in tty_devnode()
3532 dev->devt == MKDEV(TTYAUX_MAJOR, 2)) in tty_devnode()
[all …]
/linux/fs/pstore/
A Dpmsg.c73 pmsg_device = device_create(pmsg_class, NULL, MKDEV(pmsg_major, 0), in pstore_register_pmsg()
91 device_destroy(pmsg_class, MKDEV(pmsg_major, 0)); in pstore_unregister_pmsg()
/linux/drivers/block/rnbd/
A Drnbd-srv-sysfs.c225 MKDEV(0, 0), NULL, "ctl"); in rnbd_srv_create_sysfs_files()
239 device_destroy(rnbd_dev_class, MKDEV(0, 0)); in rnbd_srv_create_sysfs_files()
250 device_destroy(rnbd_dev_class, MKDEV(0, 0)); in rnbd_srv_destroy_sysfs_files()
/linux/drivers/char/
A Dscx200_gpio.c99 devid = MKDEV(major, 0); in scx200_gpio_init()
128 unregister_chrdev_region(MKDEV(major, 0), MAX_PINS); in scx200_gpio_cleanup()
A Dmisc.c203 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register()
248 device_destroy(misc_class, MKDEV(MISC_MAJOR, misc->minor)); in misc_deregister()
/linux/fs/
A Dchar_dev.c207 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
219 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
243 *dev = MKDEV(cd->major, cd->baseminor); in alloc_chrdev_region()
288 err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); in __register_chrdev()
317 next = MKDEV(MAJOR(n)+1, 0); in unregister_chrdev_region()
/linux/arch/x86/kernel/
A Dcpuid.c131 dev = device_create(cpuid_class, NULL, MKDEV(CPUID_MAJOR, cpu), NULL, in cpuid_device_create()
138 device_destroy(cpuid_class, MKDEV(CPUID_MAJOR, cpu)); in cpuid_device_destroy()
/linux/fs/proc/
A Dproc_tty.c72 dev_t from = MKDEV(p->major, p->minor_start); in show_tty_driver()
96 dev_t next = MKDEV(MAJOR(from)+1, 0); in show_tty_driver()
/linux/drivers/char/pcmcia/
A Dscr24x_cs.c268 ret = cdev_add(&dev->c_dev, MKDEV(MAJOR(scr24x_devt), dev->devno), 1); in scr24x_probe()
278 device_create(scr24x_class, NULL, MKDEV(MAJOR(scr24x_devt), dev->devno), in scr24x_probe()
295 device_destroy(scr24x_class, MKDEV(MAJOR(scr24x_devt), dev->devno)); in scr24x_remove()
/linux/drivers/platform/chrome/wilco_ec/
A Dtelemetry.c386 dev_data->dev.devt = MKDEV(telem_major, minor); in telem_device_probe()
451 unregister_chrdev_region(MKDEV(telem_major, 0), TELEM_MAX_DEV); in telem_module_init()
461 unregister_chrdev_region(MKDEV(telem_major, 0), TELEM_MAX_DEV); in telem_module_exit()
/linux/drivers/usb/core/
A Dfile.c204 MKDEV(USB_MAJOR, minor), class_driver, in usb_register_dev()
237 device_destroy(usb_class->class, MKDEV(USB_MAJOR, intf->minor)); in usb_deregister_dev()
/linux/drivers/s390/char/
A Dfs3270.c531 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor), in fs3270_create_cb()
537 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, minor)); in fs3270_destroy_cb()
558 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, 0), in fs3270_init()
568 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, 0)); in fs3270_exit()
A Dtape_char.c71 MKDEV(tapechar_major, device->first_minor), in tapechar_setup_device()
79 MKDEV(tapechar_major, device->first_minor + 1), in tapechar_setup_device()
487 unregister_chrdev_region(MKDEV(tapechar_major, 0), 256); in tapechar_exit()
/linux/fs/coda/
A Dpsdev.c372 MKDEV(CODA_PSDEV_MAJOR, i), NULL, "cfs%d", i); in init_coda_psdev()
411 device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i)); in init_coda()
429 device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i)); in exit_coda()
/linux/drivers/crypto/qat/qat_common/
A Dadf_ctl_drv.c40 device_destroy(adf_ctl_drv.drv_class, MKDEV(adf_ctl_drv.major, 0)); in adf_chr_drv_destroy()
43 unregister_chrdev_region(MKDEV(adf_ctl_drv.major, 0), 1); in adf_chr_drv_destroy()
69 MKDEV(adf_ctl_drv.major, 0), in adf_chr_drv_create()
/linux/drivers/hid/
A Dhid-roccat.c321 MKDEV(roccat_major, minor), NULL, in roccat_connect()
361 device_destroy(device->dev->class, MKDEV(roccat_major, minor)); in roccat_disconnect()
446 dev_t dev_id = MKDEV(roccat_major, 0); in roccat_exit()

Completed in 44 milliseconds

123456789