/linux-6.6.21/include/linux/ |
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),
|
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-6.6.21/drivers/char/xillybus/ |
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-6.6.21/arch/mips/kernel/ |
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-6.6.21/drivers/dca/ |
D | dca-sysfs.c | 25 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-6.6.21/drivers/tty/vt/ |
D | vc_screen.c | 793 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 1), NULL, in vcs_make_sysfs() 795 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 65), NULL, in vcs_make_sysfs() 797 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 129), NULL, in vcs_make_sysfs() 803 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 1)); in vcs_remove_sysfs() 804 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 65)); in vcs_remove_sysfs() 805 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-6.6.21/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-6.6.21/drivers/char/ |
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()
|
D | misc.c | 240 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register() 280 device_destroy(&misc_class, MKDEV(MISC_MAJOR, misc->minor)); in misc_deregister()
|
/linux-6.6.21/drivers/staging/vme_user/ |
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-6.6.21/drivers/block/rnbd/ |
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-6.6.21/block/ |
D | early-lookup.c | 126 dev_t devt = MKDEV(0, 0); in blk_lookup_devt() 141 devt = MKDEV(MAJOR(dev->devt), in blk_lookup_devt() 204 *devt = MKDEV(maj, min); in devt_from_devnum()
|
/linux-6.6.21/drivers/usb/core/ |
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-6.6.21/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-6.6.21/drivers/tty/ |
D | tty_io.c | 312 dev_t base = MKDEV(p->major, p->minor_start); in get_tty_driver() 359 *number = MKDEV(p->major, p->minor_start + index); in tty_dev_name_to_number() 1879 if (device != MKDEV(TTYAUX_MAJOR, 0)) in tty_open_current_tty() 1919 case MKDEV(TTY_MAJOR, 0): { in tty_lookup_driver() 1927 case MKDEV(TTYAUX_MAJOR, 1): { in tty_lookup_driver() 2171 (IS_ENABLED(CONFIG_VT) && device == MKDEV(TTY_MAJOR, 0)) || in tty_open() 2172 device == MKDEV(TTYAUX_MAJOR, 1) || in tty_open() 3221 dev_t devt = MKDEV(driver->major, driver->minor_start) + index; in tty_register_device_attr() 3297 device_destroy(&tty_class, MKDEV(driver->major, driver->minor_start) + index); in tty_unregister_device() 3431 dev = MKDEV(driver->major, driver->minor_start); in tty_register_driver() [all …]
|
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-6.6.21/arch/x86/kernel/ |
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-6.6.21/fs/proc/ |
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-6.6.21/include/uapi/linux/ |
D | kdev_t.h | 12 #define MKDEV(ma,mi) ((ma)<<8 | (mi)) macro
|
/linux-6.6.21/init/ |
D | noinitramfs.c | 28 new_encode_dev(MKDEV(5, 1))); in default_rootfs()
|
/linux-6.6.21/drivers/platform/chrome/wilco_ec/ |
D | telemetry.c | 385 dev_data->dev.devt = MKDEV(telem_major, minor); in telem_device_probe() 450 unregister_chrdev_region(MKDEV(telem_major, 0), TELEM_MAX_DEV); in telem_module_init() 460 unregister_chrdev_region(MKDEV(telem_major, 0), TELEM_MAX_DEV); in telem_module_exit()
|
/linux-6.6.21/drivers/s390/char/ |
D | fs3270.c | 524 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor), in fs3270_create_cb() 530 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, minor)); in fs3270_destroy_cb() 549 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, 0), in fs3270_init() 558 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, 0)); in fs3270_exit()
|
D | tape_char.c | 71 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-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | adf_ctl_drv.c | 44 device_destroy(adf_ctl_drv.drv_class, MKDEV(adf_ctl_drv.major, 0)); in adf_chr_drv_destroy() 47 unregister_chrdev_region(MKDEV(adf_ctl_drv.major, 0), 1); in adf_chr_drv_destroy() 73 MKDEV(adf_ctl_drv.major, 0), in adf_chr_drv_create()
|
/linux-6.6.21/fs/coda/ |
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()
|