Searched refs:MKDEV (Results 1 - 25 of 204) sorted by relevance

123456789

/linux-master/include/linux/
H A Droot_dev.h10 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 Dkdev_t.h12 #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 Dkdev_t.h7 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 Ddca-sysfs.c25 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 Dnoinitramfs.c28 new_encode_dev(MKDEV(5, 1)));
/linux-master/arch/mips/kernel/
H A Drtlx-mt.c98 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 Dpmsg.c73 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 Dxillybus_class.c102 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 Dscx200_gpio.c99 devid = MKDEV(major, 0);
128 unregister_chrdev_region(MKDEV(major, 0), MAX_PINS);
/linux-master/drivers/usb/core/
H A Dfile.c151 MKDEV(USB_MAJOR, minor), class_driver,
184 device_destroy(&usbmisc_class, MKDEV(USB_MAJOR, intf->minor));
/linux-master/fs/smb/client/
H A Dreparse.h19 return MKDEV(v >> 32, v & 0xffffffff);
26 return MKDEV(v & 0xffffffff, v >> 32);
/linux-master/drivers/tty/vt/
H A Dvc_screen.c795 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 Dproc_tty.c70 dev_t from = MKDEV(p->major, p->minor_start);
94 dev_t next = MKDEV(MAJOR(from)+1, 0);
H A Dconsoles.c47 dev = MKDEV(driver->major, driver->minor_start);
/linux-master/arch/x86/kernel/
H A Dcpuid.c140 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 Dearly-lookup.c126 dev_t devt = MKDEV(0, 0);
141 devt = MKDEV(MAJOR(dev->devt),
204 *devt = MKDEV(maj, min);
/linux-master/drivers/block/rnbd/
H A Drnbd-srv-sysfs.c223 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 Dvme_user.c545 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 Dtape_char.c71 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 Dadf_ctl_drv.c44 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 Dhid-roccat.c325 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 Dtelemetry.c385 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 Dremoteproc_cdev.c105 rproc->dev.devt = MKDEV(MAJOR(rproc_major), rproc->index);
/linux-master/drivers/mtd/
H A Dmtdsuper.c33 sb = sget_dev(fc, MKDEV(MTD_BLOCK_MAJOR, mtd->index));
/linux-master/drivers/infiniband/hw/hfi1/
H A Ddevice.c44 const dev_t dev = MKDEV(MAJOR(hfi1_dev), minor);

Completed in 280 milliseconds

123456789