/linux/include/linux/ |
H A D | root_dev.h | 10 Root_NFS = MKDEV(UNNAMED_MAJOR, 255), 11 Root_CIFS = MKDEV(UNNAMED_MAJOR, 254), 12 Root_Generic = MKDEV(UNNAMED_MAJOR, 253), 13 Root_RAM0 = MKDEV(RAMDISK_MAJOR, 0),
|
H A D | kdev_t.h | 12 #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/ |
H A D | xillybus_class.c | 102 rc = cdev_add(unit->cdev, MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev() 128 MKDEV(unit->major, in xillybus_init_chrdev() 157 device_destroy(&xillybus_class, MKDEV(unit->major, in xillybus_init_chrdev() 163 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev() 198 device_destroy(&xillybus_class, MKDEV(unit->major, minor)); in xillybus_cleanup_chrdev() 202 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_cleanup_chrdev()
|
/linux/arch/mips/kernel/ |
H A D | rtlx-mt.c | 98 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/ |
H A D | dca-sysfs.c | 27 cd = device_create(&dca_class, dca->cd, MKDEV(0, slot + 1), NULL, in dca_sysfs_add_req() 34 device_destroy(&dca_class, MKDEV(0, slot + 1)); in dca_sysfs_remove_req() 54 cd = device_create(&dca_class, dev, MKDEV(0, 0), NULL, "dca%d", dca->id); in dca_sysfs_add_provider()
|
/linux/drivers/tty/vt/ |
H A D | vc_screen.c | 795 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, index + 1), NULL, "vcs%u", index + 1); in vcs_make_sysfs() 796 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, index + 65), NULL, "vcsu%u", index + 1); in vcs_make_sysfs() 797 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, index + 129), NULL, "vcsa%u", index + 1); in vcs_make_sysfs() 802 device_destroy(&vc_class, MKDEV(VCS_MAJOR, index + 1)); in vcs_remove_sysfs() 803 device_destroy(&vc_class, MKDEV(VCS_MAJOR, index + 65)); in vcs_remove_sysfs() 804 device_destroy(&vc_class, MKDEV(VCS_MAJOR, index + 129)); in vcs_remove_sysfs() 816 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs"); in vcs_init() 817 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, 64), NULL, "vcsu"); in vcs_init() 818 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa"); in vcs_init()
|
/linux/drivers/staging/vme_user/ |
H A D | vme_user.c | 546 err = register_chrdev_region(MKDEV(VME_MAJOR, 0), VME_DEVS, DRIVER_NAME); in vme_user_probe() 561 err = cdev_add(vme_user_cdev, MKDEV(VME_MAJOR, 0), VME_DEVS); in vme_user_probe() 646 MKDEV(VME_MAJOR, i), NULL, in vme_user_probe() 660 device_destroy(&vme_user_sysfs_class, MKDEV(VME_MAJOR, i)); in vme_user_probe() 687 unregister_chrdev_region(MKDEV(VME_MAJOR, 0), VME_DEVS); in vme_user_probe() 700 device_destroy(&vme_user_sysfs_class, MKDEV(VME_MAJOR, i)); in vme_user_remove() 720 unregister_chrdev_region(MKDEV(VME_MAJOR, 0), VME_DEVS); in vme_user_remove()
|
/linux/fs/pstore/ |
H A D | pmsg.c | 73 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/char/ |
H A D | scx200_gpio.c | 98 devid = MKDEV(major, 0); in scx200_gpio_init() 127 unregister_chrdev_region(MKDEV(major, 0), MAX_PINS); in scx200_gpio_cleanup()
|
/linux/drivers/block/rnbd/ |
H A D | rnbd-srv-sysfs.c | 223 MKDEV(0, 0), NULL, "ctl"); in rnbd_srv_create_sysfs_files() 237 device_destroy(&rnbd_dev_class, MKDEV(0, 0)); in rnbd_srv_create_sysfs_files() 248 device_destroy(&rnbd_dev_class, MKDEV(0, 0)); in rnbd_srv_destroy_sysfs_files()
|
/linux/drivers/usb/core/ |
H A D | file.c | 151 MKDEV(USB_MAJOR, minor), class_driver, in usb_register_dev() 184 device_destroy(&usbmisc_class, MKDEV(USB_MAJOR, intf->minor)); in usb_deregister_dev()
|
/linux/arch/x86/kernel/ |
H A D | cpuid.c | 140 dev = device_create(&cpuid_class, NULL, MKDEV(CPUID_MAJOR, cpu), NULL, in cpuid_device_create() 147 device_destroy(&cpuid_class, MKDEV(CPUID_MAJOR, cpu)); in cpuid_device_destroy()
|
/linux/fs/proc/ |
H A D | proc_tty.c | 70 dev_t from = MKDEV(p->major, p->minor_start); in show_tty_driver() 94 dev_t next = MKDEV(MAJOR(from)+1, 0); in show_tty_driver()
|
/linux/drivers/platform/chrome/wilco_ec/ |
H A D | telemetry.c | 385 dev_data->dev.devt = MKDEV(telem_major, minor); in telem_device_probe() 455 unregister_chrdev_region(MKDEV(telem_major, 0), TELEM_MAX_DEV); in telem_module_init() 465 unregister_chrdev_region(MKDEV(telem_major, 0), TELEM_MAX_DEV); in telem_module_exit()
|
/linux/drivers/s390/char/ |
H A D | fs3270.c | 523 device_create(&class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor), in fs3270_create_cb() 529 device_destroy(&class3270, MKDEV(IBM_FS3270_MAJOR, minor)); in fs3270_destroy_cb() 548 device_create(&class3270, NULL, MKDEV(IBM_FS3270_MAJOR, 0), in fs3270_init() 557 device_destroy(&class3270, MKDEV(IBM_FS3270_MAJOR, 0)); in fs3270_exit()
|
H A D | tape_char.c | 70 MKDEV(tapechar_major, device->first_minor), in tapechar_setup_device() 78 MKDEV(tapechar_major, device->first_minor + 1), in tapechar_setup_device() 486 unregister_chrdev_region(MKDEV(tapechar_major, 0), 256); in tapechar_exit()
|
/linux/include/uapi/linux/ |
H A D | kdev_t.h | 12 #define MKDEV(ma,mi) ((ma)<<8 | (mi)) macro
|
/linux/drivers/hid/ |
H A D | hid-roccat.c | 325 MKDEV(roccat_major, minor), NULL, in roccat_connect() 365 device_destroy(device->dev->class, MKDEV(roccat_major, minor)); in roccat_disconnect() 450 dev_t dev_id = MKDEV(roccat_major, 0); in roccat_exit()
|
/linux/fs/coda/ |
H A D | psdev.c | 372 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/intel/qat/qat_common/ |
H A D | adf_ctl_drv.c | 47 device_destroy(&adf_ctl_class, MKDEV(adf_ctl_drv.major, 0)); in adf_chr_drv_destroy() 50 unregister_chrdev_region(MKDEV(adf_ctl_drv.major, 0), 1); in adf_chr_drv_destroy() 76 MKDEV(adf_ctl_drv.major, 0), in adf_chr_drv_create()
|
/linux/drivers/tty/ |
H A D | tty_audit.c | 141 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_audit_tiocsti() 229 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_audit_add_data()
|
/linux/init/ |
H A D | noinitramfs.c | 28 new_encode_dev(MKDEV(5, 1))); in default_rootfs()
|
/linux/drivers/misc/ |
H A D | phantom.c | 402 retval = cdev_add(&pht->cdev, MKDEV(phantom_major, minor), 1); in phantom_probe() 409 MKDEV(phantom_major, minor), NULL, in phantom_probe() 441 device_destroy(&phantom_class, MKDEV(phantom_major, minor)); in phantom_remove() 550 unregister_chrdev_region(MKDEV(phantom_major, 0), PHANTOM_MAX_MINORS); in phantom_exit()
|
/linux/drivers/net/ipvlan/ |
H A D | ipvtap.c | 162 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event() 179 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event()
|
/linux/drivers/net/ |
H A D | macvtap.c | 175 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event() 192 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event()
|