/Linux-v4.19/include/linux/ |
D | root_dev.h | 10 Root_NFS = MKDEV(UNNAMED_MAJOR, 255), 11 Root_RAM0 = MKDEV(RAMDISK_MAJOR, 0), 12 Root_RAM1 = MKDEV(RAMDISK_MAJOR, 1), 13 Root_FD0 = MKDEV(FLOPPY_MAJOR, 0), 14 Root_HDA1 = MKDEV(IDE0_MAJOR, 1), 15 Root_HDA2 = MKDEV(IDE0_MAJOR, 2), 16 Root_SDA1 = MKDEV(SCSI_DISK0_MAJOR, 1), 17 Root_SDA2 = MKDEV(SCSI_DISK0_MAJOR, 2), 18 Root_HDC1 = MKDEV(IDE1_MAJOR, 1), 19 Root_SR0 = MKDEV(SCSI_CDROM_MAJOR, 0),
|
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-v4.19/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-v4.19/drivers/char/ |
D | raw.c | 129 dev_t dev = MKDEV(major, minor); in bind_set() 170 device_destroy(raw_class, MKDEV(RAW_MAJOR, number)); in bind_set() 176 dev_t raw = MKDEV(RAW_MAJOR, number); in bind_set() 315 dev_t dev = MKDEV(RAW_MAJOR, 0); in raw_init() 348 device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl"); in raw_init() 361 device_destroy(raw_class, MKDEV(RAW_MAJOR, 0)); in raw_exit() 364 unregister_chrdev_region(MKDEV(RAW_MAJOR, 0), max_raw_minors); in raw_exit()
|
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-v4.19/drivers/dca/ |
D | dca-sysfs.c | 41 cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), NULL, in dca_sysfs_add_req() 50 device_destroy(dca_class, MKDEV(0, slot + 1)); in dca_sysfs_remove_req() 70 cd = device_create(dca_class, dev, MKDEV(0, 0), NULL, "dca%d", dca->id); in dca_sysfs_add_provider()
|
/Linux-v4.19/drivers/tty/vt/ |
D | vc_screen.c | 687 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 1), NULL, in vcs_make_sysfs() 689 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 65), NULL, in vcs_make_sysfs() 691 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 129), NULL, in vcs_make_sysfs() 697 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 1)); in vcs_remove_sysfs() 698 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 65)); in vcs_remove_sysfs() 699 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 129)); in vcs_remove_sysfs() 710 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs"); in vcs_init() 711 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 64), NULL, "vcsu"); in vcs_init() 712 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa"); in vcs_init()
|
/Linux-v4.19/fs/pstore/ |
D | pmsg.c | 81 pmsg_device = device_create(pmsg_class, NULL, MKDEV(pmsg_major, 0), in pstore_register_pmsg() 99 device_destroy(pmsg_class, MKDEV(pmsg_major, 0)); in pstore_unregister_pmsg()
|
/Linux-v4.19/drivers/tty/ |
D | tty_audit.c | 42 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()
|
D | tty_io.c | 322 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() 1787 if (device != MKDEV(TTYAUX_MAJOR, 0)) in tty_open_current_tty() 1826 case MKDEV(TTY_MAJOR, 0): { in tty_lookup_driver() 1833 case MKDEV(TTYAUX_MAJOR, 1): { in tty_lookup_driver() 2056 (IS_ENABLED(CONFIG_VT) && device == MKDEV(TTY_MAJOR, 0)) || in tty_open() 2057 device == MKDEV(TTYAUX_MAJOR, 1) || in tty_open() 2951 dev_t devt = MKDEV(driver->major, driver->minor_start) + index; in tty_register_device_attr() 3029 MKDEV(driver->major, driver->minor_start) + index); in tty_unregister_device() 3168 dev = MKDEV(driver->major, driver->minor_start); in tty_register_driver() [all …]
|
/Linux-v4.19/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-v4.19/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 | 38 new_encode_dev(MKDEV(5, 1))); in default_rootfs()
|
/Linux-v4.19/drivers/i2c/ |
D | i2c-dev.c | 648 res = cdev_add(&i2c_dev->cdev, MKDEV(I2C_MAJOR, adap->nr), 1); in i2cdev_attach_adapter() 654 MKDEV(I2C_MAJOR, adap->nr), NULL, in i2cdev_attach_adapter() 686 device_destroy(i2c_dev_class, MKDEV(I2C_MAJOR, adap->nr)); in i2cdev_detach_adapter() 723 res = register_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS, "i2c"); in i2c_dev_init() 747 unregister_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS); in i2c_dev_init() 758 unregister_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS); in i2c_dev_exit()
|
/Linux-v4.19/arch/x86/kernel/ |
D | cpuid.c | 137 dev = device_create(cpuid_class, NULL, MKDEV(CPUID_MAJOR, cpu), NULL, in cpuid_device_create() 144 device_destroy(cpuid_class, MKDEV(CPUID_MAJOR, cpu)); in cpuid_device_destroy()
|
D | msr.c | 188 dev = device_create(msr_class, NULL, MKDEV(MSR_MAJOR, cpu), NULL, in msr_device_create() 195 device_destroy(msr_class, MKDEV(MSR_MAJOR, cpu)); in msr_device_destroy()
|
/Linux-v4.19/fs/ |
D | char_dev.c | 210 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region() 222 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region() 246 *dev = MKDEV(cd->major, cd->baseminor); in alloc_chrdev_region() 291 err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); in __register_chrdev() 320 next = MKDEV(MAJOR(n)+1, 0); in unregister_chrdev_region()
|
/Linux-v4.19/net/netfilter/ |
D | xt_IDLETIMER.c | 280 MKDEV(0, 0), NULL, "timers"); in idletimer_tg_init() 297 device_destroy(idletimer_tg_class, MKDEV(0, 0)); in idletimer_tg_init() 308 device_destroy(idletimer_tg_class, MKDEV(0, 0)); in idletimer_tg_exit()
|
/Linux-v4.19/include/uapi/linux/ |
D | kdev_t.h | 12 #define MKDEV(ma,mi) ((ma)<<8 | (mi)) macro
|
/Linux-v4.19/drivers/misc/mic/cosm/ |
D | cosm_main.c | 269 MKDEV(0, cdev->index), cdev, cdev->attr_group, in cosm_driver_probe() 288 device_destroy(g_cosm_class, MKDEV(0, cdev->index)); in cosm_driver_probe() 299 device_destroy(g_cosm_class, MKDEV(0, cdev->index)); in cosm_driver_remove()
|
/Linux-v4.19/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-v4.19/drivers/scsi/osd/ |
D | osd_uld.c | 441 oud->class_dev.devt = MKDEV(SCSI_OSD_MAJOR, oud->minor); in osd_probe() 538 err = register_chrdev_region(MKDEV(SCSI_OSD_MAJOR, 0), in osd_uld_init() 556 unregister_chrdev_region(MKDEV(SCSI_OSD_MAJOR, 0), SCSI_OSD_MAX_MINOR); in osd_uld_init() 565 unregister_chrdev_region(MKDEV(SCSI_OSD_MAJOR, 0), SCSI_OSD_MAX_MINOR); in osd_uld_exit()
|
/Linux-v4.19/drivers/usb/core/ |
D | file.c | 203 MKDEV(USB_MAJOR, minor), class_driver, in usb_register_dev() 242 device_destroy(usb_class->class, MKDEV(USB_MAJOR, intf->minor)); in usb_deregister_dev()
|
/Linux-v4.19/drivers/char/pcmcia/ |
D | scr24x_cs.c | 282 ret = cdev_add(&dev->c_dev, MKDEV(MAJOR(scr24x_devt), dev->devno), 1); in scr24x_probe() 292 device_create(scr24x_class, NULL, MKDEV(MAJOR(scr24x_devt), dev->devno), in scr24x_probe() 309 device_destroy(scr24x_class, MKDEV(MAJOR(scr24x_devt), dev->devno)); in scr24x_remove()
|