/linux-master/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); 50 return MKDEV(major, minor);
|
/linux-master/include/uapi/linux/ |
H A D | kdev_t.h | 7 Some programs want their definitions of MAJOR and MINOR and MKDEV 12 #define MKDEV(ma,mi) ((ma)<<8 | (mi)) macro
|
/linux-master/drivers/dca/ |
H A D | dca-sysfs.c | 25 cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), NULL, 32 device_destroy(dca_class, MKDEV(0, slot + 1)); 52 cd = device_create(dca_class, dev, MKDEV(0, 0), NULL, "dca%d", dca->id);
|
/linux-master/init/ |
H A D | noinitramfs.c | 28 new_encode_dev(MKDEV(5, 1)));
|
/linux-master/arch/mips/kernel/ |
H A D | rtlx-mt.c | 98 dev = device_create(&mt_class, NULL, MKDEV(major, i), NULL, 102 device_destroy(&mt_class, MKDEV(major, i)); 130 device_destroy(&mt_class, MKDEV(major, i)); 142 device_destroy(&mt_class, MKDEV(major, i));
|
/linux-master/fs/pstore/ |
H A D | pmsg.c | 73 pmsg_device = device_create(pmsg_class, NULL, MKDEV(pmsg_major, 0), 91 device_destroy(pmsg_class, MKDEV(pmsg_major, 0));
|
/linux-master/drivers/char/xillybus/ |
H A D | xillybus_class.c | 102 rc = cdev_add(unit->cdev, MKDEV(unit->major, unit->lowest_minor), 128 MKDEV(unit->major, 157 device_destroy(&xillybus_class, MKDEV(unit->major, 163 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), 198 device_destroy(&xillybus_class, MKDEV(unit->major, minor)); 202 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor),
|
/linux-master/drivers/char/ |
H A D | scx200_gpio.c | 99 devid = MKDEV(major, 0); 128 unregister_chrdev_region(MKDEV(major, 0), MAX_PINS);
|
/linux-master/drivers/usb/core/ |
H A D | file.c | 151 MKDEV(USB_MAJOR, minor), class_driver, 184 device_destroy(&usbmisc_class, MKDEV(USB_MAJOR, intf->minor));
|
/linux-master/fs/smb/client/ |
H A D | reparse.h | 19 return MKDEV(v >> 32, v & 0xffffffff); 26 return MKDEV(v & 0xffffffff, v >> 32);
|
/linux-master/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); 796 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, index + 65), NULL, "vcsu%u", index + 1); 797 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, index + 129), NULL, "vcsa%u", index + 1); 802 device_destroy(&vc_class, MKDEV(VCS_MAJOR, index + 1)); 803 device_destroy(&vc_class, MKDEV(VCS_MAJOR, index + 65)); 804 device_destroy(&vc_class, MKDEV(VCS_MAJOR, index + 129)); 816 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs"); 817 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, 64), NULL, "vcsu"); 818 device_create(&vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa");
|
/linux-master/fs/proc/ |
H A D | proc_tty.c | 70 dev_t from = MKDEV(p->major, p->minor_start); 94 dev_t next = MKDEV(MAJOR(from)+1, 0);
|
H A D | consoles.c | 47 dev = MKDEV(driver->major, driver->minor_start);
|
/linux-master/arch/x86/kernel/ |
H A D | cpuid.c | 140 dev = device_create(&cpuid_class, NULL, MKDEV(CPUID_MAJOR, cpu), NULL, 147 device_destroy(&cpuid_class, MKDEV(CPUID_MAJOR, cpu));
|
/linux-master/block/ |
H A D | early-lookup.c | 126 dev_t devt = MKDEV(0, 0); 141 devt = MKDEV(MAJOR(dev->devt), 204 *devt = MKDEV(maj, min);
|
/linux-master/drivers/block/rnbd/ |
H A D | rnbd-srv-sysfs.c | 223 MKDEV(0, 0), NULL, "ctl"); 237 device_destroy(&rnbd_dev_class, MKDEV(0, 0)); 248 device_destroy(&rnbd_dev_class, MKDEV(0, 0));
|
/linux-master/drivers/staging/vme_user/ |
H A D | vme_user.c | 545 err = register_chrdev_region(MKDEV(VME_MAJOR, 0), VME_DEVS, DRIVER_NAME); 560 err = cdev_add(vme_user_cdev, MKDEV(VME_MAJOR, 0), VME_DEVS); 645 MKDEV(VME_MAJOR, i), NULL, 659 device_destroy(&vme_user_sysfs_class, MKDEV(VME_MAJOR, i)); 686 unregister_chrdev_region(MKDEV(VME_MAJOR, 0), VME_DEVS); 699 device_destroy(&vme_user_sysfs_class, MKDEV(VME_MAJOR, i)); 719 unregister_chrdev_region(MKDEV(VME_MAJOR, 0), VME_DEVS);
|
/linux-master/drivers/s390/char/ |
H A D | tape_char.c | 71 MKDEV(tapechar_major, device->first_minor), 79 MKDEV(tapechar_major, device->first_minor + 1), 487 unregister_chrdev_region(MKDEV(tapechar_major, 0), 256);
|
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_ctl_drv.c | 44 device_destroy(adf_ctl_drv.drv_class, MKDEV(adf_ctl_drv.major, 0)); 47 unregister_chrdev_region(MKDEV(adf_ctl_drv.major, 0), 1); 73 MKDEV(adf_ctl_drv.major, 0),
|
/linux-master/drivers/hid/ |
H A D | hid-roccat.c | 325 MKDEV(roccat_major, minor), NULL, 365 device_destroy(device->dev->class, MKDEV(roccat_major, minor)); 450 dev_t dev_id = MKDEV(roccat_major, 0);
|
/linux-master/drivers/platform/chrome/wilco_ec/ |
H A D | telemetry.c | 385 dev_data->dev.devt = MKDEV(telem_major, minor); 448 unregister_chrdev_region(MKDEV(telem_major, 0), TELEM_MAX_DEV); 458 unregister_chrdev_region(MKDEV(telem_major, 0), TELEM_MAX_DEV);
|
/linux-master/drivers/remoteproc/ |
H A D | remoteproc_cdev.c | 105 rproc->dev.devt = MKDEV(MAJOR(rproc_major), rproc->index);
|
/linux-master/drivers/mtd/ |
H A D | mtdsuper.c | 33 sb = sget_dev(fc, MKDEV(MTD_BLOCK_MAJOR, mtd->index));
|
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | device.c | 44 const dev_t dev = MKDEV(MAJOR(hfi1_dev), minor);
|