Home
last modified time | relevance | path

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

1234

/linux-4.19.296/include/linux/
Droot_dev.h10 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),
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()
/linux-4.19.296/drivers/char/
Draw.c129 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()
Dscx200_gpio.c98 devid = MKDEV(major, 0); in scx200_gpio_init()
127 unregister_chrdev_region(MKDEV(major, 0), MAX_PINS); in scx200_gpio_cleanup()
Dmisc.c203 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register()
247 device_destroy(misc_class, MKDEV(MISC_MAJOR, misc->minor)); in misc_deregister()
Dpc8736x_gpio.c306 devid = MKDEV(major, 0); in pc8736x_gpio_init()
345 unregister_chrdev_region(MKDEV(major,0), PC8736X_GPIO_CT); in pc8736x_gpio_cleanup()
Dbsr.c223 cur->bsr_dev = MKDEV(bsr_major, i + total_bsr_devs); in bsr_add_node()
355 unregister_chrdev_region(MKDEV(bsr_major, 0), BSR_MAX_DEVS); in bsr_exit()
/linux-4.19.296/drivers/dca/
Ddca-sysfs.c41 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-4.19.296/fs/pstore/
Dpmsg.c81 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-4.19.296/include/uapi/linux/
Dkdev_t.h12 #define MKDEV(ma,mi) ((ma)<<8 | (mi)) macro
/linux-4.19.296/fs/
Dchar_dev.c216 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
228 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
252 *dev = MKDEV(cd->major, cd->baseminor); in alloc_chrdev_region()
297 err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); in __register_chrdev()
326 next = MKDEV(MAJOR(n)+1, 0); in unregister_chrdev_region()
/linux-4.19.296/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()
Dconsoles.c39 dev = MKDEV(driver->major, driver->minor_start); in show_console_dev()
/linux-4.19.296/drivers/misc/mic/cosm/
Dcosm_main.c269 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-4.19.296/drivers/char/pcmcia/
Dscr24x_cs.c282 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()
/linux-4.19.296/drivers/s390/char/
Dfs3270.c531 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor), in fs3270_create_cb()
537 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, minor)); in fs3270_destroy_cb()
558 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, 0), in fs3270_init()
568 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, 0)); in fs3270_exit()
Dtape_char.c71 MKDEV(tapechar_major, device->first_minor), in tapechar_setup_device()
79 MKDEV(tapechar_major, device->first_minor + 1), in tapechar_setup_device()
500 unregister_chrdev_region(MKDEV(tapechar_major, 0), 256); in tapechar_exit()
/linux-4.19.296/fs/coda/
Dpsdev.c374 MKDEV(CODA_PSDEV_MAJOR, i), NULL, "cfs%d", i); in init_coda_psdev()
413 device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i)); in init_coda()
431 device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i)); in exit_coda()
/linux-4.19.296/drivers/hid/
Dhid-roccat.c328 MKDEV(roccat_major, minor), NULL, in roccat_connect()
368 device_destroy(device->dev->class, MKDEV(roccat_major, minor)); in roccat_disconnect()
453 dev_t dev_id = MKDEV(roccat_major, 0); in roccat_exit()
Dhidraw.c336 MKDEV(hidraw_major, hidraw->minor)); in drop_ref()
547 dev->dev = device_create(hidraw_class, &hid->dev, MKDEV(hidraw_major, minor), in hidraw_connect()
625 dev_t dev_id = MKDEV(hidraw_major, 0); in hidraw_exit()
/linux-4.19.296/drivers/misc/
Dphantom.c404 retval = cdev_add(&pht->cdev, MKDEV(phantom_major, minor), 1); in phantom_probe()
411 MKDEV(phantom_major, minor), NULL, in phantom_probe()
443 device_destroy(phantom_class, MKDEV(phantom_major, minor)); in phantom_remove()
557 unregister_chrdev_region(MKDEV(phantom_major, 0), PHANTOM_MAX_MINORS); in phantom_exit()
/linux-4.19.296/drivers/i2c/
Di2c-dev.c676 i2c_dev->dev.devt = MKDEV(I2C_MAJOR, adap->nr); in i2cdev_attach_adapter()
743 res = register_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS, "i2c"); in i2c_dev_init()
767 unregister_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS); in i2c_dev_init()
778 unregister_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS); in i2c_dev_exit()
/linux-4.19.296/drivers/char/tpm/
Dtpm-chip.c237 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); in tpm_chip_alloc()
239 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc()
/linux-4.19.296/block/
Dbsg.c494 dev = MKDEV(bsg_major, bcd->minor); in bsg_register_queue()
558 ret = cdev_add(&bsg_cdev, MKDEV(bsg_major, 0), BSG_MAX_DEVS); in bsg_init()
566 unregister_chrdev_region(MKDEV(bsg_major, 0), BSG_MAX_DEVS); in bsg_init()
/linux-4.19.296/drivers/pwm/
Dsysfs.c268 export->child.devt = MKDEV(0, 0); in pwm_export_child()
392 parent = device_create(&pwm_class, chip->dev, MKDEV(0, 0), chip, in pwmchip_sysfs_export()

1234