| /Linux-v5.4/include/linux/ |
| D | root_dev.h | 10 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 …]
|
| 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-v5.4/arch/mips/kernel/ |
| D | rtlx-cmp.c | 77 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()
|
| D | rtlx-mt.c | 103 dev = device_create(mt_class, NULL, MKDEV(major, i), NULL, in rtlx_module_init() 107 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init() 136 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init() 148 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_exit()
|
| /Linux-v5.4/drivers/char/ |
| D | raw.c | 130 dev_t dev = MKDEV(major, minor); in bind_set() 171 device_destroy(raw_class, MKDEV(RAW_MAJOR, number)); in bind_set() 177 dev_t raw = MKDEV(RAW_MAJOR, number); in bind_set() 316 dev_t dev = MKDEV(RAW_MAJOR, 0); in raw_init() 349 device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl"); in raw_init() 362 device_destroy(raw_class, MKDEV(RAW_MAJOR, 0)); in raw_exit() 365 unregister_chrdev_region(MKDEV(RAW_MAJOR, 0), max_raw_minors); in raw_exit()
|
| D | scx200_gpio.c | 99 devid = MKDEV(major, 0); in scx200_gpio_init() 128 unregister_chrdev_region(MKDEV(major, 0), MAX_PINS); in scx200_gpio_cleanup()
|
| /Linux-v5.4/drivers/dca/ |
| D | dca-sysfs.c | 25 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-v5.4/drivers/tty/vt/ |
| D | vc_screen.c | 715 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 1), NULL, in vcs_make_sysfs() 717 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 65), NULL, in vcs_make_sysfs() 719 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 129), NULL, in vcs_make_sysfs() 725 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 1)); in vcs_remove_sysfs() 726 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 65)); in vcs_remove_sysfs() 727 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 129)); in vcs_remove_sysfs() 738 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs"); in vcs_init() 739 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 64), NULL, "vcsu"); in vcs_init() 740 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa"); in vcs_init()
|
| /Linux-v5.4/fs/pstore/ |
| 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-v5.4/drivers/tty/ |
| D | tty_audit.c | 42 buf->dev = MKDEV(0, 0); in tty_audit_buf_alloc() 140 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_audit_tiocsti() 227 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_audit_add_data()
|
| D | tty_io.c | 323 dev_t base = MKDEV(p->major, p->minor_start); in get_tty_driver() 369 *number = MKDEV(p->major, p->minor_start + index); in tty_dev_name_to_number() 1805 if (device != MKDEV(TTYAUX_MAJOR, 0)) in tty_open_current_tty() 1844 case MKDEV(TTY_MAJOR, 0): { in tty_lookup_driver() 1851 case MKDEV(TTYAUX_MAJOR, 1): { in tty_lookup_driver() 2076 (IS_ENABLED(CONFIG_VT) && device == MKDEV(TTY_MAJOR, 0)) || in tty_open() 2077 device == MKDEV(TTYAUX_MAJOR, 1) || in tty_open() 3108 dev_t devt = MKDEV(driver->major, driver->minor_start) + index; in tty_register_device_attr() 3186 MKDEV(driver->major, driver->minor_start) + index); in tty_unregister_device() 3325 dev = MKDEV(driver->major, driver->minor_start); in tty_register_driver() [all …]
|
| /Linux-v5.4/drivers/staging/vme/devices/ |
| D | vme_user.c | 543 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-v5.4/init/ |
| D | do_mounts_md.c | 136 dev = MKDEV(mdp_major, minor << MdpMinorShift); in md_setup_drive() 138 dev = MKDEV(MD_MAJOR, minor); in md_setup_drive() 297 create_dev("/dev/md0", MKDEV(MD_MAJOR, 0)); in md_run_setup()
|
| D | noinitramfs.c | 26 new_encode_dev(MKDEV(5, 1))); in default_rootfs()
|
| /Linux-v5.4/drivers/i2c/ |
| D | i2c-dev.c | 647 res = cdev_add(&i2c_dev->cdev, MKDEV(I2C_MAJOR, adap->nr), 1); in i2cdev_attach_adapter() 653 MKDEV(I2C_MAJOR, adap->nr), NULL, in i2cdev_attach_adapter() 685 device_destroy(i2c_dev_class, MKDEV(I2C_MAJOR, adap->nr)); in i2cdev_detach_adapter() 722 res = register_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS, "i2c"); in i2c_dev_init() 746 unregister_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS); in i2c_dev_init() 757 unregister_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS); in i2c_dev_exit()
|
| /Linux-v5.4/fs/ |
| D | char_dev.c | 207 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-v5.4/arch/x86/kernel/ |
| D | cpuid.c | 132 dev = device_create(cpuid_class, NULL, MKDEV(CPUID_MAJOR, cpu), NULL, in cpuid_device_create() 139 device_destroy(cpuid_class, MKDEV(CPUID_MAJOR, cpu)); in cpuid_device_destroy()
|
| D | msr.c | 191 dev = device_create(msr_class, NULL, MKDEV(MSR_MAJOR, cpu), NULL, in msr_device_create() 198 device_destroy(msr_class, MKDEV(MSR_MAJOR, cpu)); in msr_device_destroy()
|
| /Linux-v5.4/net/netfilter/ |
| D | xt_IDLETIMER.c | 277 MKDEV(0, 0), NULL, "timers"); in idletimer_tg_init() 294 device_destroy(idletimer_tg_class, MKDEV(0, 0)); in idletimer_tg_init() 305 device_destroy(idletimer_tg_class, MKDEV(0, 0)); in idletimer_tg_exit()
|
| /Linux-v5.4/include/uapi/linux/ |
| D | kdev_t.h | 12 #define MKDEV(ma,mi) ((ma)<<8 | (mi)) macro
|
| /Linux-v5.4/drivers/misc/mic/cosm/ |
| D | cosm_main.c | 257 MKDEV(0, cdev->index), cdev, cdev->attr_group, in cosm_driver_probe() 276 device_destroy(g_cosm_class, MKDEV(0, cdev->index)); in cosm_driver_probe() 287 device_destroy(g_cosm_class, MKDEV(0, cdev->index)); in cosm_driver_remove()
|
| /Linux-v5.4/fs/proc/ |
| D | proc_tty.c | 72 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-v5.4/drivers/usb/core/ |
| D | file.c | 204 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-v5.4/drivers/platform/chrome/wilco_ec/ |
| D | telemetry.c | 386 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-v5.4/drivers/char/pcmcia/ |
| D | scr24x_cs.c | 269 ret = cdev_add(&dev->c_dev, MKDEV(MAJOR(scr24x_devt), dev->devno), 1); in scr24x_probe() 279 device_create(scr24x_class, NULL, MKDEV(MAJOR(scr24x_devt), dev->devno), in scr24x_probe() 296 device_destroy(scr24x_class, MKDEV(MAJOR(scr24x_devt), dev->devno)); in scr24x_remove()
|