Home
last modified time | relevance | path

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

123456789

/kernel/linux/linux-5.10/include/linux/
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 …]
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()
/kernel/linux/linux-5.10/arch/mips/kernel/
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()
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()
/kernel/linux/linux-5.10/drivers/dca/
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()
/kernel/linux/linux-5.10/drivers/char/
Draw.c138 dev_t dev = MKDEV(major, minor); in bind_set()
139 dev_t raw = MKDEV(RAW_MAJOR, number); in bind_set()
308 dev_t dev = MKDEV(RAW_MAJOR, 0); in raw_init()
341 device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl"); in raw_init()
354 device_destroy(raw_class, MKDEV(RAW_MAJOR, 0)); in raw_exit()
357 unregister_chrdev_region(MKDEV(RAW_MAJOR, 0), max_raw_minors); in raw_exit()
Dscx200_gpio.c99 devid = MKDEV(major, 0); in scx200_gpio_init()
128 unregister_chrdev_region(MKDEV(major, 0), MAX_PINS); in scx200_gpio_cleanup()
Dmisc.c203 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register()
248 device_destroy(misc_class, MKDEV(MISC_MAJOR, misc->minor)); in misc_deregister()
/kernel/linux/linux-5.10/drivers/tty/vt/
Dvc_screen.c787 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 1), NULL, in vcs_make_sysfs()
789 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 65), NULL, in vcs_make_sysfs()
791 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 129), NULL, in vcs_make_sysfs()
797 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 1)); in vcs_remove_sysfs()
798 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 65)); in vcs_remove_sysfs()
799 device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 129)); in vcs_remove_sysfs()
810 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs"); in vcs_init()
811 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 64), NULL, "vcsu"); in vcs_init()
812 device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa"); in vcs_init()
/kernel/linux/linux-5.10/fs/pstore/
Dpmsg.c74 pmsg_device = device_create(pmsg_class, NULL, MKDEV(pmsg_major, 0), in pstore_register_pmsg()
92 device_destroy(pmsg_class, MKDEV(pmsg_major, 0)); in pstore_unregister_pmsg()
/kernel/linux/linux-5.10/drivers/block/rnbd/
Drnbd-srv-sysfs.c188 MKDEV(0, 0), NULL, "ctl"); in rnbd_srv_create_sysfs_files()
202 device_destroy(rnbd_dev_class, MKDEV(0, 0)); in rnbd_srv_create_sysfs_files()
213 device_destroy(rnbd_dev_class, MKDEV(0, 0)); in rnbd_srv_destroy_sysfs_files()
/kernel/linux/linux-5.10/drivers/tty/
Dtty_audit.c42 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()
Dtty_io.c321 dev_t base = MKDEV(p->major, p->minor_start); in get_tty_driver()
367 *number = MKDEV(p->major, p->minor_start + index); in tty_dev_name_to_number()
1887 if (device != MKDEV(TTYAUX_MAJOR, 0)) in tty_open_current_tty()
1926 case MKDEV(TTY_MAJOR, 0): { in tty_lookup_driver()
1933 case MKDEV(TTYAUX_MAJOR, 1): { in tty_lookup_driver()
2157 (IS_ENABLED(CONFIG_VT) && device == MKDEV(TTY_MAJOR, 0)) || in tty_open()
2158 device == MKDEV(TTYAUX_MAJOR, 1) || in tty_open()
3204 dev_t devt = MKDEV(driver->major, driver->minor_start) + index; in tty_register_device_attr()
3282 MKDEV(driver->major, driver->minor_start) + index); in tty_unregister_device()
3421 dev = MKDEV(driver->major, driver->minor_start); in tty_register_driver()
[all …]
/kernel/linux/linux-5.10/drivers/staging/vme/devices/
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()
/kernel/linux/linux-5.10/fs/
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()
/kernel/linux/linux-5.10/arch/x86/kernel/
Dcpuid.c132 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()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dkdev_t.h23 #define MKDEV(ma,mi) ((ma) << 8 | (mi)) macro
/kernel/linux/linux-5.10/include/uapi/linux/
Dkdev_t.h12 #define MKDEV(ma,mi) ((ma)<<8 | (mi)) macro
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dkdev_t.h11 #define MKDEV(ma,mi) ((ma)<<8 | (mi)) macro
/kernel/linux/linux-5.10/fs/proc/
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()
/kernel/linux/linux-5.10/drivers/usb/core/
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()
/kernel/linux/linux-5.10/init/
Dnoinitramfs.c26 new_encode_dev(MKDEV(5, 1))); in default_rootfs()
/kernel/linux/linux-5.10/drivers/char/pcmcia/
Dscr24x_cs.c269 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()
/kernel/linux/linux-5.10/drivers/staging/hilog/
Dhilog.c370 dev_t devno = MKDEV(hilog_major, 0); in hilogdev_init()
382 cdev_add(&g_hilog_cdev, MKDEV(hilog_major, 0), HILOG_NR_DEVS); in hilogdev_init()
391 unregister_chrdev_region(MKDEV(hilog_major, 0), HILOG_NR_DEVS); in hilog_exit_module()
/kernel/linux/linux-5.10/drivers/platform/chrome/wilco_ec/
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()

123456789